[perl-GTop] update to 0.17

Iain Arnell iarnell at fedoraproject.org
Sat Jan 14 11:15:11 UTC 2012


commit 45dcf38f26299c38315a8b81d04db4230b96212a
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sat Jan 14 12:15:05 2012 +0100

    update to 0.17

 .gitignore     |    1 +
 perl-GTop.spec |   25 ++++++++++---------------
 sources        |    2 +-
 3 files changed, 12 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index bdbb1a3..9912463 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 GTop-0.16.tar.gz
+/GTop-0.17.tar.gz
diff --git a/perl-GTop.spec b/perl-GTop.spec
index 31429af..e181bff 100644
--- a/perl-GTop.spec
+++ b/perl-GTop.spec
@@ -1,12 +1,11 @@
 Name:           perl-GTop
-Version:        0.16
-Release:        16%{?dist}
+Version:        0.17
+Release:        1%{?dist}
 Summary:        Perl interface to libgtop
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/GTop/
 Source0:        http://www.cpan.org/authors/id/M/MJ/MJH/GTop-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 # core
@@ -15,11 +14,7 @@ BuildRequires:  perl(Test::More)
 # non-perl
 BuildRequires:  libgtop2-devel
 
-# don't "provide" private Perl libs
-%global _use_internal_dependency_generator 0
-%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
-%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
-%global __find_requires /bin/sh -c "%{__deploop R}"
+%?perl_default_filter
 
 %description
 This is a perl interface to the libgtop library, useful for collecting
@@ -43,9 +38,7 @@ mv t/threads.t t/threads.t.disable
 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} -type f -name '*.bs' -size 0 -exec rm -f {} \;
@@ -56,11 +49,7 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README TODO examples/ t/
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/GTop*
@@ -68,6 +57,12 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Sat Jan 14 2012 Iain Arnell <iarnell at gmail.com> 0.17-1
+- update to latest upstream version
+- clean up spec for modern rpmbuild
+- use DESTDIR, not PERL_INSTALL_ROOT
+- use perl_default_filter
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.16-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index f932cc2..956567a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c3b1f36c3c9e1031f783027fe1c098d0  GTop-0.16.tar.gz
+4417dd092996880b9a14bce33e0ccc3a  GTop-0.17.tar.gz



More information about the perl-devel mailing list