forked from pool/python-pymetar
- 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:
committed by
Git OBS Bridge
parent
872cb9bbd3
commit
0d6c0460c1
@@ -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>
|
||||
|
||||
|
@@ -18,6 +18,7 @@
|
||||
|
||||
|
||||
%define modname pymetar
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-%{modname}
|
||||
@@ -26,16 +27,13 @@ Release: 0
|
||||
Summary: METAR weather report parser
|
||||
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_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?suse_version} > 1110
|
||||
Obsoletes: %{oldpython}-%{modname}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -50,6 +48,8 @@ it and provides easy access to all the data found in the report.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# we install docs on our own
|
||||
rm -r %{buildroot}%{_datadir}/doc/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -59,12 +59,11 @@ mkdir logs
|
||||
./runtests.sh
|
||||
cd -
|
||||
|
||||
%files %python_files
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license COPYING
|
||||
%{_bindir}/%{modname}
|
||||
%python3_only %{_bindir}/%{modname}
|
||||
%{python_sitelib}/*
|
||||
%{_datadir}/doc/%{modname}-%{version}/
|
||||
%{_mandir}/man1/%{modname}.1%{?ext_man}
|
||||
%python3_only %{_mandir}/man1/%{modname}.1%{?ext_man}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user