From 13935682df1029109d633d1666307d68e6bae5c5 Mon Sep 17 00:00:00 2001
From: Sandro Mani <[email protected]>
Date: Fri, 12 Aug 2016 11:29:11 +0200
Subject: Modernize spec, add missing BRs
---
perl-Parse-DebControl.spec | 35 +++++++++++++++++++++++------------
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/perl-Parse-DebControl.spec b/perl-Parse-DebControl.spec
index f55516d..d7d120d 100644
--- a/perl-Parse-DebControl.spec
+++ b/perl-Parse-DebControl.spec
@@ -1,6 +1,6 @@
Name: perl-Parse-DebControl
Version: 2.005
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Easy OO parsing of debian control-like files
License: GPL+ or Artistic
@@ -8,46 +8,57 @@ URL: http://search.cpan.org/dist/Parse-DebControl/
Source0:
http://search.cpan.org/CPAN/authors/id/J/JA/JAYBONCI/Parse-DebControl-%{version}.tar.gz
BuildArch: noarch
+
+BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
+BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl-Test-Simple
-# Run-time:
-BuildRequires: perl(strict)
BuildRequires: perl(IO::Scalar)
-BuildRequires: perl(Compress::Zlib)
+BuildRequires: perl(lib)
+BuildRequires: perl(LWP::Simple)
BuildRequires: perl(LWP::UserAgent)
+BuildRequires: perl(strict)
+BuildRequires: perl(Test::More)
+# Missing in Fedora
+# BuildRequires: perl(Tie:IxHash)
+BuildRequires: perl(vars)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
%description
Easy OO parsing of debian control-like files .
+
%prep
-%setup -q -n Parse-DebControl-%{version}
+%autosetup -n Parse-DebControl-%{version}
+
%build
perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+%make_build
+
%install
make pure_install DESTDIR=%{buildroot}
-# Remove empty directory tree
-rm -rf %{buildroot}%{_libdir}
+find %{buildroot} -type f -name .packlist -delete
-# Remove .packlist files
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%check
make test
+
%files
%doc CHANGES
%{perl_vendorlib}/Parse/
-%{_mandir}/man3/*.3*
+%{_mandir}/man3/Parse::DebControl*.*
%changelog
+* Fri Aug 12 2016 Sandro Mani <[email protected]> - 2.005-9
+- Modernize spec
+- Add missing BRs
+
* Mon May 16 2016 Jitka Plesnikova <[email protected]> - 2.005-8
- Perl 5.24 rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Parse-DebControl.git/commit/?h=master&id=13935682df1029109d633d1666307d68e6bae5c5
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]