forked from pool/python-pymetar
Accepting request 726519 from home:mcalabkova:branches:devel:languages:python
- 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/726519 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymetar?expand=0&rev=8
This commit is contained in:
@@ -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
3
pymetar-1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c90a02ff147dd2753156efbf2a04eb1743c34e99a31bf3fe25569e5beba18278
|
||||||
|
size 3162533
|
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
@@ -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,30 @@
|
|||||||
# 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
|
||||||
|
%{?!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: http://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
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%python_subpackages
|
||||||
|
|
||||||
%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,16 +46,24 @@ 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
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%check
|
||||||
%defattr(-,root,root)
|
cd testing/smoketest/
|
||||||
|
tar -xf reports.tgz
|
||||||
|
mkdir logs
|
||||||
|
./runtests.sh
|
||||||
|
cd -
|
||||||
|
|
||||||
|
%files %python_files
|
||||||
|
%doc README.md
|
||||||
|
%license COPYING
|
||||||
%{_bindir}/%{modname}
|
%{_bindir}/%{modname}
|
||||||
%{python_sitelib}/%{modname}.*
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
|
||||||
%{_datadir}/doc/%{modname}-%{version}/
|
%{_datadir}/doc/%{modname}-%{version}/
|
||||||
%{_mandir}/man1/%{modname}.1%{?ext_man}
|
%{_mandir}/man1/%{modname}.1%{?ext_man}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user