Simplify build and install phase

This commit is contained in:
Michal Josef Špaček 2022-12-08 16:21:07 +01:00
parent 856d19d5a4
commit 8f6fda4033

View File

@ -32,14 +32,12 @@ rm -r inc
sed -i -e '/^inc/ d' MANIFEST
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install PERL_INSTALL_ROOT=$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 \;
%{_fixperms} $RPM_BUILD_ROOT/*
%{make_install}
%{_fixperms} %{buildroot}/*
%check
make test
@ -51,6 +49,7 @@ make test
%changelog
* Thu Dec 08 2022 Michal Josef Špaček <mspacek@redhat.com> - 0.02-30
- Simplify build and install phase
- Update license to SPDX format
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-29