clamtk/clamtk.spec

104 lines
3.0 KiB
RPMSpec
Raw Normal View History

# vim: set ts=4 sw=4 et:
Name: clamtk
Version: 4.36
Release: 0
Summary: GUI for the ClamAV Antivirus
# http://prdownloads.sourceforge.net/clamtk/clamtk-%{version}.tar.gz
Source: clamtk-%{version}.tar.bz2
Patch0: clamtk-add_searchpath.patch
URL: http://clamtk.sourceforge.net/
Group: Productivity/Security
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: clamav >= 0.88
Requires: clamav-db
Requires: perl
Requires: perl(Cwd)
Requires: perl(Date::Calc)
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)
Requires: perl(Gtk2)
Requires: perl(Gtk2::SimpleList)
Requires: perl(LWP::UserAgent)
Requires: perl(Locale::gettext)
Requires: perl(Net::DNS)
Requires: zenity
# not actually needed, but to make the build fail if the dependencies
# won't be available at runtime:
BuildRequires: perl(Cwd)
BuildRequires: perl(Date::Calc)
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)
BuildRequires: perl(Gtk2)
BuildRequires: perl(Gtk2::SimpleList)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Locale::gettext)
BuildRequires: perl(Net::DNS)
BuildRequires: zenity
BuildRequires: update-desktop-files
BuildArch: noarch
#Obsoletes: clamtk-kde
%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.
%lang_package
%prep
%setup -q
%patch0
%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
lang="${mo%%.mo}"
%__install -D -m 0644 "${mo}" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo"
done
popd #po
for l in cs_CZ el_GR nl_BE ast; do
%__rm -rf "%{buildroot}%{_datadir}/locale/$l"
done
%suse_update_desktop_file -r "%{name}" System Security
%find_lang "%{name}"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc CHANGES DISCLAIMER LICENSE README
%{_bindir}/clamtk
%{_prefix}/lib/ClamTk
%{_datadir}/pixmaps/clamtk.png
%{_datadir}/applications/%{name}.desktop
%doc %{_mandir}/man1/clamtk.1%{ext_man}
%files lang -f "%{name}.lang"