ppisar pushed to perl-Socket-Netlink (f23). "Modernize spec"
From 767d7c3f479d7c25de10eab19cee1cfaee2598e0 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Tue, 2 Feb 2016 21:37:51 +0100 Subject: Modernize spec --- perl-Socket-Netlink.spec | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/perl-Socket-Netlink.spec b/perl-Socket-Netlink.spec index 0e4dcfb..66f12e8 100644 --- a/perl-Socket-Netlink.spec +++ b/perl-Socket-Netlink.spec @@ -1,11 +1,9 @@ Name: perl-Socket-Netlink Version:0.04 -Release:14%{?dist} +Release:15%{?dist} Summary:Interface to Linux's PF_NETLINK socket family - License:GPL+ or Artistic -Group: Development/Libraries URL:http://search.cpan.org/dist/Socket-Netlink/ Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Socket-Netlink-%{version}.tar.gz @@ -46,15 +44,12 @@ IO::Socket::Netlink. %build -%{__perl} Build.PL installdirs=vendor optimize="%{optflags}" +%{__perl} Build.PL installdirs=vendor ./Build %install ./Build install destdir=%{buildroot} create_packlist=0 -find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} %{buildroot}/* @@ -63,8 +58,8 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %files -%defattr(-,root,root,-) -%doc Changes LICENSE README +%doc Changes README +%license LICENSE %{perl_vendorarch}/auto/* %{perl_vendorarch}/Socket* %{perl_vendorarch}/IO* @@ -72,6 +67,10 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %changelog +* Tue Feb 02 2016 Emmanuel Seyman - 0.04-15 +- Modernize spec +- Use %%license macro + * Thu Jun 18 2015 Fedora Release Engineering - 0.04-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Socket-Netlink.git/commit/?h=f23&id=767d7c3f479d7c25de10eab19cee1cfaee2598e0 ___ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
ppisar pushed to perl-Socket-Netlink (f23). "Modernize spec file (..more)"
From 802200a61449a3caa47149c4893cb80efd04a140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 9 Nov 2016 13:47:00 +0100 Subject: Modernize spec file Update dependency list, remove empty BS files. --- perl-Socket-Netlink.spec | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/perl-Socket-Netlink.spec b/perl-Socket-Netlink.spec index 0a9aa8f..462e196 100644 --- a/perl-Socket-Netlink.spec +++ b/perl-Socket-Netlink.spec @@ -11,18 +11,32 @@ Patch0: Socket-Netlink-0.04-Fix-nlmsgerr-length-check.patch # Fix tests for big endian, CPAN RT#71112 Patch1: Socket-Netlink-0.04-Fix-tests-for-big-endian.patch +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: perl BuildRequires: perl-devel BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CChecker) -BuildRequires: perl(ExtUtils::H2PM) >= 0.03 +BuildRequires: perl(ExtUtils::H2PM) >= 0.07 BuildRequires: perl(Module::Build) -BuildRequires: perl(Module::Build::Compat) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(overload) +BuildRequires: perl(Socket) +BuildRequires: perl(XSLoader) +# Optional run-time: BuildRequires: perl(Sub::Name) +# Tests: BuildRequires: perl(Test::HexString) BuildRequires: perl(Test::More) - Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Optional run-time: Requires: perl(Sub::Name) ## Filter unneeded Provides with RPM 4.8 @@ -58,6 +72,7 @@ IO::Socket::Netlink. %install ./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Socket-Netlink.git/commit/?h=f23&id=802200a61449a3caa47149c4893cb80efd04a140 ___ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org