rpms/libgweather/devel libgweather.spec,1.24,1.25

Matthias Clasen mclasen at fedoraproject.org
Tue Sep 23 02:24:03 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/libgweather/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22578

Modified Files:
	libgweather.spec 
Log Message:
add %lang tags to localized xml files



Index: libgweather.spec
===================================================================
RCS file: /cvs/extras/rpms/libgweather/devel/libgweather.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- libgweather.spec	22 Sep 2008 23:31:36 -0000	1.24
+++ libgweather.spec	23 Sep 2008 02:23:33 -0000	1.25
@@ -1,6 +1,6 @@
 Name:           libgweather
 Version:        2.24.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A library for weather information 
 
 Group:          System Environment/Libraries
@@ -64,6 +64,10 @@
 
 %find_lang %{name}
 
+# do the %%lang tag game for the localized xml files, too
+find $RPM_BUILD_ROOT -name Locations.*.xml | sed 's:'"$RPM_BUILD_ROOT"'::
+s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> %{name}.lang
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -92,7 +96,9 @@
 %doc COPYING
 %{_sysconfdir}/gconf/schemas/gweather.schemas
 %{_libdir}/libgweather.so.*
-%{_datadir}/libgweather
+%dir %{_datadir}/libgweather
+%{_datadir}/libgweather/Locations.xml
+%{_datadir}/libgweather/locations.dtd
 
 %files devel
 %defattr(-,root,root,-)
@@ -102,6 +108,9 @@
 
 
 %changelog
+* Mon Sep 22 2008 Matthias Clasen <mclasen at redhat.com> 2.24.0-2
+- Apply %%lang tags to localized xml files
+
 * Mon Sep 22 2008 Matthias Clasen <mclasen at redhat.com> 2.24.0-1
 - Update to 2.24.0
 




More information about the fedora-extras-commits mailing list