From 3edbf509462194629a180b479e4f3fd4f60710d5 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Tue, 1 Mar 2016 00:18:47 +0100
Subject: Modernize spec file

---
 perl-IPC-Signal.spec | 31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)

diff --git a/perl-IPC-Signal.spec b/perl-IPC-Signal.spec
index 2da1df9..1ee287c 100644
--- a/perl-IPC-Signal.spec
+++ b/perl-IPC-Signal.spec
@@ -1,17 +1,16 @@
 Name:           perl-IPC-Signal
 Version:        1.00
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Utility functions dealing with signals for Perl 
-
-Group:          Development/Libraries
 License:        GPL+ or Artistic
-URL:            http://search.cpan.org/dist/IPC-Signal/
 
+URL:            http://search.cpan.org/dist/IPC-Signal/
 Source0:        
http://www.cpan.org/modules/by-module/IPC/IPC-Signal-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch 
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %{?perl_default_filter}
@@ -27,15 +26,12 @@ numbers and vice versa.
 
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor 
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install DESTDIR=$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/*
 
 
@@ -43,18 +39,18 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 
2>/dev/null ';'
 make test
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorlib}/IPC/
+%{perl_vendorlib}/IPC
 %{_mandir}/man3/IPC::Signal.3pm*
 
 
 %changelog
+* Mon Feb 29 2016 Emmanuel Seyman <emman...@seyman.fr> - 1.00-17
+- Clean up spec file
+- Pass NO_PACKLIST to Makefile.PL
+- Trim spec changelog
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.00-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
@@ -99,6 +95,3 @@ rm -rf $RPM_BUILD_ROOT
 
 * Sun Jun 27 2010 Ralf Corsépius <corse...@fedoraproject.org> 1.00-2
 - Rebuild for perl-5.12.
-
-* Tue Jun 10 2010 Matthias Runge <mru...@matthias-runge.de> 1.00-1
-- initial version, renamed from perl-IPC-signal
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-IPC-Signal.git/commit/?h=master&id=3edbf509462194629a180b479e4f3fd4f60710d5
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to