diff --git a/Regexp-IPv6-0.03.tar.gz b/Regexp-IPv6-0.03.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d764a43b509c8d1ea01cb1ca6bdf5c7e1d8371b3 Binary files /dev/null and b/Regexp-IPv6-0.03.tar.gz differ diff --git a/perl-Regexp-IPv6.spec b/perl-Regexp-IPv6.spec new file mode 100644 index 0000000000000000000000000000000000000000..8b546cd13b1a632be3e387ff6ca39fcc35fe81ff --- /dev/null +++ b/perl-Regexp-IPv6.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Regexp-IPv6 +Version: 0.03 +Release: 1 +Summary: Regular expression for IPv6 addresses +License: GPL-1.0-only or Artistic-1.0-Perl +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 +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +%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. +%package help +Summary : Regular expression for IPv6 addresses +Provides: perl-Regexp-IPv6-doc +%description help +Regular expression for IPv6 addresses +%prep +%setup -q -n Regexp-IPv6-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +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/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.03-1 +- Specfile autogenerated by Perl_Bot