summaryrefslogtreecommitdiff
path: root/perl-SAVI.spec
blob: f7be9acce32393dd3b4bec561497c49f70c3acdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
Summary:	SAVI - Perl interface to the Sophos Anti-Virus engine
Summary(pl):	SAVI - interfejs perlowy do silnika antywirusa Sophos
Name:		perl-SAVI
Version:	0.25
Release:	1
License:	GPL v1+
Group:		Development/Languages/Perl
Source0:	http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/dist/SAVI-Perl-%{version}.tar.gz
# Source0-md5:	f53c5764e668e5d6c59e4713f8ee83b5
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRequires:	A-FUCKING-BRAIN-AND-PROPRIETARY-LIB!
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_noautoreqdep	libsavi.so.2

%description
SAVI-Perl is a Perl module interface to the Sophos Anti-Virus engine.
It allows you to scan files for viruses directly from Perl.

%description -l pl
SAVI-Perl to moduł Perla będący interfejsem do silnika Sophos
Anti-Virus. Pozwala na przeszukiwanie plików pod kątem wirusów
bezpośrednio z Perla.

%prep
%setup -q -n SAVI-Perl-%{version}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README example/*
%{perl_vendorarch}/*.pm
%dir %{perl_vendorarch}/auto/SAVI
%{perl_vendorarch}/auto/SAVI/*.bs
%attr(755, root, root) %{perl_vendorarch}/auto/SAVI/*.so
%{_mandir}/man3/*