Simplify build and install phases

This commit is contained in:
Michal Josef Špaček 2022-12-11 13:58:54 +01:00
parent 50e6c7fe48
commit 8ad00050b0

View File

@ -33,13 +33,12 @@ want in their MANIFEST files. The SKIP file is generated each time that you
%setup -q -n Module-Install-ManifestSkip-%{version}
%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 DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%{make_install}
%{_fixperms} %{buildroot}/*
%check
make test
@ -52,6 +51,7 @@ make test
%changelog
* Sun Dec 11 2022 Michal Josef Špaček <mspacek@redhat.com> - 0.24-25
- Simplify build and install phases
- Update license to SPDX format
- Use %license macro