diff --git a/pymetar-0.20.tar.gz b/pymetar-0.20.tar.gz deleted file mode 100644 index 4bd678d..0000000 --- a/pymetar-0.20.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcbf3b08558a92c38553fb3b07bfd87b552e1270b8e37b08b3e6b262487abee7 -size 22738 diff --git a/pymetar-1.1.tar.gz b/pymetar-1.1.tar.gz new file mode 100644 index 0000000..9a40760 --- /dev/null +++ b/pymetar-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c90a02ff147dd2753156efbf2a04eb1743c34e99a31bf3fe25569e5beba18278 +size 3162533 diff --git a/python-pymetar.changes b/python-pymetar.changes index 72974a2..d289ec6 100644 --- a/python-pymetar.changes +++ b/python-pymetar.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Jun 19 14:14:29 UTC 2019 - Marketa Calabkova + +- update to version 1.1 + * Python 3 only + * Use HTTPS when possible + * Fix URLs and shebangs + * Fix a dash being misinterpreted + ------------------------------------------------------------------- Mon May 11 16:39:38 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-pymetar.spec b/python-pymetar.spec index 409ab81..c1e5f34 100644 --- a/python-pymetar.spec +++ b/python-pymetar.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymetar # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2012 Malcolm J Lewis # # All modifications and additions to the file contributed by third parties @@ -13,29 +13,30 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define modname pymetar - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-%{modname} -Version: 0.20 +Version: 1.1 Release: 0 Summary: METAR weather report parser -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Languages/Python -Url: http://www.schwarzvogel.de/software-pymetar.shtml +URL: http://www.schwarzvogel.de/software-pymetar.shtml Source0: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros %if 0%{?suse_version} -%py_requires %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%python_subpackages %description This library downloads the weather report for a given station ID, decodes @@ -45,16 +46,24 @@ it and provides easy access to all the data found in the report. %setup -q -n %{modname}-%{version} %build -python setup.py build +%python_build %install -python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root) +%check +cd testing/smoketest/ +tar -xf reports.tgz +mkdir logs +./runtests.sh +cd - + +%files %python_files +%doc README.md +%license COPYING %{_bindir}/%{modname} -%{python_sitelib}/%{modname}.* -%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/* %{_datadir}/doc/%{modname}-%{version}/ %{_mandir}/man1/%{modname}.1%{?ext_man}