forked from pool/python-pymetar
Accepting request 101434 from home:malcolmlewis:Gnome
New package, required for GNOME:Apps weather-wallpaper package. OBS-URL: https://build.opensuse.org/request/show/101434 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymetar?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
pymetar-0.18.tar.gz
Normal file
3
pymetar-0.18.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:13c4c640bf04b26dfa49f0859ea4d4c86d7adbe8690e7524f249604b72557bc0
|
||||
size 22135
|
11
python-pymetar-add-manpage.patch
Normal file
11
python-pymetar-add-manpage.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -Naur a/setup.py b/setup.py
|
||||
--- a/setup.py 2011-06-03 09:24:32.000000000 -0500
|
||||
+++ b/setup.py 2012-01-24 22:07:43.925588925 -0600
|
||||
@@ -27,5 +27,6 @@
|
||||
py_modules=["pymetar"],
|
||||
scripts = [ "bin/pymetar" ],
|
||||
data_files = [("share/doc/pymetar-%s"%pymetar.__version__,
|
||||
- ['README', 'COPYING', 'THANKS', 'librarydoc.txt'])]
|
||||
+ ['README', 'COPYING', 'THANKS', 'librarydoc.txt']),
|
||||
+ ("share/man/man1", ['pymetar.1'])]
|
||||
)
|
6
python-pymetar.changes
Normal file
6
python-pymetar.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 04:11:42 UTC 2012 - malcolmlewis@opensuse.org
|
||||
|
||||
- Initial build.
|
||||
- Add python-pymetar-add-manpage.patch: Add man page install in
|
||||
setup.py.
|
66
python-pymetar.spec
Normal file
66
python-pymetar.spec
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# spec file for package pymetar
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
#FIXME: Email sent 24th Jan 2012 to developer to request updating FSF
|
||||
# address in next release.
|
||||
|
||||
%define modname pymetar
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 0.18
|
||||
Release: 0
|
||||
License: GPL-3.0
|
||||
Summary: METAR weather report parser
|
||||
Url: http://www.schwarzvogel.de/software-pymetar.shtml
|
||||
Group: Development/Languages/Python
|
||||
Source0: http://www.schwarzvogel.de/pkgs/pymetar-0.18.tar.gz
|
||||
# PATCH-FIX-UPSTREAM python-pymetar-add-manpage.patch malcolmlewis@opensuse.org -- Add man page install in setup.py.
|
||||
Patch0: python-pymetar-add-manpage.patch
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%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}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{modname}
|
||||
%{python_sitelib}/%{modname}.*
|
||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
%{_datadir}/doc/%{modname}-%{version}/
|
||||
%{_mandir}/man1/%{modname}.1%{?ext_man}
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user