add %lang tags to localized xml files
This commit is contained in:
parent
ede9c7fb34
commit
46ce3e3b84
@ -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 <mclasen@redhat.com> 2.24.0-2
|
||||
- Apply %%lang tags to localized xml files
|
||||
|
||||
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> 2.24.0-1
|
||||
- Update to 2.24.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user