[perl-Regexp-IPv6/f13/master] Import.

corsepiu corsepiu at fedoraproject.org
Thu Jan 6 10:12:59 UTC 2011


commit caed253c7dfbf60fe6d376163911cb96287a9f8d
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Thu Jan 6 11:11:35 2011 +0100

    Import.

 perl-Regexp-IPv6.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/perl-Regexp-IPv6.spec b/perl-Regexp-IPv6.spec
new file mode 100644
index 0000000..e371dc0
--- /dev/null
+++ b/perl-Regexp-IPv6.spec
@@ -0,0 +1,51 @@
+Name:           perl-Regexp-IPv6
+Version:        0.03
+Release:        1%{?dist}
+Summary:        Regular expression for IPv6 addresses
+License:        GPLv2+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Regexp-IPv6/
+Source0:        http://www.cpan.org/authors/id/S/SA/SALVA/Regexp-IPv6-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module exports the $IPv6_re regular expression that matches any valid
+IPv6 address as described in "RFC 2373 - 2.2 Text Representation of
+Addresses" but ::. Any string not compliant with such RFC will be rejected.
+
+%prep
+%setup -q -n Regexp-IPv6-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Dec 21 2010 Ralf Corsépius <corsepiu at fedoraproject.org> 0.03-1
+- Initial Fedora package.


More information about the scm-commits mailing list