[libiptcdata] Mark translations with %lang.

Ville Skyttä scop at fedoraproject.org
Sun Dec 4 16:20:39 UTC 2011


commit 44fc5c078dc33b63791dc23aabe564ec75c49c77
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Dec 4 18:20:30 2011 +0200

    Mark translations with %lang.

 libiptcdata.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libiptcdata.spec b/libiptcdata.spec
index 26be2f3..13e0300 100644
--- a/libiptcdata.spec
+++ b/libiptcdata.spec
@@ -4,7 +4,7 @@
 
 Name: libiptcdata
 Version: 1.0.4
-Release: 5%{?dist}
+Release: 6%{?dist}
 Summary: IPTC tag library
 
 Group: Development/Libraries
@@ -56,6 +56,7 @@ rm -rf $RPM_BUILD_ROOT
 make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
 rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
+%find_lang %{name} --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,12 +65,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
 %{_bindir}/*
 %{_libdir}/lib*.so.*
-%{_datadir}/locale/*/LC_MESSAGES/*.mo
 
 %files devel
 %defattr(-,root,root)
@@ -85,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/*.so
 
 %changelog
+* Sun Dec  4 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.0.4-6
+- Mark translations with %%lang.
+
 * Wed Nov 16 2011 David Moore <david.moore at gmail.com> 1.0.4-5
 - Removed 'Requires: gtk-doc', updated python sitearch.
 


More information about the scm-commits mailing list