[perl-Socket-Netlink] Initial packaging of perl-Socket-Netlink.

Mathieu Bridon bochecha at fedoraproject.org
Wed Sep 21 03:12:38 UTC 2011


commit 9808f8132aed3d865c6b96941a955b6725ead4c9
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Thu Sep 15 18:01:37 2011 +0800

    Initial packaging of perl-Socket-Netlink.
    
    This package was submitted for review in Fedora on Thu Sep 15 2011:
        https://bugzilla.redhat.com/show_bug.cgi?id=738589#c0

 perl-Socket-Netlink.spec |   77 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/perl-Socket-Netlink.spec b/perl-Socket-Netlink.spec
new file mode 100644
index 0000000..8ba5c27
--- /dev/null
+++ b/perl-Socket-Netlink.spec
@@ -0,0 +1,77 @@
+Name:           perl-Socket-Netlink
+Version:        0.03
+Release:        1%{?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
+
+BuildRequires:  perl(ExtUtils::CBuilder)
+BuildRequires:  perl(ExtUtils::CChecker)
+BuildRequires:  perl(ExtUtils::H2PM) >= 0.03
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Module::Build::Compat)
+BuildRequires:  perl(Sub::Name)
+BuildRequires:  perl(Test::HexString)
+BuildRequires:  perl(Test::More)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Sub::Name)
+
+## Filter unneeded Provides with RPM 4.8
+%{?filter_setup:
+%filter_from_provides /perl(Socket::Netlink::Generic)/d
+}
+%{?perl_default_filter}
+## Filter unneeded Provides with RPM 4.9
+%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(Socket::Netlink::Generic\\)$
+
+# For some reason rpmbuild picks this one up as a 'Requires', but not as
+# a 'Provides'. Adding it manually or the package fails to install
+Provides:       perl(Socket::Netlink::Generic_const) == %{version}
+
+
+%description
+This module contains the low-level constants and structure handling
+functions required to use Linux's PF_NETLINK socket family. It is suggested
+to use the high-level object interface to this instead; see
+IO::Socket::Netlink.
+
+
+%prep
+%setup -q -n Socket-Netlink-%{version}
+
+
+%build
+%{__perl} Build.PL installdirs=vendor optimize="%{optimize}"
+./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}/*
+
+
+%check
+./Build test
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Socket*
+%{perl_vendorarch}/IO*
+%{_mandir}/man3/*
+
+
+%changelog
+* Mon Sep 12 2011 Mathieu Bridon <bochecha at fedoraproject.org> 0.03-1
+- Specfile autogenerated by cpanspec 1.78.
+- Slightly tweaked the specfile (removed buildroot lines, added missing BR)
+- Added explicit Provides that rpmbuild doesn't pick up for some reason.
+- Filtered out a dubious Provides.



More information about the perl-devel mailing list