Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.

epel9
Ville Skyttä 20 years ago
parent e413b85a3d
commit 6530bb7968

@ -1,6 +1,8 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perl-Mail-Sendmail Name: perl-Mail-Sendmail
Version: 0.79 Version: 0.79
Release: 5 Release: 6
Epoch: 0 Epoch: 0
Summary: Simple platform independent mailer for Perl Summary: Simple platform independent mailer for Perl
@ -11,7 +13,8 @@ Source0: http://www.cpan.org/authors/id/M/MI/MIVKOVIC/Mail-Sendmail-0.79.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Not picked up automatically. # Not picked up automatically.
Requires: perl(MIME::QuotedPrint) Requires: perl(MIME::QuotedPrint)
@ -28,17 +31,14 @@ easy to setup and use.
%build %build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install \ make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
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 {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
@ -54,11 +54,14 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README Sendmail.html Todo %doc Changes README Sendmail.html Todo
%{_libdir}/perl*/* %{perl_vendorlib}/Mail
%{_mandir}/man3/*.3* %{_mandir}/man3/Mail::Sendmail.3*
%changelog %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 * Tue Jan 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.79-0.fdr.5
- Fix License and %%description (#65). - Fix License and %%description (#65).

Loading…
Cancel
Save