diff --git a/Geo-IPfree-1.151940.tar.gz b/Geo-IPfree-1.151940.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b4cbeb3c7a5676a7721f133784386c56c165d3e Binary files /dev/null and b/Geo-IPfree-1.151940.tar.gz differ diff --git a/perl-Geo-IPfree.spec b/perl-Geo-IPfree.spec new file mode 100644 index 0000000000000000000000000000000000000000..832aaf1182cf1095bf7dc01e8c056fe9bd151351 --- /dev/null +++ b/perl-Geo-IPfree.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Geo-IPfree +Version: 1.151940 +Release: 1 +Summary: Look up the country of an IPv4 address +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Geo-IPfree/ +Source0: http://www.cpan.org/authors/id/B/BR/BRICAS/Geo-IPfree-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.47 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +Geo::IPfree is a Perl module that determines the originating country of an +arbitrary IPv4 address. It uses a local file-based database to provide +basic geolocation services. +%package help +Summary : Look up the country of an IPv4 address +Provides: perl-Geo-IPfree-doc +%description help +Geo::IPfree is a Perl module that determines the originating country of an +arbitrary IPv4 address. It uses a local file-based database to provide +basic geolocation services. +%prep +%setup -q -n Geo-IPfree-%{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 META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 23 2021 Perl_Bot 1.151940-1 +- Specfile autogenerated by Perl_Bot