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