rpms/perl-Mail-Sendmail/devel perl-Mail-Sendmail.spec,1.4,1.5

Ville Skytta (scop) fedora-extras-commits at redhat.com
Thu Dec 16 19:07:07 UTC 2004


Author: scop

Update of /cvs/extras/rpms/perl-Mail-Sendmail/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv11488

Modified Files:
	perl-Mail-Sendmail.spec 
Log Message:
Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.


Index: perl-Mail-Sendmail.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Mail-Sendmail/devel/perl-Mail-Sendmail.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- perl-Mail-Sendmail.spec	10 Dec 2004 22:03:08 -0000	1.4
+++ perl-Mail-Sendmail.spec	16 Dec 2004 19:07:05 -0000	1.5
@@ -1,6 +1,8 @@
+%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
+
 Name:           perl-Mail-Sendmail
 Version:        0.79
-Release:        5
+Release:        6
 Epoch:          0
 Summary:        Simple platform independent mailer for Perl
 
@@ -11,7 +13,8 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  perl
+BuildRequires:  perl >= 1:5.6.1
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 # Not picked up automatically.
 Requires:       perl(MIME::QuotedPrint)
 
@@ -28,17 +31,14 @@
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install \
-  PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
-  INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
-find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
-  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
@@ -54,11 +54,14 @@
 %files
 %defattr(-,root,root,-)
 %doc Changes README Sendmail.html Todo
-%{_libdir}/perl*/*
-%{_mandir}/man3/*.3*
+%{perl_vendorlib}/Mail
+%{_mandir}/man3/Mail::Sendmail.3*
 
 
 %changelog
+* Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.79-6
+- Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.
+
 * Tue Jan 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.79-0.fdr.5
 - Fix License and %%description (#65).
 




More information about the scm-commits mailing list