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/gnome-applets.spec b/gnome-applets.spec index ff5c8f4..d88621b 100644 --- a/gnome-applets.spec +++ b/gnome-applets.spec @@ -33,12 +33,13 @@ Summary: Small applications for the GNOME panel Name: gnome-applets Version: 2.19.1 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 License: GPL Group: User Interface/Desktops URL: http://www.gnome.org/ Source: http://download.gnome.org/sources/%{name}/2.18/%{name}-%{version}.tar.bz2 +Source1: copy.xsl BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -91,6 +92,7 @@ BuildRequires: pkgconfig BuildRequires: gnome-icon-theme BuildRequires: perl(XML::Parser) BuildRequires: libgnomekbd-devel +BuildRequires: libxslt Requires: gnome-panel >= %{gnome_panel_version} Requires: libxklavier >= %{libxklavier_version} @@ -170,6 +172,10 @@ make %install rm -rf $RPM_BUILD_ROOT +# waste less space +xsltproc %{SOURCE1} gweather/Locations.xml > loc.xml +sed -e "s/^\s*//" -e "/^$/d" loc.xml > gweather/Locations.xml + export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL @@ -197,6 +203,7 @@ install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cpufreq-selector # drop non-XKB support files rm -rf $RPM_BUILD_ROOT%{_datadir}/xmodmap + %clean rm -rf $RPM_BUILD_ROOT @@ -326,6 +333,9 @@ fi %{_libdir}/libgweather.so %changelog +* Thu Aug 2 2007 Matthias Clasen - 1:2.19.1-3 +- Waste less space in Locations.xml + * Wed Aug 1 2007 Matthias Clasen - 1:2.19.1-2 - Fix scriptlets