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

Petr Pisar ppisar at fedoraproject.org
Tue Jan 31 13:28:52 UTC 2012


commit 44e5ee4f24f9a579d430fa0b0df5263367ef16c7
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Jan 31 14:28:41 2012 +0100

    Modernize spec file

 perl-Gtk2-Ex-Dialogs.spec |   38 ++++++++++++++++++++++++--------------
 1 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/perl-Gtk2-Ex-Dialogs.spec b/perl-Gtk2-Ex-Dialogs.spec
index 6cd4eea..ceba32a 100644
--- a/perl-Gtk2-Ex-Dialogs.spec
+++ b/perl-Gtk2-Ex-Dialogs.spec
@@ -1,22 +1,37 @@
 Name:           perl-Gtk2-Ex-Dialogs
 Version:        0.11
-Release:        11%{?dist}
-Summary:        Useful tools for Gnome2/Gtk2 Perl GUI design
+Release:        12%{?dist}
+Summary:        Useful tools for GNOME2/GTK2 Perl GUI design
 License:        LGPLv2+
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Gtk2-Ex-Dialogs/
 Source0:        http://www.cpan.org/authors/id/K/KC/KCK/Gtk2-Ex-Dialogs-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(File::Basename)
 BuildRequires:  perl(File::Type) >= 0.22
+BuildRequires:  perl(Glib)
 BuildRequires:  perl(Gtk2) >= 1.04
+BuildRequires:  perl(Gtk2::Ex::Constants)
 BuildRequires:  perl(Gtk2::Ex::Utils) >= 0.08
+# Tests
+BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(File::Type) >= 0.22
+Requires:       perl(Gtk2) >= 1.04
+Requires:       perl(Gtk2::Ex::Utils) >= 0.08
+
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Type|Gtk2::Ex::Utils\\)$
 
 %description
-This module provides a clean, simple, quick api to generate and use common
-Gtk2 dialogs, either from within a full-blown Gtk2 app or as a one-off deal
-inside a non-Gtk2 perl application.
+This module provides a clean, simple, quick API to generate and use common
+Gtk2 dialogs, either from within a full-blown Gtk2 application or as a one-off
+deal inside a non-Gtk2 perl application.
 
 %prep
 %setup -q -n Gtk2-Ex-Dialogs-%{version}
@@ -26,28 +41,23 @@ inside a non-Gtk2 perl application.
 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 TODO examples/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jan 31 2012 Petr Pisar <ppisar at redhat.com> - 0.11-12
+- Modernize spec file
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.11-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 



More information about the perl-devel mailing list