Modernize spec file
This commit is contained in:
parent
6bcc30c839
commit
b2402deadd
|
@ -6,7 +6,6 @@ Group: Development/Libraries
|
|||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/PPIx-Utilities/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Run-time:
|
||||
|
@ -43,20 +42,14 @@ perl Makefile.PL INSTALLDIRS=vendor
|
|||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{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}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README
|
||||
%{perl_vendorlib}/PPIx/
|
||||
%{_mandir}/man3/PPIx::Utilities.3pm*
|
||||
|
|
Loading…
Reference in New Issue