SPECS: perl-Net-IPv4Addr.spec (NEW) - new
glen
glen at pld-linux.org
Sun Dec 17 23:14:39 CET 2006
Author: glen Date: Sun Dec 17 22:14:39 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Net-IPv4Addr.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Net-IPv4Addr.spec
diff -u /dev/null SPECS/perl-Net-IPv4Addr.spec:1.1
--- /dev/null Sun Dec 17 23:14:39 2006
+++ SPECS/perl-Net-IPv4Addr.spec Sun Dec 17 23:14:34 2006
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Net
+%define pnam IPv4Addr
+Summary: Net::IPv4Addr - Perl extension for manipulating IPv4 addresses
+Name: perl-Net-IPv4Addr
+Version: 0.10
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/F/FR/FRAJULAC/Net-IPv4Addr-%{version}.tar.gz
+# Source0-md5: 57aa8e28ebcd4c0c9f15792740e53d3c
+URL: http://search.cpan.org/dist/Net-IPv4Addr/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Net::IPv4Addr provides functions for parsing IPv4 addresses both in
+traditional address/netmask format and in the new CIDR format. There
+are also methods for calculating the network and broadcast address and
+also to see check if a given address is in a specific network.
+
+%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 ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/ipv4calc
+%{_mandir}/man1/ipv4calc.1p*
+%{_mandir}/man3/Net::IPv4Addr.3pm*
+%{perl_vendorlib}/Net/IPv4Addr.pm
+%dir %{perl_vendorlib}/auto/Net/IPv4Addr
+%{perl_vendorlib}/auto/Net/IPv4Addr/autosplit.ix
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/12/17 22:14:34 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list