From 86a8da9da8a01a0cbf03d0c65dc46a86657e197dcfc6f843da3077d684413273 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 25 Jan 2012 09:47:01 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pymetar-0.18.tar.gz | 3 ++ python-pymetar-add-manpage.patch | 11 ++++++ python-pymetar.changes | 6 +++ python-pymetar.spec | 66 ++++++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pymetar-0.18.tar.gz create mode 100644 python-pymetar-add-manpage.patch create mode 100644 python-pymetar.changes create mode 100644 python-pymetar.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pymetar-0.18.tar.gz b/pymetar-0.18.tar.gz new file mode 100644 index 0000000..6e8795f --- /dev/null +++ b/pymetar-0.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13c4c640bf04b26dfa49f0859ea4d4c86d7adbe8690e7524f249604b72557bc0 +size 22135 diff --git a/python-pymetar-add-manpage.patch b/python-pymetar-add-manpage.patch new file mode 100644 index 0000000..7ed6eb1 --- /dev/null +++ b/python-pymetar-add-manpage.patch @@ -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'])] + ) diff --git a/python-pymetar.changes b/python-pymetar.changes new file mode 100644 index 0000000..a36c7cc --- /dev/null +++ b/python-pymetar.changes @@ -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. diff --git a/python-pymetar.spec b/python-pymetar.spec new file mode 100644 index 0000000..3f26f73 --- /dev/null +++ b/python-pymetar.spec @@ -0,0 +1,66 @@ +# +# spec file for package pymetar +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 Malcolm J Lewis +# +# 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