SPECS: clamtk.spec - lang files added

rotom rotom at pld-linux.org
Thu Aug 24 17:10:58 CEST 2006


Author: rotom                        Date: Thu Aug 24 15:10:58 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- lang files added

---- Files affected:
SPECS:
   clamtk.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/clamtk.spec
diff -u SPECS/clamtk.spec:1.10 SPECS/clamtk.spec:1.11
--- SPECS/clamtk.spec:1.10	Tue Aug 15 14:33:29 2006
+++ SPECS/clamtk.spec	Thu Aug 24 17:10:53 2006
@@ -11,11 +11,11 @@
 URL:		http://clamtk.sourceforge.net/
 BuildRequires:	sed >= 4.0
 Requires:	clamav >= 0.87
-Requires:	clamav-database 
-Requires:	clamav-libs 
+Requires:	clamav-database
+Requires:	clamav-libs
 Requires:	perl-Date-Calc
-Requires:	perl-File-Find-Rule 
-Requires:	perl-Gtk2 
+Requires:	perl-File-Find-Rule
+Requires:	perl-Gtk2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -36,16 +36,22 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_mandir}/man1,%{_desktopdir},%{_datadir}/mime/packages}
+install -d $RPM_BUILD_ROOT%{_datadir}/locale/{da,de,fr,it,pt_BR,ru,zh_CN}/LC_MESSAGES
 
 install clamtk $RPM_BUILD_ROOT%{_bindir}
 gzip -dc clamtk.1.gz >$RPM_BUILD_ROOT%{_mandir}/man1/clamtk.1
 install clam.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
 install clamtk.desktop $RPM_BUILD_ROOT%{_desktopdir}
 
+for n in po/*.mo ; do
+    install -D $n $RPM_BUILD_ROOT%{_datadir}/locale/`basename $n .mo`/LC_MESSAGES/clamtk.mo
+done
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc CHANGES DISCLAIMER README clamtk LICENSE
 %attr(755,root,root) %{_bindir}/%{name}
@@ -59,6 +65,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2006/08/24 15:10:53  rotom
+- lang files added
+
 Revision 1.10  2006/08/15 12:33:29  rotom
 - up to 2.23
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/clamtk.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list