clamtk-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Summary: A GUI front-end for ClamAV
  2. Name: clamtk
  3. Version: 4.31
  4. Release: 1%{?_dist_release}
  5. License: Perl's
  6. Group: User Interface/Desktops
  7. URL: http://clamtk.sourceforge.net/
  8. Source0: %{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  10. BuildArch: noarch
  11. BuildRequires: gzip
  12. BuildRequires(check): desktop-file-utils
  13. Requires: clamav
  14. Requires(post,postun): desktop-file-utils
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: iwaim
  18. %description
  19. ClamTk is a frontend for ClamAV using Gtk2-perl. It is intended to be
  20. an easy to use, lightweight scanner for Linux systems.
  21. %prep
  22. %setup -q
  23. %build
  24. gunzip clamtk.1.gz
  25. %install
  26. %__rm -rf %{buildroot}
  27. %__mkdir -p %{buildroot}%{_bindir}
  28. %__mkdir -p %{buildroot}%{_mandir}/man1
  29. %__mkdir -p %{buildroot}%{perl_vendorlib}/ClamTk
  30. %__mkdir -p %{buildroot}%{_datadir}/applications
  31. %__mkdir -p %{buildroot}%{_datadir}/pixmaps
  32. %__mkdir -p %{buildroot}%{_localedir}
  33. %__install -m 0755 clamtk %{buildroot}%{_bindir}
  34. %__install -m 0644 clamtk.1 %{buildroot}%{_mandir}/man1
  35. %__install -m 0644 lib/*.pm %{buildroot}%{perl_vendorlib}/ClamTk
  36. %__install -m 0644 clamtk.desktop %{buildroot}%{_datadir}/applications
  37. %__install -m 0644 clamtk.xpm clamtk.png %{buildroot}%{_datadir}/pixmaps
  38. langs="ja de fr ko zh_CN zh_TW"
  39. for lang in $langs
  40. do
  41. %__mkdir -p %{buildroot}%{_localedir}/${lang}/LC_MESSAGES
  42. %__cp -a po/${lang}.mo %{buildroot}%{_localedir}/${lang}/LC_MESSAGES/clamtk.mo
  43. done
  44. %{find_lang} %{name}
  45. %check
  46. desktop-file-validate %{buildroot}%{_datadir}/applications/clamtk.desktop
  47. %clean
  48. %__rm -rf %{buildroot}
  49. %post
  50. update-desktop-database %{_datadir}/applications
  51. %postun
  52. update-desktop-database %{_datadir}/applications
  53. %files -f %{name}.lang
  54. %defattr(-,root,root,-)
  55. %doc CHANGES LICENSE DISCLAIMER README
  56. %{_bindir}/clamtk
  57. %{_mandir}/man1/clamtk.1*
  58. %{perl_vendorlib}/ClamTk
  59. %{_datadir}/applications/clamtk.desktop
  60. %{_datadir}/pixmaps/clamtk.*
  61. %changelog
  62. * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 4.31-1
  63. - Initial build.