# # spec file for package perl-Razor2-Client-Agent # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Razor2-Client-Agent Version: 2.84 Release: 5.3 %define cpan_name Razor2-Client-Agent Summary: Collaborative, content-based spam filtering network agent. License: CHECK(GPL-1.0+ or Artistic-1.0) Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Razor2-Client-Agent/ Source: http://www.cpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build # This patch allows building with perl 5.22. # It also works with older versions. # https://github.com/toddr/Razor2-Client-Agent/commit/cb7e4a4ef1a4ad1cfdaa39916c2d5cbbbe13cd2a#diff-5d3ba18294715d9415e9e732852bfec6 Patch: Razor2-Makefile-perl5.22.diff # comes from jed Patch1: perl-razor2-client-agent-patch.diff BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Digest::SHA1) BuildRequires: perl(URI::Escape) #BuildRequires: perl(Razor2::Client::Config) #BuildRequires: perl(Razor2::Client::Core) #BuildRequires: perl(Razor2::Client::Engine) #BuildRequires: perl(Razor2::Client::Version) #BuildRequires: perl(Razor2::Engine::VR8) #BuildRequires: perl(Razor2::Errorhandler) #BuildRequires: perl(Razor2::Logger) #BuildRequires: perl(Razor2::Preproc::deBase64) #BuildRequires: perl(Razor2::Preproc::deHTML) #BuildRequires: perl(Razor2::Preproc::deHTML_comment) #BuildRequires: perl(Razor2::Preproc::deHTMLxs) #BuildRequires: perl(Razor2::Preproc::deNewline) #BuildRequires: perl(Razor2::Preproc::deQP) #BuildRequires: perl(Razor2::Preproc::enBase64) #BuildRequires: perl(Razor2::Preproc::Manager) #BuildRequires: perl(Razor2::Signature::Ephemeral) #BuildRequires: perl(Razor2::Signature::Whiplash) #BuildRequires: perl(Razor2::String) #BuildRequires: perl(Razor2::Syslog) Requires: perl(Digest::SHA1) Requires: perl(URI::Escape) %{perl_requires} %description Collaborative, content-based spam filtering network agent. %prep %setup -q -n %{cpan_name}-%{version} %patch -p1 %patch1 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc BUGS Changes CREDITS FAQ LICENSE README SERVICE_POLICY %changelog