From 7941e17e0805bf79a40f1838f88e904ea6db73af Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Jan 2008 06:51:16 +0000 Subject: [PATCH] save some space --- copy.xsl | 30 ++++++++++++++++++++++++++++++ libgweather.spec | 11 ++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 copy.xsl diff --git a/copy.xsl b/copy.xsl new file mode 100644 index 0000000..0e64463 --- /dev/null +++ b/copy.xsl @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libgweather.spec b/libgweather.spec index 90a51bc..3ba0992 100644 --- a/libgweather.spec +++ b/libgweather.spec @@ -1,12 +1,13 @@ Name: libgweather Version: 2.21.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A library for weather information Group: System Environment/Libraries License: GPLv2+ URL: http://www.gnome.org Source0: http://download.gnome.org/sources/libgweather/2.21/%{name}-%{version}.tar.bz2 +Source1: copy.xsl BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: GConf2-devel >= 2.8.0 @@ -42,6 +43,11 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT + +# waste less space +xsltproc %{SOURCE1} data/Locations.xml > loc.xml +sed -e "s/^\s*//" -e "/^$/d" loc.xml > data/Locations.xml + make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' @@ -85,6 +91,9 @@ fi %changelog +* Wed Jan 16 2008 Matthias Clasen 2.21.2-3 +- Carry over space-saving hack from gnome-applets + * Tue Jan 15 2008 Matthias Clasen 2.21.2-2 - Incorporate review feedback (#428739)