[gpredict] Added localized file mapping.

Eric Christensen sparks at fedoraproject.org
Tue Jan 31 05:37:09 UTC 2012


commit 841c252f204aa62e28c90836be49603f80a7c3f5
Author: Eric Christensen <eric.christensen at citrix.com>
Date:   Tue Jan 31 00:36:53 2012 -0500

    Added localized file mapping.

 gpredict.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gpredict.spec b/gpredict.spec
index 1177059..a67e8da 100644
--- a/gpredict.spec
+++ b/gpredict.spec
@@ -1,6 +1,6 @@
 Name:           gpredict
 Version:        1.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Real-time satellite tracking and orbit prediction program
 Group:          Applications/Communications
 License:        GPLv2+
@@ -15,6 +15,7 @@ BuildRequires: curl-devel
 BuildRequires: desktop-file-utils
 BuildRequires: intltool >= 0.21
 BuildRequires: goocanvas-devel
+BuildRequires: gettext
 
 %description
 Gpredict is a real time satellite tracking and orbit prediction
@@ -36,9 +37,7 @@ make %{?_smp_mflags}
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
-
-rm -fr $RPM_BUILD_ROOT%{_datadir}/locale
-find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+%find_lang %{name}
 
 rm -fr $RPM_BUILD_ROOT%{_datadir}/applications/gpredict.desktop
 
@@ -58,7 +57,7 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
 update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
 
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
 %{_bindir}/*
@@ -71,6 +70,9 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
 
 
 %changelog
+* Tue Jan 31 2012 Eric "Sparks" Christensen <sparks at fedoraproject.org> - 1.3-4
+- Mapped localized files
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list