[packages/libmateweather] update weather.noaa.gov url
glen
glen at pld-linux.org
Fri Apr 26 22:04:58 CEST 2013
commit a199587273131c86dda867d9b9af70d0e25b3e01
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Apr 26 23:03:24 2013 +0300
update weather.noaa.gov url
libmateweather.spec | 4 +++-
update-weather.noaa.gov-url.patch | 26 ++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/libmateweather.spec b/libmateweather.spec
index acaab6b..1f51be4 100644
--- a/libmateweather.spec
+++ b/libmateweather.spec
@@ -1,11 +1,12 @@
Summary: Libraries to allow MATE Desktop to display weather information
Name: libmateweather
Version: 1.6.1
-Release: 1
+Release: 2
License: GPL v2+
Group: X11/Libraries
Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
# Source0-md5: 6fd7832e76755fd3d8880472f7698577
+Patch0: update-weather.noaa.gov-url.patch
URL: http://wiki.mate-desktop.org/libmateweather
BuildRequires: gettext-devel
BuildRequires: gtk+2-devel >= 2:2.11.0
@@ -49,6 +50,7 @@ Dokumentacja API biblioteki libmateweather.
%prep
%setup -q
+%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
diff --git a/update-weather.noaa.gov-url.patch b/update-weather.noaa.gov-url.patch
new file mode 100644
index 0000000..326f883
--- /dev/null
+++ b/update-weather.noaa.gov-url.patch
@@ -0,0 +1,26 @@
+From 70efd95dba479f9f8318c7d50877f2461434a28b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at delfi.ee>
+Date: Fri, 26 Apr 2013 21:43:19 +0300
+Subject: [PATCH] update weather.noaa.gov url
+
+it's because the .pl url used, redirects. lessen the hops
+---
+ libmateweather/weather-metar.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libmateweather/weather-metar.c b/libmateweather/weather-metar.c
+index 6dfcf9c..da71db5 100644
+--- a/libmateweather/weather-metar.c
++++ b/libmateweather/weather-metar.c
+@@ -550,7 +550,7 @@ metar_start_open (WeatherInfo *info)
+ }
+
+ msg = soup_form_request_new (
+- "GET", "http://weather.noaa.gov/cgi-bin/mgetmetar.pl",
++ "GET", "http://weather.noaa.gov/mgetmetar.php",
+ "cccc", loc->code,
+ NULL);
+ soup_session_queue_message (info->session, msg, metar_finish, info);
+--
+1.8.2.1
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmateweather.git/commitdiff/c7df76e735bf643519cf8e1332147f32f3e0d1e1
More information about the pld-cvs-commit
mailing list