rpms/gnome-applets/devel copy.xsl, NONE, 1.1 gnome-applets.spec, 1.232, 1.233

Matthias Clasen (mclasen) fedora-extras-commits at redhat.com
Thu Aug 2 05:24:42 UTC 2007


Author: mclasen

Update of /cvs/pkgs/rpms/gnome-applets/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22732

Modified Files:
	gnome-applets.spec 
Added Files:
	copy.xsl 
Log Message:
waste less space



--- NEW FILE copy.xsl ---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml"
                version="1.0">

<xsl:output method="xml" doctype-system="location.dtd"/>
<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>
<xsl:template match="name">
  <xsl:choose>
    <xsl:when test="@xml:lang">
      <xsl:variable name="ctext" select="../name[1]"/>
      <xsl:variable name="thistext" select="."/>
      <xsl:if test="$ctext != $thistext">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:if>
    </xsl:when>
    <xsl:otherwise>
      <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
      </xsl:copy>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

</xsl:stylesheet>


Index: gnome-applets.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-applets/devel/gnome-applets.spec,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -r1.232 -r1.233
--- gnome-applets.spec	1 Aug 2007 15:16:40 -0000	1.232
+++ gnome-applets.spec	2 Aug 2007 05:24:09 -0000	1.233
@@ -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:  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 @@
 %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 @@
 # drop non-XKB support files
 rm -rf $RPM_BUILD_ROOT%{_datadir}/xmodmap
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -326,6 +333,9 @@
 %{_libdir}/libgweather.so
 
 %changelog
+* Thu Aug  2 2007 Matthias Clasen <mclasen at redhat.com> - 1:2.19.1-3
+- Waste less space in Locations.xml
+
 * Wed Aug  1 2007 Matthias Clasen <mclasen at redhat.com> - 1:2.19.1-2
 - Fix scriptlets 
 




More information about the scm-commits mailing list