rpms/perl-Sendmail-PMilter/devel perl-Sendmail-PMilter.spec,1.3,1.4

Paul Howarth pghmcfc at fedoraproject.org
Mon Feb 8 14:31:50 UTC 2010


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Sendmail-PMilter/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27995

Modified Files:
	perl-Sendmail-PMilter.spec 
Log Message:
Cosmetic spec changes for new maintainer; obsolete perl-Sendmail-Milter <= 0.18 since we provide a compatibility wrapper for it; we don't add a provide for this since we would be self-obsoleting if we did so


Index: perl-Sendmail-PMilter.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Sendmail-PMilter/devel/perl-Sendmail-PMilter.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- perl-Sendmail-PMilter.spec	7 Dec 2009 04:59:04 -0000	1.3
+++ perl-Sendmail-PMilter.spec	8 Feb 2010 14:31:49 -0000	1.4
@@ -1,17 +1,17 @@
-Name:           perl-Sendmail-PMilter
-Version:        0.97
-Release:        3%{?dist}
-Summary:        Perl binding of Sendmail Milter protocol
-License:        BSD
-Group:          Development/Libraries
-URL:            http://search.cpan.org/dist/Sendmail-PMilter/
-Source0:        http://www.cpan.org/authors/id/A/AV/AVAR/Sendmail-PMilter-%{version}.tar.gz
-Patch0:         Sendmail-PMilter-Context.pm_pod.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Summary:	Perl binding of Sendmail Milter protocol
+Name:		perl-Sendmail-PMilter
+Version:	0.97
+Release:	4%{?dist}
+License:	BSD
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/Sendmail-PMilter/
+Source0:	http://search.cpan.org/CPAN/authors/id/A/AV/AVAR/Sendmail-PMilter-%{version}.tar.gz
+Patch0:		Sendmail-PMilter-Context.pm_pod.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More)
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Obsoletes:	perl-Sendmail-Milter <= 0.18
 
 %description
 Sendmail::PMilter is a mail filtering API implementing the Sendmail milter
@@ -23,51 +23,59 @@ It should be noted that PMilter 0.90 and
 scripts written for PMilter 0.5 and earlier.  The API has been reworked
 significantly, and the enhanced APIs and rule logic provided by PMilter
 0.5 and earlier has been factored out for inclusion in a separate package
-to be called Mail::Milter.
+called Mail::Milter.
 
 %prep
 %setup -q -n Sendmail-PMilter-%{version}
-%patch0 -p1 -b .POD
 
-chmod -x examples/*.pl
-sed -i -e 's@/usr/local/bin/perl@/usr/bin/perl@' examples/*.pl
+# Fix up POD errors in Sendmail::PMilter::Context
+%patch0 -p1
+
+# Fix interpreters in examples and turn off exec bits to avoid extra deps
+%{__sed} -i -e 's@/usr/local/bin/perl@%{__perl}@' examples/*.pl
+%{__chmod} -x examples/*.pl
 
 %build
 # Using "echo" to bypass the interactive 'yes/no' question in Makefile.PL
-echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+echo yes | %{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{__rm} -rf %{buildroot}
+%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
+/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
+/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
-make test
+%{__make} test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc Changes README examples doc
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes README doc/milter-protocol.txt examples/
+%{perl_vendorlib}/Sendmail/
+%{_mandir}/man3/Sendmail::Milter.3pm*
+%{_mandir}/man3/Sendmail::PMilter.3pm*
+%{_mandir}/man3/Sendmail::PMilter::Context.3pm*
 
 %changelog
-* Mon Dec  7 2009 Stepan Kasal <skasal at redhat.com> - 0.97-3
-- rebuild against perl 5.10.1
+* Mon Feb  8 2010 Paul Howarth <paul at city-fan.org> 0.97-4
+- Cosmetic spec changes for new maintainer
+- Obsolete perl-Sendmail-Milter <= 0.18 since we provide a compatibility
+  wrapper for it; we don't add a provide for this since we would be
+  self-obsoleting if we did so
+
+* Mon Dec  7 2009 Stepan Kasal <skasal at redhat.com> 0.97-3
+- Rebuild against perl 5.10.1
 
-* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.97-2
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> 0.97-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
 * Mon Mar 16 2009 John Guthrie <guthrie at counterexample.org> 0.97-1
-- Re-released with version 0.97.
+- Re-released with version 0.97
 - Added BuildRequirement for perl(Test::More)
 
 * Sun Feb 15 2009 John Guthrie <guthrie at counterexample.org> 0.96-5
@@ -75,16 +83,16 @@ rm -rf $RPM_BUILD_ROOT
 
 * Fri Feb 06 2009 John Guthrie <guthrie at counterexample.org> 0.96-4
 - Fixed rpmlint warnings caused by including the examples directory in the %%doc
-  section.
+  section
 
 * Fri Feb 06 2009 John Guthrie <guthrie at counterexample.org> 0.96-3
 - Added files to %%doc list
 - Corrected license
 
 * Thu Feb 05 2009 John Guthrie <guthrie at counterexample.org> 0.96-2
-- Expanded %%description section.
+- Expanded %%description section
 - Ran "perl Makefile.PL" as the receiving end of a pipe since there is an
-  interactive part to that script.
+  interactive part to that script
 
 * Thu Feb 05 2009 John Guthrie <guthrie at counterexample.org> 0.96-1
-- Specfile autogenerated by cpanspec 1.77.
+- Specfile autogenerated by cpanspec 1.77



More information about the scm-commits mailing list