diff --git a/perl-ClamAV-Client.spec b/perl-ClamAV-Client.spec new file mode 100644 index 0000000..3acecb6 --- /dev/null +++ b/perl-ClamAV-Client.spec @@ -0,0 +1,59 @@ +Name: perl-ClamAV-Client +Summary: Client class for the ClamAV clamd virus scanner daemon +Version: 0.11 +Release: 2%{?dist} +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/ClamAV-Client/ +Source0: http://www.cpan.org/authors/id/J/JM/JMEHNLE/clamav-client/ClamAV-Client-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: perl(Module::Build) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# These are not found by rpmbuild +Requires: perl(IO::Socket::INET) +Requires: perl(IO::Socket::UNIX) + +%{?perl_default_filter} + +%description +ClamAV::Client is a class acting as a client for a ClamAV clamd virus +scanner daemon. The daemon may run locally or on a remote system as +ClamAV::Client can use both Unix domain sockets and TCP/IP sockets. The +full functionality of the clamd client/server protocol is supported. + + +%prep +%setup -q -n ClamAV-Client-%{version} + + +%build +perl Build.PL installdirs=vendor +./Build + + +%install +./Build install destdir=%{buildroot} create_packlist=0 + +%{_fixperms} %{buildroot}/* + + +%check +./Build test + + +%files +%doc CHANGES README +%{_mandir}/man3/ClamAV* +%{perl_vendorlib}/ClamAV + + +%changelog +* Tue Jan 22 2013 Mathieu Bridon - 0.11-2 +- Replace usage of the %%{__perl} macro by the plain perl command. +- Add two run-time requirements missed by rpmbuild. + +* Tue Jan 15 2013 Mathieu Bridon - 0.11-1 +- Initial package for Fedora, with help from cpanspec.