14
0

- Fix obsoletion and migration from version 0.20

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymetar?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2019-09-12 18:10:42 +00:00
committed by Git OBS Bridge
parent 872cb9bbd3
commit 0d6c0460c1
2 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 12 18:10:26 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix obsoletion and migration from version 0.20
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 19 14:14:29 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com> Wed Jun 19 14:14:29 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -18,6 +18,7 @@
%define modname pymetar %define modname pymetar
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-%{modname} Name: python-%{modname}
@@ -26,16 +27,13 @@ Release: 0
Summary: METAR weather report parser Summary: METAR weather report parser
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Development/Languages/Python 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 Source0: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if 0%{?suse_version} Obsoletes: %{oldpython}-%{modname}
%if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif
%endif
%python_subpackages %python_subpackages
%description %description
@@ -50,6 +48,8 @@ it and provides easy access to all the data found in the report.
%install %install
%python_install %python_install
# we install docs on our own
rm -r %{buildroot}%{_datadir}/doc/
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -59,12 +59,11 @@ mkdir logs
./runtests.sh ./runtests.sh
cd - cd -
%files %python_files %files %{python_files}
%doc README.md %doc README.md
%license COPYING %license COPYING
%{_bindir}/%{modname} %python3_only %{_bindir}/%{modname}
%{python_sitelib}/* %{python_sitelib}/*
%{_datadir}/doc/%{modname}-%{version}/ %python3_only %{_mandir}/man1/%{modname}.1%{?ext_man}
%{_mandir}/man1/%{modname}.1%{?ext_man}
%changelog %changelog