use rpm macros make_build and make_install

epel9
Emmanuel Seyman 4 years ago
parent 4e494eacee
commit 8b3a85bef8

@ -1,6 +1,6 @@
Name: perl-EV Name: perl-EV
Version: 4.33 Version: 4.33
Release: 3%{?dist} Release: 4%{?dist}
Summary: Wrapper for the libev high-performance event loop library Summary: Wrapper for the libev high-performance event loop library
# Note: The source archive includes a libev/ folder which contents are licensed # Note: The source archive includes a libev/ folder which contents are licensed
@ -15,7 +15,7 @@ Patch1: perl-EV-4.30-Don-t-check-bundled-libev.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(common::sense) BuildRequires: perl(common::sense)
BuildRequires: gdbm-devel BuildRequires: gdbm-devel
BuildRequires: libev-source >= 4.33 BuildRequires: libev-source >= 4.33
@ -52,21 +52,17 @@ cp -r /usr/share/libev-source/* ./libev/
%build %build
PERL_CANARY_STABILITY_NOPROMPT=1 /usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" PERL_CANARY_STABILITY_NOPROMPT=1 /usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test %{make_build} test
%files %files
@ -78,6 +74,10 @@ make test
%changelog %changelog
* Thu Oct 15 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 4.33-4
- Replace "make pure_install" with %%{make_install}
- Replace calls to make with %%{make_build}
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.33-3 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.33-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

Loading…
Cancel
Save