clamtk-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Summary: A GUI front-end for ClamAV
  2. Summary(ja): ClamAV の GUI フロントエンド
  3. Name: clamtk
  4. Version: 5.24
  5. Release: 1%{?_dist_release}
  6. License: GPL+ or Artistic
  7. Group: Applications/System
  8. URL: https://dave-theunsub.github.io/clamtk/
  9. Source0: https://bitbucket.org/dave_theunsub/clamtk/downloads/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: gzip
  13. BuildRequires: desktop-file-utils
  14. Requires: clamav
  15. Requires(post,postun): desktop-file-utils
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: iwaim
  19. %description
  20. ClamTk is a frontend for ClamAV using Gtk2-perl. It is intended to be
  21. an easy to use, lightweight scanner for Linux systems.
  22. %prep
  23. %setup -q
  24. %build
  25. gunzip clamtk.1.gz
  26. %install
  27. %__rm -rf %{buildroot}
  28. %__mkdir -p %{buildroot}%{_bindir}
  29. %__mkdir -p %{buildroot}%{_mandir}/man1
  30. %__mkdir -p %{buildroot}%{perl_vendorlib}/ClamTk
  31. %__mkdir -p %{buildroot}%{_datadir}/applications
  32. %__mkdir -p %{buildroot}%{_datadir}/pixmaps
  33. %__mkdir -p %{buildroot}%{_localedir}
  34. %__install -m 0755 clamtk %{buildroot}%{_bindir}
  35. %__install -m 0644 clamtk.1 %{buildroot}%{_mandir}/man1
  36. %__install -m 0644 lib/*.pm %{buildroot}%{perl_vendorlib}/ClamTk
  37. %__install -m 0644 clamtk.desktop %{buildroot}%{_datadir}/applications
  38. %__install -m 0644 images/clamtk.xpm images/clamtk.png %{buildroot}%{_datadir}/pixmaps
  39. langs="ja de fr ko zh_CN zh_TW"
  40. for lang in $langs
  41. do
  42. %__mkdir -p %{buildroot}%{_localedir}/${lang}/LC_MESSAGES
  43. %__cp -a po/${lang}.mo %{buildroot}%{_localedir}/${lang}/LC_MESSAGES/clamtk.mo
  44. done
  45. %{find_lang} %{name}
  46. %check
  47. desktop-file-validate %{buildroot}%{_datadir}/applications/clamtk.desktop
  48. %clean
  49. %__rm -rf %{buildroot}
  50. %post
  51. update-desktop-database %{_datadir}/applications
  52. %postun
  53. update-desktop-database %{_datadir}/applications
  54. %files -f %{name}.lang
  55. %defattr(-,root,root,-)
  56. %doc CHANGES LICENSE DISCLAIMER README
  57. %{_bindir}/clamtk
  58. %{_mandir}/man1/clamtk.1*
  59. %{perl_vendorlib}/ClamTk
  60. %{_datadir}/applications/clamtk.desktop
  61. %{_datadir}/pixmaps/clamtk.*
  62. %changelog
  63. * Sun Jun 04 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 5.24-1
  64. - update to 5.24
  65. - update URL tag
  66. * Sun Dec 20 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.20-1
  67. - new upstream release.
  68. * Mon Jan 19 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 5.13-1
  69. - new upstream release
  70. - moved to Applications/System Group
  71. * Tue Apr 26 2011 IWAI, Masaharu <iwai@alib.jp> 4.32-1
  72. - new upstream release
  73. * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 4.31-1
  74. - Initial build.