From 360f1294e1684d21d393e489f76312189b9dd2b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Tue, 9 Feb 2016 18:02:32 +0100
Subject: Package cleanup

---
 perl-Kwiki-Archive-Rcs.spec | 47 ++++++++++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 20 deletions(-)

diff --git a/perl-Kwiki-Archive-Rcs.spec b/perl-Kwiki-Archive-Rcs.spec
index 152efc3..a6311b5 100644
--- a/perl-Kwiki-Archive-Rcs.spec
+++ b/perl-Kwiki-Archive-Rcs.spec
@@ -1,20 +1,34 @@
 Name:           perl-Kwiki-Archive-Rcs
 Version:        0.16
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Kwiki Page Archival Using RCS
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Kwiki-Archive-Rcs/
 Source0:        
http://www.cpan.org/authors/id/D/DR/DROLSKY/Kwiki-Archive-Rcs-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(IO::All)
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(ExtUtils::MM_Unix)
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(strict)
+# Runtime
+BuildRequires:  perl(Date::Manip)
+BuildRequires:  perl(Kwiki::Archive)
+# Tests only
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Kwiki) >= 0.38
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 Requires:       perl(Kwiki) >= 0.38
 Requires:       rcs
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %description
 Kwiki Page Archival Using RCS.
@@ -23,32 +37,25 @@ Kwiki Page Archival Using RCS.
 %setup -q -n Kwiki-Archive-Rcs-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Feb 09 2016 Petr Ĺ abata <con...@redhat.com> - 0.16-17
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.16-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Kwiki-Archive-Rcs.git/commit/?h=master&id=360f1294e1684d21d393e489f76312189b9dd2b3
--
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