Compare commits
47 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a3899fef | ||
|
|
a75c99811a | ||
|
|
5ccb5168da | ||
|
|
bf333f6496 | ||
|
|
1006da1dcc | ||
|
|
935c90eb35 | ||
|
|
ddf5e2b658 | ||
|
|
4bebc818f4 | ||
|
|
c2cdd5437e | ||
|
|
09e59ef7e3 | ||
|
|
4af336a19e | ||
|
|
d2b0a0cfdb | ||
|
|
9688af67a9 | ||
|
|
452ee425bb | ||
|
|
2f4cc2a877 | ||
|
|
a46461565b | ||
|
|
4e107e3f6d | ||
|
|
82b5695abc | ||
| 1d0d14ee0a | |||
|
|
5d40c63215 | ||
|
|
45b4036434 | ||
|
|
acce8f7beb | ||
|
|
2da6130c64 | ||
|
|
ab40b994ee | ||
|
|
31caedf574 | ||
|
|
c2b08876eb | ||
|
|
6b5dcf64dd | ||
|
|
6980d03264 | ||
|
|
080c069e47 | ||
|
|
d95bbf2e3c | ||
|
|
898e0f719d | ||
|
|
f27f9a9193 | ||
| 921d93734c | |||
|
|
04ee4ca149 | ||
|
|
728924e0df | ||
|
|
a79bafe995 | ||
|
|
a28a9f531f | ||
|
|
54463c22c2 | ||
|
|
e0cd72b75f | ||
|
|
673ffda0c5 | ||
|
|
e842d6de88 | ||
|
|
11b0c22361 | ||
|
|
fe7adf93fe | ||
|
|
0dce0227da | ||
|
|
c504f3fe4f | ||
|
|
e4e13488c1 | ||
|
|
355fa1f625 |
5 changed files with 1 additions and 127 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
wmfrog-0.2.1.tgz
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
ad9a552cb6b802e7eca0a05d3a53151d wmfrog-0.2.1.tgz
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
diff -Naur wmfrog-0.2.1/Src/weather.pl wmfrog-0.2.1-devel/Src/weather.pl
|
||||
--- wmfrog-0.2.1/Src/weather.pl 2010-08-04 20:43:34.000000000 +0200
|
||||
+++ wmfrog-0.2.1-devel/Src/weather.pl 2010-08-05 13:11:51.446572041 +0200
|
||||
@@ -5,6 +5,7 @@
|
||||
#The Weather data can be retrieved through http of ftp.
|
||||
#Http is faster, however this might get broken if NOAA change their webpage layout
|
||||
#in wich case you should choose ftp.
|
||||
+# See <http://weather.noaa.gov/weather/metar.shtml> for more details.
|
||||
$mode="http"; # html || ftp
|
||||
|
||||
|
||||
@@ -16,17 +17,17 @@
|
||||
mkdir($tmpfolder);
|
||||
|
||||
$html="http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=${station}";
|
||||
-$ftp="ftp://weather.noaa.gov/data/observations/metar/stations/${station}.TXT";
|
||||
+$ftp="ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/${station}.TXT";
|
||||
$url=$html;
|
||||
if($mode eq "ftp")
|
||||
{
|
||||
$url=$ftp;
|
||||
}
|
||||
|
||||
+my $file="${tmpfolder}/${station}_dat";
|
||||
# change this line if wget isn't in your path:
|
||||
-`wget -q -O ${tmpfolder}/${station}_dat $url`;
|
||||
-$line="";
|
||||
-$file="${tmpfolder}/${station}_dat";
|
||||
+`wget -q -O ${file} $url`;
|
||||
+my $line="";
|
||||
open(DATA,"<$file");
|
||||
$allGood=0;
|
||||
if($mode eq "http")
|
||||
@@ -37,7 +38,7 @@
|
||||
$line=<DATA>;
|
||||
}
|
||||
$i=0;
|
||||
- while($i!=12 && !eof(DATA))
|
||||
+ while($i!=20 && !eof(DATA))
|
||||
{
|
||||
#print "*";
|
||||
$line=<DATA>;
|
||||
@@ -53,22 +54,10 @@
|
||||
chomp $line;
|
||||
($crap,$time)=split(/\ /,$line);
|
||||
($hour,$minute)=split(/:/,$time);
|
||||
-$line="";
|
||||
-if($mode eq "http")
|
||||
-{
|
||||
- $i=0;
|
||||
- while($i!=8)
|
||||
- {
|
||||
- $line=<DATA>;
|
||||
- $i++;
|
||||
- }
|
||||
-}
|
||||
-$newLine=<DATA>;
|
||||
-$line.=$newLine;
|
||||
-chomp $line;
|
||||
-$line=~s/<hr>//;
|
||||
-$line="METAR $station $line";
|
||||
+
|
||||
+$line=<DATA>;
|
||||
close DATA;
|
||||
+chomp $line;
|
||||
|
||||
chomp $line;
|
||||
@args=split(/\ /,$line);
|
||||
57
wmfrog.spec
57
wmfrog.spec
|
|
@ -1,57 +0,0 @@
|
|||
Name: wmfrog
|
||||
Version: 0.2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: A weather application, it shows the weather in a graphical way
|
||||
|
||||
Group: User Interface/X
|
||||
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)
|
||||
Patch0: %{name}-0.2.1-metar_parser.patch
|
||||
|
||||
BuildRequires: libX11-devel, libXext-devel, libXpm-devel
|
||||
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 .metar_parser
|
||||
sed -i -e 's|/lib/wmfrog|/libexec/wmfrog|' Src/Makefile
|
||||
sed -i 's|/usr/lib/|%{_libexecdir}/|' Src/wmFrog.c
|
||||
|
||||
|
||||
%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 Aug 05 2010 Petr Pisar <ppisar@redhat.com> - 0.2.1-1
|
||||
- 0.2.1 bump
|
||||
- Fix METAR parser
|
||||
|
||||
* Tue Aug 03 2010 Petr Pisar <ppisar@redhat.com> - 0.2.0-1
|
||||
- 0.2.0 import
|
||||
Loading…
Add table
Add a link
Reference in a new issue