]> git.pld-linux.org Git - packages/Razor.git/blobdiff - Razor.spec
- perl-Time-HiRes is always BRed
[packages/Razor.git] / Razor.spec
index ba290952fa967c8afed89d2643f01b0c96326f01..73212576289c7b1be04942e01d00e4ffc83cd5ea 100644 (file)
@@ -1,19 +1,32 @@
+#
+# Conditional build:
+%bcond_without autodeps        # don't BR packages needed only for resolving deps
+%bcond_without tests           # don't perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 Summary:       Collection of files for checking, reporting, and revoking spam
 Summary(pl):   Zbiór plików do sprawdzania, raportowania i odrzucania spamu
 Name:          Razor
-Version:       2.12
-Release:       3
+Version:       2.40
+Release:       1
 License:       Artistic
 Group:         Applications/Mail
-Source0:       http://unc.dl.sourceforge.net/sourceforge/razor/razor-agents-%{version}.tar.gz
-Patch0:                razor-agents-makefile.patch
+Source0:       http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.gz
+# Source0-md5: ca1a340e13464661aa0efebd869fcebc
 URL:           http://razor.sourceforge.net/
-BuildRequires: perl >= 5
-BuildRequires: rpm-perlprov >= 3.0.3-16
-Requires:      perl-Razor = %{version}
-Obsoletes:     perl-Vipuls-Razor-V1
+%if %{with autodeps}
+BuildRequires: perl-Net-DNS
+BuildRequires: perl-Class-Fields
+BuildRequires: perl-Digest-Nilsimsa
+BuildRequires: perl-Digest-SHA1
+BuildRequires: perl-URI
+%endif
+BuildRequires: perl-Time-HiRes
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      perl-Razor = %{version}-%{release}
 BuildArch:     noarch
+Obsoletes:     perl-Vipuls-Razor-V1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,16 +54,22 @@ Modu
 
 %prep
 %setup -q -n razor-agents-%{version}
-%patch -p0
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+        INSTALLDIRS=vendor
+
 %{__make}
-#%%{__make} test
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PERL5LIB=$RPM_BUILD_ROOT%{perl_vendorarch} \
+       INSTALLMAN5DIR=%{_mandir}/man5
 
 for f in check register report revoke; do
        ln -sf razor-client $RPM_BUILD_ROOT%{_bindir}/razor-$f
@@ -62,10 +81,17 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Change* BUGS README INSTALL CREDITS
-%{_bindir}/*
+%attr(755,root,root) %{_bindir}/*
 %{_mandir}/man[15]/*
 
 %files -n perl-Razor
 %defattr(644,root,root,755)
-%{perl_sitelib}/Razor2
+%{perl_vendorarch}/Razor2
+%dir %{perl_vendorarch}/auto/Razor2
+%dir %{perl_vendorarch}/auto/Razor2/Preproc
+%dir %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs
+%attr(755,root,root) %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so
+%{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.bs
+%{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/autosplit.ix
+%{perl_vendorarch}/auto/Razor2/Syslog
 %{_mandir}/man3/*
This page took 0.15428 seconds and 4 git commands to generate.