[perl-Socket-Netlink-Route] Initial packaging of perl-Socket-Netlink-Route.
Mathieu Bridon
bochecha at fedoraproject.org
Wed Sep 21 03:45:52 UTC 2011
commit e26563902fa091a1c9d4c77dc4841e18137093cf
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Fri Sep 16 13:39:15 2011 +0800
Initial packaging of perl-Socket-Netlink-Route.
This package was submitted for review in Fedora on Fri Sep 16 2011:
https://bugzilla.redhat.com/show_bug.cgi?id=738931#c0
perl-Socket-Netlink-Route.spec | 71 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/perl-Socket-Netlink-Route.spec b/perl-Socket-Netlink-Route.spec
new file mode 100644
index 0000000..e7546e7
--- /dev/null
+++ b/perl-Socket-Netlink-Route.spec
@@ -0,0 +1,71 @@
+Name: perl-Socket-Netlink-Route
+Version: 0.03
+Release: 1%{?dist}
+Summary: Interface to Linux's NETLINK_ROUTE netlink socket protocol
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Socket-Netlink-Route/
+Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Socket-Netlink-Route-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: perl(ExtUtils::H2PM) >= 0.07
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(Socket::Netlink) >= 0.03
+BuildRequires: perl(Test::More)
+
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(Socket::Netlink) >= 0.03
+
+## Filter unneeded Provides with RPM 4.8
+%{?filter_setup:
+%filter_from_provides /perl(Socket::Netlink::Route)/d
+}
+%{?perl_default_filter}
+## Filter unneeded Provides with RPM 4.9
+%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(Socket::Netlink::Route\\)$
+
+# 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::Route_const) == %{version}
+
+
+%description
+This module contains the low-level constants and structure handling
+functions required to use the NETLINK_ROUTE protocol of Linux's PF_NETLINK
+socket family. It is suggested to use the high-level object interface to
+this protocol instead; see IO::Socket::Netlink::Route.
+
+
+%prep
+%setup -q -n Socket-Netlink-Route-%{version}
+
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+./Build test
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes examples LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Mon Sep 12 2011 Mathieu Bridon <bochecha at fedoraproject.org> 0.03-1
+- Specfile autogenerated by cpanspec 1.78.
+- 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