[perl-Gtk2-Ex-Utils] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Tue Jan 31 13:05:25 UTC 2012


commit 8cba77c318bf0cf28d6d3444c6f77a935f338046
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Jan 31 14:05:04 2012 +0100

    Modernize spec file

 perl-Gtk2-Ex-Utils.spec |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/perl-Gtk2-Ex-Utils.spec b/perl-Gtk2-Ex-Utils.spec
index 71e5e65..1ac5bd3 100644
--- a/perl-Gtk2-Ex-Utils.spec
+++ b/perl-Gtk2-Ex-Utils.spec
@@ -1,20 +1,27 @@
 Name:           perl-Gtk2-Ex-Utils
 Version:        0.09
-Release:        11%{?dist}
-Summary:        Extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl
+Release:        12%{?dist}
+Summary:        Extra Gtk2 Utilities for working with GNOME2/GTK2 in Perl
 License:        LGPLv2+
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Gtk2-Ex-Utils/
 Source0:        http://www.cpan.org/authors/id/K/KC/KCK/Gtk2-Ex-Utils-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(Gtk2) >= 1.04
-
+# Tests
+BuildRequires:  perl(Test)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Gtk2) >= 1.04
+
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Gtk2\\)$
 
 %description
-This module provides simple utility functions useful for Gnome2/Gtk2 Perl
+This module provides simple utility functions useful for GNOME2/GTK2 Perl
 programming.
 
 %prep
@@ -25,28 +32,23 @@ programming.
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make pure_install PERL_INSTALL_ROOT=%{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 COPYRIGHT README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jan 31 2012 Petr Pisar <ppisar at redhat.com> - 0.09-12
+- Modernize spec file
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.09-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list