2012-01-25 09:47:01 +00:00
|
|
|
#
|
2012-04-02 07:12:38 +00:00
|
|
|
# spec file for package python-pymetar
|
2012-01-25 09:47:01 +00:00
|
|
|
#
|
2019-08-27 15:44:39 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-25 09:47:01 +00:00
|
|
|
# Copyright (c) 2012 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-27 15:44:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-25 09:47:01 +00:00
|
|
|
#
|
|
|
|
|
2012-04-02 07:12:38 +00:00
|
|
|
|
2012-01-25 09:47:01 +00:00
|
|
|
%define modname pymetar
|
2019-09-12 18:10:42 +00:00
|
|
|
%define oldpython python
|
2019-08-27 15:44:39 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
2012-01-25 09:47:01 +00:00
|
|
|
Name: python-%{modname}
|
2019-08-27 15:44:39 +00:00
|
|
|
Version: 1.1
|
2012-01-25 09:47:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: METAR weather report parser
|
2019-08-27 15:44:39 +00:00
|
|
|
License: GPL-2.0-or-later
|
2012-01-25 09:47:01 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-09-12 18:10:42 +00:00
|
|
|
URL: https://www.schwarzvogel.de/software-pymetar.shtml
|
2015-05-16 12:53:04 +00:00
|
|
|
Source0: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz
|
2019-08-27 15:44:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-09-12 18:10:42 +00:00
|
|
|
Obsoletes: %{oldpython}-%{modname}
|
2012-01-25 09:47:01 +00:00
|
|
|
BuildArch: noarch
|
2019-08-27 15:44:39 +00:00
|
|
|
%python_subpackages
|
2012-01-25 09:47:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library downloads the weather report for a given station ID, decodes
|
|
|
|
it and provides easy access to all the data found in the report.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-08-27 15:44:39 +00:00
|
|
|
%python_build
|
2012-01-25 09:47:01 +00:00
|
|
|
|
|
|
|
%install
|
2019-08-27 15:44:39 +00:00
|
|
|
%python_install
|
2019-09-12 18:10:42 +00:00
|
|
|
# we install docs on our own
|
|
|
|
rm -r %{buildroot}%{_datadir}/doc/
|
2019-08-27 15:44:39 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd testing/smoketest/
|
|
|
|
tar -xf reports.tgz
|
|
|
|
mkdir logs
|
|
|
|
./runtests.sh
|
|
|
|
cd -
|
2012-01-25 09:47:01 +00:00
|
|
|
|
2019-09-12 18:10:42 +00:00
|
|
|
%files %{python_files}
|
2019-08-27 15:44:39 +00:00
|
|
|
%doc README.md
|
|
|
|
%license COPYING
|
2019-09-12 18:10:42 +00:00
|
|
|
%python3_only %{_bindir}/%{modname}
|
2019-08-27 15:44:39 +00:00
|
|
|
%{python_sitelib}/*
|
2019-09-12 18:10:42 +00:00
|
|
|
%python3_only %{_mandir}/man1/%{modname}.1%{?ext_man}
|
2012-01-25 09:47:01 +00:00
|
|
|
|
|
|
|
%changelog
|