Simplify build and install phase
This commit is contained in:
parent
77d9cca68b
commit
291fe71fc5
@ -31,14 +31,12 @@ should be run only if the module is being built by an author.
|
||||
%setup -q -n Module-Install-AuthorTests-%{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 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
|
||||
@ -50,6 +48,7 @@ make test
|
||||
|
||||
%changelog
|
||||
* Thu Dec 08 2022 Michal Josef Špaček <mspacek@redhat.com> - 0.002-31
|
||||
- Simplify build and install phase
|
||||
- Update license to SPDX format
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.002-30
|
||||
|
||||
Loading…
Reference in New Issue
Block a user