From 2fc6f3c70859c08f59573274e1f75a7f5b08f6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 21 Apr 2017 11:19:56 +0200 Subject: [PATCH] Modernize spec file --- perl-threads-shared.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perl-threads-shared.spec b/perl-threads-shared.spec index 3fa395a..033bcdb 100644 --- a/perl-threads-shared.spec +++ b/perl-threads-shared.spec @@ -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/*