[frogr] spec: fix installation of .mo files
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] spec: fix installation of .mo files
- Date: Tue, 31 May 2011 13:11:43 +0000 (UTC)
commit 9af54d6599e1175ee18c04b3015dab6b51a0e66b
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue May 31 13:01:59 2011 +0200
spec: fix installation of .mo files
Use the standard %find_lang to locate and install mo files for
frogr.
frogr.spec | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/frogr.spec b/frogr.spec
index e055a31..163153c 100644
--- a/frogr.spec
+++ b/frogr.spec
@@ -8,6 +8,7 @@ License: GPLv3
URL: http://live.gnome.org/Frogr
Source0: http://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
+BuildRequires: gettext
BuildRequires: gtk3-devel > 3.0,
BuildRequires: libsoup-devel > 2.26
BuildRequires: libxml2-devel > 2.6.8
@@ -33,10 +34,11 @@ make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
+%find_lang %{name}
-%files
+%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}/*
@@ -44,7 +46,6 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
-%{_datadir}/locale/*/LC_MESSAGES/frogr.mo
%{_datadir}/gnome/help/frogr/*
%{_mandir}/man1/frogr.1.*
%doc README NEWS COPYING AUTHORS THANKS TODO MAINTAINERS TRANSLATORS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]