- use perl_default_filter and DESTDIR

This commit is contained in:
Iain Arnell 2010-04-04 06:57:46 +00:00
parent c89d34e753
commit 9fcde4693c

View File

@ -1,6 +1,6 @@
Name: perl-File-ShareDir-Install
Version: 0.03
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Install shared files
License: GPL+ or Artistic
Group: Development/Libraries
@ -15,6 +15,8 @@ BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
File::ShareDir::Install allows you to install read-only data files from a
distribution. It is a companion module to File::ShareDir, which allows you
@ -30,7 +32,7 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
make pure_install DESTDIR=$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 \;
@ -50,5 +52,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*
%changelog
* Sun Apr 04 2010 Iain Arnell <iarnell@gmail.com> 0.03-2
- use perl_default_filter and DESTDIR
* Fri Apr 02 2010 Iain Arnell 0.03-1
- Specfile autogenerated by cpanspec 1.78.