diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0079df0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +wmfrog-0.2.1.tgz +/wmfrog-0.2.2.tgz +/wmfrog-0.3.1.tgz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..33ab76d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +de4975f2c6a7931fdf5faa3c263aaf5f wmfrog-0.3.1.tgz 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 new file mode 100644 index 0000000..71e4133 --- /dev/null +++ b/wmfrog.spec @@ -0,0 +1,65 @@ +Name: wmfrog +Version: 0.3.1 +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 +BuildRequires: libX11-devel, libXext-devel, libXpm-devel +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: wget + +%description +This is a weather application, it shows the weather in a graphical way. The +artwork looks like a kiddo did it, but that's part of the charm… Ok, I did it +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 +make -C Src clean + +%build +cd Src +make CFLAGS="${RPM_OPT_FLAGS}" %{?_smp_mflags} + +%install +cd Src +make install DESTDIR=$RPM_BUILD_ROOT + +%files +%{_bindir}/%{name} +%{_libexecdir}/%{name} +%doc CHANGES COPYING HINTS + +%changelog +* Thu May 17 2012 Petr Pisar - 0.3.1-3 +- Adjust to NOAA web page change (bug #822219) +- Depend on perl ABI +- Clean spec file + +* Mon Feb 07 2011 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 02 2010 Petr Pisar - 0.3.1-1 +- 0.3.1 bump +- Fixed clouds/wind parsing issues + +* Wed Sep 01 2010 Petr Pisar - 0.2.2-1 +- 0.2.2 bump + +* Mon Aug 09 2010 Petr Pisar - 0.2.1-2 +- Change RPM group to Amusements/Graphics + +* Thu Aug 05 2010 Petr Pisar - 0.2.1-1 +- 0.2.1 bump +- Fix METAR parser + +* Tue Aug 03 2010 Petr Pisar - 0.2.0-1 +- 0.2.0 import