[perl-Net-UPnP] 1.4.3 bump

Petr Pisar ppisar at fedoraproject.org
Mon Oct 20 14:42:35 UTC 2014


commit bb468e6011f354c8c8d947af542aa57e9ea1d42a
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Oct 20 16:42:08 2014 +0200

    1.4.3 bump

 .gitignore         |    1 +
 perl-Net-UPnP.spec |   60 ++++++++++++++++++++++++++--------------------------
 sources            |    2 +-
 3 files changed, 32 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6b7a6be..129f669 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Net-UPnP-1.4.2.tar.gz
+/Net-UPnP-1.4.3.tar.gz
diff --git a/perl-Net-UPnP.spec b/perl-Net-UPnP.spec
index 0dfc6e3..1a6e25a 100644
--- a/perl-Net-UPnP.spec
+++ b/perl-Net-UPnP.spec
@@ -1,18 +1,24 @@
-Name:		perl-Net-UPnP
-Version:	1.4.2
-Epoch:		1
-Release:	15%{?dist}
-Summary:	Perl extension for UPnP
-License:	BSD
-Group:		Development/Libraries
-URL:		http://search.cpan.org/dist/Net-UPnP/
-Source0:	http://search.cpan.org/CPAN/authors/id/S/SK/SKONNO/Net-UPnP-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:	noarch
-BuildRequires:	perl(ExtUtils::MakeMaker)
+Name:       perl-Net-UPnP
+Version:    1.4.3
+Epoch:      1
+Release:    1%{?dist}
+Summary:    Perl extension for UPnP
+License:    BSD
+Group:      Development/Libraries
+URL:        http://search.cpan.org/dist/Net-UPnP/
+Source0:    http://search.cpan.org/CPAN/authors/id/S/SK/SKONNO/Net-UPnP-%{version}.tar.gz
+BuildArch:  noarch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+# Socket not used at tests
+BuildRequires:  perl(vars)
 BuildRequires:  perl(version)
-BuildRequires:	perl(Test::More)
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Tests:
+BuildRequires:  perl(Test::More)
+Requires:   perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 This package provides some functions to control UPnP devices.
@@ -20,43 +26,37 @@ This package provides some functions to control UPnP devices.
 %prep
 %setup -q -n Net-UPnP-%{version}
 # Fix file attributes
-find -name '*.pm' -exec chmod a-x '{}' \;
+find -name '*.pm' -exec chmod a-x '{}' +
+chmod a-x Changes README
 
 # Fix shebangs
 for file in examples/*.pl; do
- sed "s|/usr/local/bin/perl|/usr/bin/perl|g" $file > $file.mod && \
- touch -r $file $file.mod && \
- mv $file.mod $file
+    sed '1 s|^#!/usr/local/bin/perl|#!%{__perl}|g' "$file" > "${file}.mod" && \
+    touch -r "$file" "${file}.mod" && \
+    mv "${file}.mod" "$file"
 done
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README examples/
 %{perl_vendorlib}/Net/
 %{_mandir}/man3/Net::UPnP*
 
 %changelog
+* Mon Oct 20 2014 Petr Pisar <ppisar at redhat.com> - 1:1.4.3-1
+- 1.4.3 bump
+
 * Thu Aug 28 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1:1.4.2-15
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index 3da2c0e..17cd7f9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bc009fd76b565df40a70aca49af82a7d  Net-UPnP-1.4.2.tar.gz
+a30d7cc54290946aeb028650cfdc9279  Net-UPnP-1.4.3.tar.gz


More information about the scm-commits mailing list