Modernize a spec file
This commit is contained in:
parent
29d4ed39f8
commit
17fe70c998
@ -10,7 +10,6 @@ Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/Authen-SASL-%{ve
|
||||
Patch0: Authen-SASL-RT85294-Fix-WRITE.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
@ -20,7 +19,6 @@ BuildRequires: perl(Module::Install::Metadata)
|
||||
BuildRequires: perl(Module::Install::WriteAll)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: sed
|
||||
# Run-time
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(Carp)
|
||||
@ -32,7 +30,7 @@ BuildRequires: perl(vars)
|
||||
# Tests
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Tie::Handle)
|
||||
|
||||
%description
|
||||
@ -46,17 +44,17 @@ protocols should be able to share.
|
||||
|
||||
# Remove bundled libraries
|
||||
rm -r inc
|
||||
sed -i -e '/^inc\// d' MANIFEST
|
||||
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
||||
|
||||
# Fix permissions
|
||||
chmod -c a-x example_pl
|
||||
|
||||
%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 -delete
|
||||
%{make_install}
|
||||
%{_fixperms} $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
|
||||
Loading…
Reference in New Issue
Block a user