From c4378b58133ed3de50a4221273d1b2bc7bb93e94 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: May 17 2012 06:34:07 +0000 Subject: Adjust to NOAA web page change --- diff --git a/wmfrog-0.3.1-Skip-warning.patch b/wmfrog-0.3.1-Skip-warning.patch new file mode 100644 index 0000000..5e29f35 --- /dev/null +++ b/wmfrog-0.3.1-Skip-warning.patch @@ -0,0 +1,28 @@ +From a1011efd4be1d960e2a145f15ad8e7aa92b31fea Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 15 May 2012 20:31:22 +0200 +Subject: [PATCH] Skip warning + +NOAA started to warn about redirect to new URL +. This patch skips the warning. +We need to move to the new URL soon. +--- + Src/weather.pl | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Src/weather.pl b/Src/weather.pl +index 5ceeccd..c556950 100755 +--- a/Src/weather.pl ++++ b/Src/weather.pl +@@ -40,7 +40,7 @@ if($mode eq "http") + $line=; + } + $i=0; +- while($i!=12 && !eof(DATA)) ++ while($i!=21 && !eof(DATA)) + { + $line=; + $i++; +-- +1.7.3.4 + diff --git a/wmfrog.spec b/wmfrog.spec index e7b128c..bd0db4d 100644 --- a/wmfrog.spec +++ b/wmfrog.spec @@ -1,12 +1,14 @@ Name: wmfrog Version: 0.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A weather application, it shows the weather in a graphical way Group: Amusements/Graphics License: GPLv2+ URL: http://wiki.colar.net/wmfrog_dockapp Source0: http://bitbucket.org/tcolar/%{name}/downloads/%{name}-%{version}.tgz +# Bug 822219, submitted to upstream. +Patch0: %{name}-0.3.1-Skip-warning.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libX11-devel, libXext-devel, libXpm-devel @@ -20,6 +22,7 @@ when I was 25, I'm a programmer not a designer :) %prep %setup -q -c +%patch0 -p1 -b .warning sed -i -e 's|/lib/wmfrog|/libexec/wmfrog|' Src/Makefile sed -i -e 's|/usr/lib/|%{_libexecdir}/|' Src/wmFrog.c # Remove prebuilt binaries @@ -49,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu May 17 2012 Petr Pisar - 0.3.1-3 +- Adjust to NOAA web page change (bug #822219) + * Mon Feb 07 2011 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild