commit a291dc4770b7416d3cf04a4d08e8132bf6712398 Author: Tom "spot" Callaway <tcallawa@xxxxxxxxxx> Date: Wed Mar 2 12:32:24 2011 -0500 use pre-macro filtering mechanism perl-Mail-Box.spec | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) --- diff --git a/perl-Mail-Box.spec b/perl-Mail-Box.spec index 49fcf4f..1fd814f 100644 --- a/perl-Mail-Box.spec +++ b/perl-Mail-Box.spec @@ -1,6 +1,6 @@ Name: perl-Mail-Box Version: 2.097 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: Manage a mailbox, a folder with messages Group: Development/Libraries License: GPL+ or Artistic @@ -45,9 +45,14 @@ although its interface is different. %prep %setup -q -n Mail-Box-%{version} -%filter_from_requires /perl(Mail::SpamAssassin)/d -%{?perl_default_filter} - +# EPEL doesn't have nice macros. Oh well. Do it old school. +# Requires: exclude perl(Mail::SpamAssassin) +cat <<__EOF__ > %{name}-perl.req +#!/bin/sh +/usr/lib/rpm/perl.req \$* | grep -v '^perl(Mail::SpamAssassin)$' +__EOF__ +%define __perl_requires %{_builddir}/Mail-Box-%{version}/%{name}-perl.req +chmod +x %{__perl_requires} %build yes y |%{__perl} Makefile.PL INSTALLDIRS=vendor @@ -84,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Wed Mar 2 2011 Tom Callaway <spot@xxxxxxxxxxxxxxxxx> - 2.097-1.1 +- use old pre-macro filtering mechanism + * Wed Mar 2 2011 Tom Callaway <spot@xxxxxxxxxxxxxxxxx> - 2.097-1 - update to 2.097 - remove Mail::SpamAssassin from BuildRequires -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel