diff --git a/metar-1.8.0.tar.gz b/metar-1.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4497662401ef80cab2d7a47c342fbc8cf400e2f4 Binary files /dev/null and b/metar-1.8.0.tar.gz differ diff --git a/python-metar.spec b/python-metar.spec new file mode 100644 index 0000000000000000000000000000000000000000..19adc6bd3db3b412e6057900f2f19f8b35ef6982 --- /dev/null +++ b/python-metar.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-metar +Version: 1.8.0 +Release: 1 +Summary: Metar - a package to parse METAR-coded weather reports +License: BSD +URL: https://github.com/python-metar/python-metar +Source0: https://files.pythonhosted.org/packages/fa/3b/5ca06c3e300a4bf6259663684943f058a44575500c9953a56650540d7780/metar-1.8.0.tar.gz +BuildArch: noarch + + +%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). + +%package -n python3-metar +Summary: Metar - a package to parse METAR-coded weather reports +Provides: python-metar +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-metar +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). + +%package help +Summary: Development documents and examples for metar +Provides: python3-metar-doc +%description help +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). + +%prep +%autosetup -n metar-1.8.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-metar -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Sep 27 2021 Python_Bot - 1.8.0-1 +- Package Init