14
0

Accepting request 730457 from devel:languages:python

- Fix obsoletion and migration from version 0.20

- update to version 1.1
  * Python 3 only
  * Use HTTPS when possible
  * Fix URLs and shebangs
  * Fix a dash being misinterpreted

OBS-URL: https://build.opensuse.org/request/show/730457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymetar?expand=0&rev=8
This commit is contained in:
2019-09-17 11:37:16 +00:00
committed by Git OBS Bridge
4 changed files with 48 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bcbf3b08558a92c38553fb3b07bfd87b552e1270b8e37b08b3e6b262487abee7
size 22738

3
pymetar-1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c90a02ff147dd2753156efbf2a04eb1743c34e99a31bf3fe25569e5beba18278
size 3162533

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
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>
- 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 Mon May 11 16:39:38 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pymetar # 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 <malcolmlewis@opensuse.org> # Copyright (c) 2012 Malcolm J Lewis <malcolmlewis@opensuse.org>
# #
# All modifications and additions to the file contributed by third parties # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 modname pymetar
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-%{modname} Name: python-%{modname}
Version: 0.20 Version: 1.1
Release: 0 Release: 0
Summary: METAR weather report parser Summary: METAR weather report parser
License: GPL-2.0+ 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-devel BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes
%if 0%{?suse_version} BuildRequires: python-rpm-macros
%py_requires Obsoletes: %{oldpython}-%{modname}
%if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %python_subpackages
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
This library downloads the weather report for a given station ID, decodes This library downloads the weather report for a given station ID, decodes
@@ -45,17 +44,26 @@ it and provides easy access to all the data found in the report.
%setup -q -n %{modname}-%{version} %setup -q -n %{modname}-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} %python_install
# we install docs on our own
rm -r %{buildroot}%{_datadir}/doc/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %check
%defattr(-,root,root) cd testing/smoketest/
%{_bindir}/%{modname} tar -xf reports.tgz
%{python_sitelib}/%{modname}.* mkdir logs
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info ./runtests.sh
%{_datadir}/doc/%{modname}-%{version}/ cd -
%{_mandir}/man1/%{modname}.1%{?ext_man}
%files %{python_files}
%doc README.md
%license COPYING
%python3_only %{_bindir}/%{modname}
%{python_sitelib}/*
%python3_only %{_mandir}/man1/%{modname}.1%{?ext_man}
%changelog %changelog