rpms/libgweather/devel copy.xsl,NONE,1.1 libgweather.spec,1.1,1.2

Matthias Clasen (mclasen) fedora-extras-commits at redhat.com
Wed Jan 16 06:51:53 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/libgweather/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20466

Modified Files:
	libgweather.spec 
Added Files:
	copy.xsl 
Log Message:
save some 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: libgweather.spec
===================================================================
RCS file: /cvs/extras/rpms/libgweather/devel/libgweather.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libgweather.spec	16 Jan 2008 05:32:24 -0000	1.1
+++ libgweather.spec	16 Jan 2008 06:51:16 -0000	1.2
@@ -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 @@
 
 %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 @@
 
 
 %changelog
+* Wed Jan 16 2008  Matthias Clasen <mclasen at redhat.com> 2.21.2-3
+- Carry over space-saving hack from gnome-applets
+
 * Tue Jan 15 2008  Matthias Clasen <mclasen at redhat.com> 2.21.2-2
 - Incorporate review feedback (#428739)
 




More information about the fedora-extras-commits mailing list