X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Razor.spec;h=7359a32f13b7d9049e917c38371f80694711222b;hb=05fb2c7c6fbaae61f7572d6e5c031f724610e4a2;hp=1af8b6e4d17811b2c95446f476d1378f84656c7d;hpb=7fcf724ff64224de4219b6b83af35740ede1f1e8;p=packages%2FRazor.git diff --git a/Razor.spec b/Razor.spec index 1af8b6e..7359a32 100644 --- a/Razor.spec +++ b/Razor.spec @@ -1,76 +1,75 @@ # # Conditional build: -# _without_autodeps - don't BR packages needed only for resolving deps +%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 +Summary(pl.UTF-8): Zbiór plików do sprawdzania, raportowania i odrzucania spamu Name: Razor -Version: 2.12 -Release: 4 +Version: 2.85 +Release: 13 License: Artistic Group: Applications/Mail -Source0: http://dl.sourceforge.net/sourceforge/razor/razor-agents-%{version}.tar.gz -# Source0-md5: 1528a40a7ce0929971f2b745b5e88ee9 -Patch0: razor-agents-makefile.patch +Source0: http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.bz2 +# Source0-md5: 014d08db40187cb1316482191566b012 URL: http://razor.sourceforge.net/ -BuildRequires: perl-devel >= 5.8.0 -%if 0%{!?_without_autodeps:1} +Patch0: man-build.patch +%if %{with autodeps} BuildRequires: perl-Class-Fields BuildRequires: perl-Digest-Nilsimsa BuildRequires: perl-Digest-SHA1 -BuildRequires: perl-Time-HiRes +BuildRequires: perl-Net-DNS 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} -BuildArch: noarch -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Requires: perl-Razor = %{version}-%{release} Obsoletes: perl-Vipuls-Razor-V1 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Vipul's Razor is a distributed, collaborative, spam detection, reporting, -and filtering network. The primary focus of the system is to identify -and remove all email spam from the internet. Visit the website at -. +Vipul's Razor is a distributed, collaborative, spam detection, +reporting, and filtering network. The primary focus of the system is +to identify and remove all email spam from the internet. -%description -l pl -Vipul's Razor jest dystrybuowaln±, tworzon± dziêki wspó³pracy sieci±, -s³u¿±c± do wykrywania spamu, raportowania i filtrowania. Podstawowym +%description -l pl.UTF-8 +Vipul's Razor jest dystrybuowalną, tworzoną dzięki współpracy siecią, +służącą do wykrywania spamu, raportowania i filtrowania. Podstawowym zadaniem systemu jest identyfikacja spamu z poczty internetowej. -Odwied¼ stronê domow±: . %package -n perl-Razor Summary: Perl modules for Razor -Summary(pl): Modu³y Perla dla Razora +Summary(pl.UTF-8): Moduły Perla dla Razora Group: Development/Languages/Perl %description -n perl-Razor Perl modules for Razor, class Razor2::. -%description -n perl-Razor -l pl -Modu³y Perla dla Razora, klasa Razor2::. +%description -n perl-Razor -l pl.UTF-8 +Moduły Perla dla Razora, klasa Razor2::. %prep %setup -q -n razor-agents-%{version} -%patch -p0 +%patch0 -p1 %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor -%{__make} +%{__make} \ + OPTIMIZE="%{rpmcflags}" -#%%{__make} test +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sysconfdir}/razor -%{__make} install \ +%{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT -for f in check register report revoke; do - ln -sf razor-client $RPM_BUILD_ROOT%{_bindir}/razor-$f -done +rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/razor-agents/.packlist %clean rm -rf $RPM_BUILD_ROOT @@ -78,10 +77,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Change* BUGS README INSTALL CREDITS -%{_bindir}/* -%{_mandir}/man[15]/* +%attr(755,root,root) %{_bindir}/* +%{_mandir}/man1/* +%{_mandir}/man5/* %files -n perl-Razor %defattr(644,root,root,755) -%{perl_vendorlib}/Razor2 +%dir %{_sysconfdir}/razor +%{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/autosplit.ix +%{perl_vendorarch}/auto/Razor2/Syslog %{_mandir}/man3/*