From bc2257f4d7d427489f4b5665d9e84c0de01f2df6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:24:02 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 5.00-1mamba;Tue Nov 12 2013] --- README.md | 3 +++ clamtk.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 clamtk.spec diff --git a/README.md b/README.md index 1553ad5..40078df 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # clamtk +ClamTk is a frontend for ClamAV using Perl and Gtk+ graphics libraries. +It is intended to be an easy to use, light-weight, on-demand scanner for Linux systems + diff --git a/clamtk.spec b/clamtk.spec new file mode 100644 index 0000000..38f48d9 --- /dev/null +++ b/clamtk.spec @@ -0,0 +1,71 @@ +Name: clamtk +Version: 5.00 +Release: 1mamba +Summary: A frontend for ClamAV using Perl and Gtk+ graphics libraries +Group: Graphical Desktop/Applications/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://clamtk.sourceforge.net/ +Source: https://bitbucket.org/dave_theunsub/clamtk/downloads/clamtk-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +BuildRequires: perl-Glib +BuildRequires: perl-Gtk2 +BuildRequires: perl-JSON +BuildRequires: perl-libwww +BuildRequires: perl-Locale-gettext +BuildRequires: perl-Text-CSV +## AUTOBUILDREQ-END +Requires: clamav +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +ClamTk is a frontend for ClamAV using Perl and Gtk+ graphics libraries. +It is intended to be an easy to use, light-weight, on-demand scanner for Linux systems + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d -m0755 %{buildroot}%{perl_sitelib}/ClamTk +cp lib/*.pm %{buildroot}%{perl_sitelib}/ClamTk/ +install -D -m0755 clamtk %{buildroot}%{_bindir}/clamtk +install -D -m0644 clamtk.1.gz %{buildroot}%{_mandir}/man1/clamtk.1.gz +install -D -m0644 clamtk.desktop %{buildroot}%{_datadir}/applications/clamtk.desktop +install -D -m0644 images/clamtk.png %{buildroot}%{_datadir}/pixmaps/clamtk.png +install -D -m0644 images/clamtk.xpm %{buildroot}%{_datadir}/pixmaps/clamtk.xpm + +for f in po/*.mo; do + MOLANG=`basename $f | sed "s|\.mo||"` + install -D -m0644 $f %{buildroot}%{_datadir}/locale/$MOLANG/LC_MESSAGES/%{name}.mo +done + +%find_lang %{name} || touch %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%posttrans +update-desktop-database -q >/dev/null 2>&1 +: + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/clamtk +%dir %{perl_sitelib}/ClamTk +%{perl_sitelib}/ClamTk/*.pm +%{_datadir}/applications/clamtk.desktop +%{_mandir}/man1/clamtk.1.gz +%{_datadir}/pixmaps/clamtk.png +%{_datadir}/pixmaps/clamtk.xpm +%doc LICENSE + +%changelog +* Tue Nov 12 2013 Silvan Calarco 5.00-1mamba +- package created by silvan using the webbuild interface