diff --git a/python-metar.spec b/python-metar.spec new file mode 100644 index 0000000000000000000000000000000000000000..2dad5dea95bed2ee3c2b8b45c852c51dc2cb2757 --- /dev/null +++ b/python-metar.spec @@ -0,0 +1,50 @@ +%global srcname metar +%global summary Coded METAR and SPECI weather reports parser for Python + +Name: python-%{srcname} +Version: 1.8.0 +Release: 1 +Summary: %{summary} +License: BSD +URL: https://github.com/python-metar/python-metar +Source: https://github.com/python-metar/python-metar/archive/refs/tags/v1.8.0.tar.gz +BuildArch: noarch +BuildRequires: python3-setuptools python3-devel python3-pytest + +%global _description \ +Python-metar is a python package for interpreting METAR and SPECI coded \ +weather reports. METAR (Meteorological Aerodrome Report) and SPECI (Specials) \ +are reports containing airport weather information encoded in ASCII \ +following standards set by WMO (World Meteorological Organization) \ +and ICAO (International Civil Aviation Organization). + +%description +%_description + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%prep +%autosetup -n %{srcname}-%{version} -p1 + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH="%{buildroot}%{python3_sitelib}" %{_bindir}/pytest-3 + +%files -n python3-%{srcname} +%doc LICENSE README.md PKG-INFO CHANGELOG.md +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}*egg-info + +%changelog +* Tue Jul 07 2021 wanglixing - 1.8.0-1 +- init project + diff --git a/v1.8.0.tar.gz b/v1.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4497662401ef80cab2d7a47c342fbc8cf400e2f4 Binary files /dev/null and b/v1.8.0.tar.gz differ