- Fix demo scripts.

- Sync with fedora-rpmdevtools' perl spec template.
This commit is contained in:
Ville Skyttä 2005-12-14 21:09:15 +00:00
parent 826bf88ec9
commit b9af436eb9

View File

@ -1,7 +1,7 @@
Summary: Various mail-related perl modules
Name: perl-MailTools
Version: 1.67
Release: 1%{?dist}
Release: 2%{?dist}
License: GPL or Artistic
Group: Development/Libraries
@ -10,8 +10,10 @@ Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-%{version}.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.1, perl(Net::Domain), perl(Net::SMTP)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(Net::Domain)
BuildRequires: perl(Net::SMTP)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
MailTools is a set of Perl modules related to mail applications.
@ -19,26 +21,31 @@ MailTools is a set of Perl modules related to mail applications.
%prep
%setup -q -n MailTools-%{version}
cd examples
for file in *.PL ; do %{__perl} $file ; done ; chmod -x *_demo
rm *.PL # yeah, causes warnings from MakeMaker, but we don't care
cd ..
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
make %{?_smp_mflags}
%install
%{__rm} -rf "$RPM_BUILD_ROOT"
%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
%{_bindir}/find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
%{_bindir}/find $RPM_BUILD_ROOT -type d -depth -exec %{__rmdir} {} 2>/dev/null ';'
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 -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check || :
%{__make} test
%check
make test
%clean
%{__rm} -rf "$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT
%files
@ -50,6 +57,10 @@ MailTools is a set of Perl modules related to mail applications.
%changelog
* Wed Dec 14 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.67-2
- Fix demo scripts.
- Sync with fedora-rpmdevtools' perl spec template.
* Fri Jul 1 2005 Paul Howarth <paul@city-fan.org> - 1.67-1
- update to 1.67 (#161830)
- assume perl_vendorlib is set
@ -58,7 +69,7 @@ MailTools is a set of Perl modules related to mail applications.
- use macros consistently
- add dist tag
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.66-2
- rebuilt
* Sat Jan 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.66-1