From 83f101ff8e0c323e44d3486b25150cc5cfa1e7ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Mon, 20 Mar 2017 13:39:49 +0100
Subject: Modernize spec file

---
 perl-ZMQ-Constants.spec | 42 ++++++++++++++++++++++++------------------
 1 file changed, 24 insertions(+), 18 deletions(-)

diff --git a/perl-ZMQ-Constants.spec b/perl-ZMQ-Constants.spec
index c709a3d..be1765f 100644
--- a/perl-ZMQ-Constants.spec
+++ b/perl-ZMQ-Constants.spec
@@ -1,54 +1,60 @@
 Name:           perl-ZMQ-Constants
 Version:        1.04
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Constants for the libzmq library
-
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/ZMQ-Constants/
 Source0:        
http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/ZMQ-Constants-%{version}.tar.gz
-
 BuildArch:      noarch
-
+BuildRequires:  coreutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl-generators
-BuildRequires:  perl(Cwd)
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
+BuildRequires:  perl(inc::Module::Install)
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+BuildRequires:  perl(strict)
+BuildRequires:  sed
+# Run-time:
+BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(Storable)
-
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+# Tests:
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 libzmq is a fast-changing beast and constants get renamed, new one gets
-removed, etc...
-
+removed, etc.
 
 %prep
 %setup -q -n ZMQ-Constants-%{version}
+# Remove bundled module
+rm -rf ./inc
+sed -i -e '/^inc\//d' MANIFEST
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-
 %files
 %doc Changes
 %{perl_vendorlib}/ZMQ/
 %{_mandir}/man3/*.3*
 
-
 %changelog
+* Mon Mar 20 2017 Petr Pisar <ppi...@redhat.com> - 1.04-9
+- Modernize spec file
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.04-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-ZMQ-Constants.git/commit/?h=master&id=83f101ff8e0c323e44d3486b25150cc5cfa1e7ff
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to