]> git.pld-linux.org Git - packages/clamtk.git/commitdiff
- lang files added
authorRobert Tomasik <rotom@pld-linux.org>
Thu, 24 Aug 2006 15:10:53 +0000 (15:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamtk.spec -> 1.11

clamtk.spec

index c707b51975fe62775d9df6f751e0346f96b213d5..642da3f0e2ed6a6a45e6ca15088d08bba25a3e40 100644 (file)
@@ -10,11 +10,11 @@ Source0:    http://dl.sourceforge.net/clamtk/%{name}-%{version}.tar.gz
 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)
 
@@ -35,16 +35,22 @@ echo '# vi: encoding=utf-8' >> clamtk.desktop
 %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}
This page took 0.087595 seconds and 4 git commands to generate.