From d45b1272a635aeb34065aac6d0b8c003589aa861 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <[email protected]>
Date: Sun, 28 Feb 2016 00:27:58 +0100
Subject: Modernize spec file
---
perl-XML-Tiny.spec | 35 ++++++++++++++++++++++-------------
1 file changed, 22 insertions(+), 13 deletions(-)
diff --git a/perl-XML-Tiny.spec b/perl-XML-Tiny.spec
index 6cd62b2..f7dedd8 100644
--- a/perl-XML-Tiny.spec
+++ b/perl-XML-Tiny.spec
@@ -1,40 +1,49 @@
-%global pkgname XML-Tiny
-
Name: perl-XML-Tiny
Version: 2.06
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Simple lightweight parser for a subset of XML
License: GPLv2+ or Artistic
URL: http://search.cpan.org/dist/XML-Tiny/
-Source0:
http://www.cpan.org/authors/id/D/DC/DCANTRELL/%{pkgname}-%{version}.tar.gz
+Source0:
http://www.cpan.org/authors/id/D/DC/DCANTRELL/XML-Tiny-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(FileHandle)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
%description
It is a simple lightweight parser for a subset of XML.
%prep
-%setup -qn %{pkgname}-%{version}
+%setup -q -n XML-Tiny-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-%{_fixperms} %{buildroot}/*
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
-%doc ARTISTIC.txt CHANGES GPL2.txt README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc CHANGES README
+%license ARTISTIC.txt GPL2.txt
+%{perl_vendorlib}/XML*
+%{_mandir}/man3/XML*
%changelog
+* Sat Feb 27 2016 Emmanuel Seyman <[email protected]> - 2.06-9
+- Clean up spec file
+- Use %%license tag
+- Tighten file listing
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
2.06-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-XML-Tiny.git/commit/?h=master&id=d45b1272a635aeb34065aac6d0b8c003589aa861
--
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]