From 4acbd3347acb502c3703a2121382dc39bbc50211 Mon Sep 17 00:00:00 2001 From: Jos de Kloe Date: Oct 08 2015 20:25:59 +0000 Subject: reintroduce the patch to remove the shebang lines inside the library --- diff --git a/metar-1.4.0-nobang.patch b/metar-1.4.0-nobang.patch new file mode 100644 index 0000000..970679f --- /dev/null +++ b/metar-1.4.0-nobang.patch @@ -0,0 +1,14 @@ +--- metar/__init__.py.orig 2015-10-08 22:08:33.871542052 +0200 ++++ metar/__init__.py 2015-10-08 22:08:45.046247251 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # A python package for interpreting METAR and SPECI weather reports. + # +--- metar/Metar.py.orig 2015-10-08 22:08:58.947880513 +0200 ++++ metar/Metar.py 2015-10-08 22:09:07.453656123 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # + # A python package for interpreting METAR and SPECI weather reports. + # diff --git a/python-metar.spec b/python-metar.spec index 911b0d2..203c4dc 100644 --- a/python-metar.spec +++ b/python-metar.spec @@ -1,49 +1,45 @@ -%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") - Summary: Coded METAR weather reports parser for Python Name: python-metar -Version: 1.3.0 -Release: 14%{?dist} +Version: 1.4.0 +Release: 1%{?dist} License: MIT Group: Development/Languages -URL: http://homepage.mac.com/wtpollard/Software/FileSharing4.html -# I don't think this source URL could get more complicated... and breaks mach -#Source: http://homepage.mac.com/WebObjects/FileSharing.woa/wa/metar-1.3.0.tar.gz.3.0.tar.gz?a=downloadFile&user=wtpollard&path=.Public/Downloads/metar-%{version}.tar.gz -Source: metar-%{version}.tar.gz -Patch0: metar-1.3.0-nobang.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +URL: http://sourceforge.net/projects/python-metar/ +Source: http://downloads.sourceforge.net/project/python-metar/python-metar/v%{version}/metar-%{version}.tar.gz +# note: also github hold a copy of the repository for this module, see: +# https://github.com/tomp/python-metar + +Patch0: metar-1.4.0-nobang.patch + BuildRequires: python-devel BuildArch: noarch %description Python package that parses coded METAR weather reports. - %prep %setup -q -n metar-%{version} -%patch0 -p1 -b .nobang - +%patch0 -p0 -b .nobang %build %{__python} setup.py build - %install -%{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} - -%clean -%{__rm} -rf %{buildroot} - +# remove executable permissions from sample.py to +# prevent dependencies being pulled in from this file +chmod 644 sample.py %files -%defattr(-,root,root,-) -%doc CHANGES README TODO +%doc CHANGES README PKG-INFO sample.py %{python_sitelib}/* %changelog +* Thu Oct 08 2015 Jos de Kloe 1.4.0-1 +- Update to new upstream version and simplified spec file + * Thu Jun 18 2015 Fedora Release Engineering - 1.3.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild