Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Petr Písař
fe9447a8df Clean spec file 2012-05-17 08:34:38 +02:00
Petr Písař
fb1780a1c5 Depend on perl ABI 2012-05-17 08:34:36 +02:00
Petr Písař
c4378b5813 Adjust to NOAA web page change 2012-05-17 08:34:07 +02:00
2 changed files with 38 additions and 15 deletions

View file

@ -0,0 +1,28 @@
From a1011efd4be1d960e2a145f15ad8e7aa92b31fea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@atlas.cz>
Date: Tue, 15 May 2012 20:31:22 +0200
Subject: [PATCH] Skip warning
NOAA started to warn about redirect to new URL
<http://www.aviationweather.gov/adds/metars/>. 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=<DATA>;
}
$i=0;
- while($i!=12 && !eof(DATA))
+ while($i!=21 && !eof(DATA))
{
$line=<DATA>;
$i++;
--
1.7.3.4

View file

@ -1,15 +1,15 @@
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
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# 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
@ -17,38 +17,33 @@ 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
rm -rf $RPM_BUILD_ROOT
cd Src
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%doc CHANGES COPYING HINTS
%changelog
* Thu May 17 2012 Petr Pisar <ppisar@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild