packages: perl-Net-IPv6Addr/perl-Net-IPv6Addr.spec (NEW) - initial
amateja
amateja at pld-linux.org
Fri Aug 28 09:55:47 CEST 2009
Author: amateja Date: Fri Aug 28 07:55:47 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-Net-IPv6Addr:
perl-Net-IPv6Addr.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Net-IPv6Addr/perl-Net-IPv6Addr.spec
diff -u /dev/null packages/perl-Net-IPv6Addr/perl-Net-IPv6Addr.spec:1.1
--- /dev/null Fri Aug 28 09:55:47 2009
+++ packages/perl-Net-IPv6Addr/perl-Net-IPv6Addr.spec Fri Aug 28 09:55:41 2009
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Net
+%define pnam IPv6Addr
+Summary: Net::IPv6Addr - check validity of IPv6 addresses
+Summary(pl.UTF-8): Net::IPv6Addr - sprawdza poprawność adresów IPv6
+Name: perl-Net-IPv6Addr
+Version: 0.2
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: cd06f0422ddb3ac119e2ef1e27aa9339
+URL: http://search.cpan.org/dist/Net-IPv6Addr/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Math::Base85)
+BuildRequires: perl(Net::IPv4Addr)
+%endif
+Suggests: perl-Math-Base85
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Net::IPv6Addr checks strings for valid IPv6 addresses, as specified in
+RFC1884. You throw possible addresses at it, it either accepts them or
+throws an exception.
+
+If Math::Base85 is installed, then this module is able to process
+addresses formatted in the style referenced by RFC1924.
+
+%description -l pl.UTF-8
+Net::IPv6Addr sprawdza ciągi znaków czy są
+poprawnym adresem IPv6 tak jak zdefiniowano to w RFC1884.
+
+We współpracy z modułem Math::Base85 moduł ten umożliwia przetworzenie
+adresów zgodnych z formatem zdefiniowanym w RFC1924.
+
+%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 README
+%{perl_vendorlib}/Net/*.pm
+%{_mandir}/man3/*
+
+%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 2009/08/28 07:55:41 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list