[packages/perl-IO-Socket-IP] - initial
arekm
arekm at pld-linux.org
Wed Feb 12 22:09:43 CET 2014
commit 2020e6f6330b0ab3cda09be0c6fbb38ecd865b4f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Feb 12 22:09:30 2014 +0100
- initial
perl-IO-Socket-IP.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
---
diff --git a/perl-IO-Socket-IP.spec b/perl-IO-Socket-IP.spec
new file mode 100644
index 0000000..76bca14
--- /dev/null
+++ b/perl-IO-Socket-IP.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_with tests # perform "make test" - needs network connection
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir IO
+%define pnam Socket-IP
+Summary: IO::Socket::IP - Family-neutral IP socket supporting both IPv4 and IPv6
+Name: perl-IO-Socket-IP
+Version: 0.28
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: af171292d769374c0a3fe7f7bc0b757c
+URL: http://search.cpan.org/dist/IO-Socket-IP/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a protocol-independent way to use IPv4 and IPv6
+sockets, intended as a replacement for IO::Socket::INET. Most
+constructor arguments and methods are provided in a
+backward-compatible way.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/IO/Socket/IP.pm
+%{_mandir}/man3/IO::Socket::IP*.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-IO-Socket-IP.git/commitdiff/2020e6f6330b0ab3cda09be0c6fbb38ecd865b4f
More information about the pld-cvs-commit
mailing list