[packages/perl-Net-IPAddress] - initial
paszczus
paszczus at pld-linux.org
Fri Oct 11 19:37:19 CEST 2013
commit e4e56e43134c9e87e5f52dbdd36f9fd8a4e42cc9
Author: Sławomir Paszkiewicz <paszczus at pld-linux.org>
Date: Fri Oct 11 19:36:43 2013 +0200
- initial
perl-Net-IPAddress.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/perl-Net-IPAddress.spec b/perl-Net-IPAddress.spec
new file mode 100644
index 0000000..fff7314
--- /dev/null
+++ b/perl-Net-IPAddress.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Net
+%define pnam IPAddress
+%include /usr/lib/rpm/macros.perl
+Summary: Net::IPAddress - Functions used to manipulate IP addresses, masks and FQDN's
+Name: perl-Net-IPAddress
+Version: 1.10
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://search.cpan.org/CPAN/authors/id/S/SA/SARENNER/Net-IPAddress-%{version}.tar.gz
+# Source0-md5: 512117d3f6bcc027bd11f70d71f6f844
+# generic URL, check or change before uncommenting
+#URL: http://search.cpan.org/dist/Net-IPAddress/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Net::IPAddr is a collection of helpful functions used to convert IP
+addresses to/from 32-bit integers, applying subnet masks to IP
+addresses, validating IP address strings, and splitting a FQDN into
+its host and domain parts.
+
+No rocket science here, but I have found these functions to very, very
+handy. For example, have you ever tried to sort a list of IP addresses
+only to find out that they don't sort the way you expected? Here is
+the solution! If you convert the IP addresses to 32-bit integer
+addresses, they will sort in correct order.
+
+%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} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Net/IPAddress.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-IPAddress.git/commitdiff/e4e56e43134c9e87e5f52dbdd36f9fd8a4e42cc9
More information about the pld-cvs-commit
mailing list