Simplify build and install phases

This commit is contained in:
Michal Josef Špaček 2022-12-01 23:23:50 +01:00
parent dafd77b838
commit 7fb222e9d6

View File

@ -68,12 +68,11 @@ into class names. Optionally it instantiates those classes for you.
find -type f -exec chmod -x {} +
%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=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{make_install}
%{_fixperms} %{buildroot}/*
%check
@ -86,6 +85,7 @@ make test
%changelog
* Thu Dec 01 2022 Michal Josef Špaček <mspacek@redhat.com> - 2:5.2-22
- Simplify build and install phases
- Update license to SPDX format
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2-21