From 1bc17294cc66ac7d9187692db2d14c6b4f56e900 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org>
Date: Sun, 31 Jan 2016 09:58:36 +0100
Subject: Modernize spec.

---
 perl-Starlet.spec | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/perl-Starlet.spec b/perl-Starlet.spec
index d421ba2..0b0c62a 100644
--- a/perl-Starlet.spec
+++ b/perl-Starlet.spec
@@ -1,6 +1,6 @@
 Name:           perl-Starlet
 Version:        0.28
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Simple, high-performance PSGI/Plack HTTP server
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -38,23 +38,15 @@ running HTTP application servers behind a reverse proxy.
 
 %prep
 %setup -q -n Starlet-%{version}
-
-# Remove bundled modules
-for f in $(find inc/Module -name *.pm); do
-  pat=$(echo "$f" | sed 's,/,\\/,g;s,\.,\\.,g')
-  rm $f
-  sed -i -e "/$pat/d" MANIFEST
-done
+rm -r inc/
+sed -i -e '/^inc\/.*$/d' MANIFEST
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -66,6 +58,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Sun Jan 31 2016 Ralf Corsépius <corse...@fedoraproject.org> - 0.28-2
+- Modernize spec.
+
 * Wed Nov 18 2015 Ralf Corsépius <corse...@fedoraproject.org> - 0.28-1
 - Upstream update.
 - Update BRs.
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Starlet.git/commit/?h=f22&id=1bc17294cc66ac7d9187692db2d14c6b4f56e900
--
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