commit dfa266198669c1b8ba8665aab48715d66adaabdb Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Thu Jan 6 10:46:37 2011 +0100 Import. .gitignore | 1 + perl-Regexp-IPv6.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 53 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..1299870 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Regexp-IPv6-0.03.tar.gz 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@xxxxxxxxxxxxxxxxx> 0.03-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..7f65fa5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +892abe3f43eb0cc76283767f99a335e6 Regexp-IPv6-0.03.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel