2011-06-12 01:46:57 +02:00
|
|
|
# vim: set ts=4 sw=4 et:
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2009-11-03 06:26:21 +01:00
|
|
|
Name: clamtk
|
2011-10-16 19:02:28 +02:00
|
|
|
Version: 4.36
|
2009-11-03 06:26:21 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: GUI for the ClamAV Antivirus
|
2009-07-12 00:20:45 +02:00
|
|
|
# http://prdownloads.sourceforge.net/clamtk/clamtk-%{version}.tar.gz
|
2011-06-12 01:46:57 +02:00
|
|
|
Source: clamtk-%{version}.tar.bz2
|
2011-10-16 19:02:28 +02:00
|
|
|
Patch0: clamtk-add_searchpath.patch
|
2009-11-03 06:26:21 +01:00
|
|
|
URL: http://clamtk.sourceforge.net/
|
|
|
|
Group: Productivity/Security
|
2011-06-12 01:46:57 +02:00
|
|
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
2009-11-03 06:26:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
Requires: clamav >= 0.88
|
|
|
|
Requires: clamav-db
|
2011-04-26 08:09:01 +02:00
|
|
|
Requires: perl
|
2011-06-12 01:46:57 +02:00
|
|
|
Requires: perl(Cwd)
|
2011-04-26 08:09:01 +02:00
|
|
|
Requires: perl(Date::Calc)
|
2011-06-12 01:46:57 +02:00
|
|
|
Requires: perl(Digest::MD5)
|
|
|
|
Requires: perl(Encode)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
Requires: perl(File::Find::Rule)
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
Requires: perl(Glib)
|
2011-04-26 08:09:01 +02:00
|
|
|
Requires: perl(Gtk2)
|
2011-06-12 01:46:57 +02:00
|
|
|
Requires: perl(Gtk2::SimpleList)
|
|
|
|
Requires: perl(LWP::UserAgent)
|
2011-04-26 08:09:01 +02:00
|
|
|
Requires: perl(Locale::gettext)
|
|
|
|
Requires: perl(Net::DNS)
|
2009-04-28 13:13:20 +02:00
|
|
|
Requires: zenity
|
2011-04-26 08:09:01 +02:00
|
|
|
# not actually needed, but to make the build fail if the dependencies
|
|
|
|
# won't be available at runtime:
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Cwd)
|
2011-04-26 08:09:01 +02:00
|
|
|
BuildRequires: perl(Date::Calc)
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
BuildRequires: perl(File::Find::Rule)
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(Glib)
|
2011-04-26 08:09:01 +02:00
|
|
|
BuildRequires: perl(Gtk2)
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Gtk2::SimpleList)
|
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
2011-04-26 08:09:01 +02:00
|
|
|
BuildRequires: perl(Locale::gettext)
|
|
|
|
BuildRequires: perl(Net::DNS)
|
|
|
|
BuildRequires: zenity
|
|
|
|
BuildRequires: update-desktop-files
|
2009-11-03 06:26:21 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
#Obsoletes: clamtk-kde
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
|
|
|
|
It is designed to be an easy-to-use, point and click virus scanner.
|
|
|
|
|
2009-12-06 00:42:44 +01:00
|
|
|
%lang_package
|
2009-03-21 22:53:07 +01:00
|
|
|
%prep
|
2009-04-27 00:42:11 +02:00
|
|
|
%setup -q
|
2009-11-03 06:26:21 +01:00
|
|
|
%patch0
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__gzip -dc clamtk.1.gz > clamtk.1
|
|
|
|
%__rm clamtk.1.gz
|
|
|
|
|
|
|
|
%install
|
|
|
|
%__install -D -m 0755 clamtk "%{buildroot}%{_bindir}/clamtk"
|
|
|
|
%__install -D -m 0644 clamtk.png "%{buildroot}%{_datadir}/pixmaps/clamtk.png"
|
|
|
|
%__install -D -m 0644 clamtk.desktop "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
|
|
%__install -D -m 0644 clamtk.1 "%{buildroot}%{_mandir}/man1/clamtk.1"
|
|
|
|
|
|
|
|
# use /usr/lib, not %{_libdir}:
|
|
|
|
%__install -d "%{buildroot}%{_prefix}/lib/ClamTk"
|
|
|
|
%__install -m0644 lib/*.pm "%{buildroot}%{_prefix}/lib/ClamTk/"
|
|
|
|
|
|
|
|
pushd po
|
|
|
|
for mo in *.mo; do
|
2011-06-12 01:46:57 +02:00
|
|
|
lang="${mo%%.mo}"
|
|
|
|
%__install -D -m 0644 "${mo}" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo"
|
2009-03-21 22:53:07 +01:00
|
|
|
done
|
|
|
|
popd #po
|
2011-01-10 00:16:08 +01:00
|
|
|
for l in cs_CZ el_GR nl_BE ast; do
|
2009-12-06 00:42:44 +01:00
|
|
|
%__rm -rf "%{buildroot}%{_datadir}/locale/$l"
|
|
|
|
done
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%suse_update_desktop_file -r "%{name}" System Security
|
|
|
|
|
|
|
|
%find_lang "%{name}"
|
|
|
|
|
|
|
|
%clean
|
2010-09-11 20:51:05 +02:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2009-12-06 00:42:44 +01:00
|
|
|
%files
|
2009-04-27 00:42:11 +02:00
|
|
|
%defattr(-,root,root)
|
2009-03-21 22:53:07 +01:00
|
|
|
%doc CHANGES DISCLAIMER LICENSE README
|
|
|
|
%{_bindir}/clamtk
|
|
|
|
%{_prefix}/lib/ClamTk
|
|
|
|
%{_datadir}/pixmaps/clamtk.png
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-02-28 17:07:08 +01:00
|
|
|
%doc %{_mandir}/man1/clamtk.1%{ext_man}
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2009-12-06 00:42:44 +01:00
|
|
|
%files lang -f "%{name}.lang"
|
|
|
|
|