From ed112965d6c06e9f60fb226861b17d210759b744 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <[email protected]>
Date: Sun, 28 Feb 2016 00:14:55 +0100
Subject: Modernize spec file
---
perl-XML-Bare.spec | 38 ++++++++++++++++++++++----------------
1 file changed, 22 insertions(+), 16 deletions(-)
diff --git a/perl-XML-Bare.spec b/perl-XML-Bare.spec
index 89b409f..89c004c 100644
--- a/perl-XML-Bare.spec
+++ b/perl-XML-Bare.spec
@@ -1,20 +1,23 @@
-%global pkgname XML-Bare
-
Name: perl-XML-Bare
Version: 0.53
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Minimal XML parser implemented via a C state engine
License: GPLv2+ or Artistic
URL: http://search.cpan.org/dist/XML-Bare/
-Source0:
http://www.cpan.org/authors/id/C/CO/CODECHILD/%{pkgname}-%{version}.tar.gz
+Source0:
http://www.cpan.org/authors/id/C/CO/CODECHILD/XML-Bare-%{version}.tar.gz
BuildRequires: perl(Carp)
+BuildRequires: perl(Config)
BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(File::Temp)
-BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
+BuildRequires: perl(bytes)
+BuildRequires: perl(strict)
+BuildRequires: perl(utf8)
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
%description
@@ -25,19 +28,16 @@ converted to a Perl hash by a Perl function that makes
basic calls back to
the C to go through the nodes sequentially.
%prep
-%setup -qn %{pkgname}-%{version}
+%setup -qn XML-Bare-%{version}
+chmod 644 Bare.pm
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
-%{_fixperms} %{buildroot}/*
-find %{buildroot} -name 'Bare.pm' -exec sed '1d' {} ';'
-find %{buildroot} -name 'Bare.pm' -exec chmod 644 {} ';'
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
@@ -46,9 +46,15 @@ make test
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/XML*
-%{_mandir}/man3/*
+%{_mandir}/man3/XML*
%changelog
+* Sat Feb 27 2016 Emmanuel Seyman <[email protected]> - 0.53-9
+- Clean up spec file
+- Refresh the BuildRequires
+- Pass NO_PACKLIST to Makefile.PL
+- Tighten file listing
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
0.53-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-XML-Bare.git/commit/?h=master&id=ed112965d6c06e9f60fb226861b17d210759b744
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]