Spec clean-up
- Use DESTDIR rather than PERL_INSTALL_ROOT - One buildreq per line for readability - Add buildreqs for core perl modules, which might be dual-lived
This commit is contained in:
parent
8c14341f2b
commit
8be079f61d
@ -1,7 +1,7 @@
|
||||
Summary: Various mail-related perl modules
|
||||
Name: perl-MailTools
|
||||
Version: 2.08
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/MailTools/
|
||||
@ -9,9 +9,18 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}
|
||||
Patch0: MailTools-2.08-UTF8.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl >= 3:5.8.1
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(Date::Format)
|
||||
BuildRequires: perl(Date::Parse)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(POSIX)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
BuildRequires: perl(Date::Format), perl(Date::Parse), perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More), perl(Test::Pod), perl >= 3:5.8.1
|
||||
|
||||
%description
|
||||
MailTools is a set of Perl modules related to mail applications.
|
||||
@ -24,7 +33,7 @@ cd examples
|
||||
for file in *.PL; do
|
||||
perl $file
|
||||
done
|
||||
chmod -x *_demo
|
||||
chmod -c -x *_demo
|
||||
# Remove example-generation scripts, no longer needed
|
||||
# It causes warnings from MakeMaker, but we don't care
|
||||
rm *.PL
|
||||
@ -39,7 +48,7 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
||||
%{_fixperms} %{buildroot}
|
||||
@ -100,6 +109,11 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man3/Mail::Util.3pm*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 2.08-3
|
||||
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
||||
- One buildreq per line for readability
|
||||
- Add buildreqs for core perl modules, which might be dual-lived
|
||||
|
||||
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.08-2
|
||||
- Perl mass rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user