From 2847c481fcfc7e73f64cc3f02a351f9f895674e5 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Thu, 18 Feb 2016 16:24:23 +0100
Subject: Package cleanup

---
 perl-Gtk2-Ex-Simple-List.spec | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/perl-Gtk2-Ex-Simple-List.spec b/perl-Gtk2-Ex-Simple-List.spec
index b44c361..324b76d 100644
--- a/perl-Gtk2-Ex-Simple-List.spec
+++ b/perl-Gtk2-Ex-Simple-List.spec
@@ -1,19 +1,26 @@
 Name:           perl-Gtk2-Ex-Simple-List
 Version:        0.50
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        Simple interface to Gtk2's complex MVC list widget
 License:        LGPLv2+
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Gtk2-Ex-Simple-List/
 Source0:        
http://www.cpan.org/authors/id/R/RM/RMCFARLA/Gtk2-Perl-Ex/Gtk2-Ex-Simple-List-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Glib::MakeHelper)
 BuildRequires:  perl(Gtk2)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time
+BuildRequires:  perl(Carp)
+# Tests
+BuildRequires:  perl(Gtk2::TestHelper)
 BuildRequires:  perl(Test::More)
 
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Gtk2 has a powerful, but complex MVC (Model, View, Controller) system used
@@ -25,32 +32,25 @@ list of lists structure.
 %setup -q -n Gtk2-Ex-Simple-List-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 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 \;
-
+make pure_install DESTDIR=%{buildroot}
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc examples/ 
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Feb 18 2016 Jitka Plesnikova <jples...@redhat.com> - 0.50-24
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.50-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Gtk2-Ex-Simple-List.git/commit/?h=master&id=2847c481fcfc7e73f64cc3f02a351f9f895674e5
--
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