Hello community, here is the log from the commit of package python-pymetar for openSUSE:Factory checked in at 2019-09-17 13:37:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pymetar (Old) and /work/SRC/openSUSE:Factory/.python-pymetar.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pymetar" Tue Sep 17 13:37:16 2019 rev:8 rq:730457 version:1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pymetar/python-pymetar.changes 2015-05-16 19:01:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pymetar.new.7948/python-pymetar.changes 2019-09-17 13:37:17.633843961 +0200 @@ -1,0 +2,14 @@ +Thu Sep 12 18:10:26 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Fix obsoletion and migration from version 0.20 + +------------------------------------------------------------------- +Wed Jun 19 14:14:29 UTC 2019 - Marketa Calabkova <[email protected]> + +- update to version 1.1 + * Python 3 only + * Use HTTPS when possible + * Fix URLs and shebangs + * Fix a dash being misinterpreted + +------------------------------------------------------------------- Old: ---- pymetar-0.20.tar.gz New: ---- pymetar-1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pymetar.spec ++++++ --- /var/tmp/diff_new_pack.yMgqmz/_old 2019-09-17 13:37:18.561843813 +0200 +++ /var/tmp/diff_new_pack.yMgqmz/_new 2019-09-17 13:37:18.565843812 +0200 @@ -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 <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -13,29 +13,28 @@ # 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 - +%define oldpython python +%{?!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: https://www.schwarzvogel.de/software-pymetar.shtml Source0: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Obsoletes: %{oldpython}-%{modname} 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,17 +44,26 @@ %setup -q -n %{modname}-%{version} %build -python setup.py build +%python_build %install -python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} - -%files -%defattr(-,root,root) -%{_bindir}/%{modname} -%{python_sitelib}/%{modname}.* -%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info -%{_datadir}/doc/%{modname}-%{version}/ -%{_mandir}/man1/%{modname}.1%{?ext_man} +%python_install +# we install docs on our own +rm -r %{buildroot}%{_datadir}/doc/ +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +cd testing/smoketest/ +tar -xf reports.tgz +mkdir logs +./runtests.sh +cd - + +%files %{python_files} +%doc README.md +%license COPYING +%python3_only %{_bindir}/%{modname} +%{python_sitelib}/* +%python3_only %{_mandir}/man1/%{modname}.1%{?ext_man} %changelog ++++++ pymetar-0.20.tar.gz -> pymetar-1.1.tar.gz ++++++ ++++ 4112 lines of diff (skipped)
