From 46ce3e3b842cc4282c642f1ae0aeb2819f3b86a4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 23 Sep 2008 02:23:33 +0000 Subject: [PATCH] add %lang tags to localized xml files --- libgweather.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libgweather.spec b/libgweather.spec index 4b5208e..03b9c2e 100644 --- a/libgweather.spec +++ b/libgweather.spec @@ -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 $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %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 @@ fi %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 @@ fi %changelog +* Mon Sep 22 2008 Matthias Clasen 2.24.0-2 +- Apply %%lang tags to localized xml files + * Mon Sep 22 2008 Matthias Clasen 2.24.0-1 - Update to 2.24.0