Modernize spec file
This commit is contained in:
parent
84b61ebda5
commit
2fc6f3c708
|
@ -3,7 +3,6 @@ Version: 1.55
|
|||
Release: 2%{?dist}
|
||||
Summary: Perl extension for sharing data structures between threads
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/threads-shared/
|
||||
Source0: http://www.cpan.org/authors/id/J/JD/JDHEDDEN/threads-shared-%{version}.tar.gz
|
||||
# Fix arenas allocation, RT#131124, in perl-5.25.12
|
||||
|
@ -16,7 +15,7 @@ BuildRequires: perl-devel
|
|||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Config)
|
||||
# Config_m not needed
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
|
@ -51,12 +50,11 @@ Win32). It is used together with the threads module.
|
|||
%patch0 -p3
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
|
|
Loading…
Reference in New Issue