From 39b93c163ba19e88ac2a876a5b4e610a506f5a73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Wed, 2 Mar 2016 15:16:52 +0100
Subject: Package cleanup

---
 perl-Text-CHM.spec | 42 ++++++++++++++----------------------------
 1 file changed, 14 insertions(+), 28 deletions(-)

diff --git a/perl-Text-CHM.spec b/perl-Text-CHM.spec
index 94d4616..4aa2012 100644
--- a/perl-Text-CHM.spec
+++ b/perl-Text-CHM.spec
@@ -1,29 +1,25 @@
 Name:           perl-Text-CHM
 Version:        0.01
-Release:        24%{?dist}
+Release:        25%{?dist}
 Summary:        Perl extension for handling MS Compiled HtmlHelp Files
-
-Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Text-CHM
 Source0:        
http://www.cpan.org/modules/by-module/Text/Text-CHM-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+# Build
 BuildRequires:  chmlib-devel
-BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-devel
-BuildRequires:  perl(ExtUtils::MakeMaker)
-# Run-time:
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
 BuildRequires:  perl(XSLoader)
-# Tests:
+# Tests
 BuildRequires:  perl(Test)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 Text::CHM is a module that implements a (partial) support for handling MS 
@@ -35,38 +31,28 @@ of each file and close them; at the moment, no write 
support is available.
 %prep
 %setup -q -n Text-CHM-%{version}
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" 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 -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc README Changes
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Text/
-%{_mandir}/man3/Text::CHM.3*
-
+%{_mandir}/man3/*
 
 %changelog
+* Wed Mar 02 2016 Petr Ĺ abata <con...@redhat.com> - 0.01-25
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.01-24
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Text-CHM.git/commit/?h=master&id=39b93c163ba19e88ac2a876a5b4e610a506f5a73
--
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