diff --git a/IP-Geolocation-MMDB-1.013.tar.gz b/IP-Geolocation-MMDB-1.013.tar.gz new file mode 100644 index 0000000..d7d5ef7 --- /dev/null +++ b/IP-Geolocation-MMDB-1.013.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abd348b09c7106177bff4c9acf8b6a1b39cb07fdf4af4051b4c8228d87cbd2e6 +size 21961 diff --git a/perl-IP-Geolocation-MMDB.spec b/perl-IP-Geolocation-MMDB.spec index 485f970..65e31df 100644 --- a/perl-IP-Geolocation-MMDB.spec +++ b/perl-IP-Geolocation-MMDB.spec @@ -1,54 +1,104 @@ -%define name perl-IP-Geolocation-MMDB -%define version 1.0 -%define release 1 -Summary: This is what perl-IP-Geolocation-MMDB does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Name: perl-IP-Geolocation-MMDB +Version: 1.013 +Release: 1%{?dist} +Summary: Read MaxMind DB files +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/dist/IP-Geolocation-MMDB +Source: https://cpan.metacpan.org/authors/id/V/VO/VOEGELAS/IP-Geolocation-MMDB-%{version}.tar.gz +# Build: +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.16 +# We use pkgconf instead +#BuildRequires: perl(Alien::libmaxminddb) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: pkgconfig(libmaxminddb) >= 1.2.0 +# Runtime: +BuildRequires: perl(Math::BigInt) >= 1.999806 +BuildRequires: perl(XSLoader) +BuildRequires: perl(utf8) +# Tests: +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Test::More) +Suggests: geolite2-asn +Suggests: geolite2-city +Suggests: geolite2-country + +%{?perl_default_filter} %description -A Perl module that reads MaxMind DB files and maps IP addresses to location information such as country and city names. - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +A Perl module that reads MaxMind DB files and maps IP addresses to location +information such as country and city names. %prep - -%setup -q +%autosetup -n IP-Geolocation-MMDB-%{version} %build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +%{make_install} +%{_fixperms} %{buildroot}/* -%clean -cd .. -rm -rf %{name}-%{version} +%check +make test -%pre +%files +%license LICENSE +%doc Changes CONTRIBUTING.md README.md +%dir %{perl_vendorarch}/auto/IP +%dir %{perl_vendorarch}/auto/IP/Geolocation +%dir %{perl_vendorarch}/auto/IP/Geolocation/MMDB +%{perl_vendorarch}/auto/IP/Geolocation/MMDB/MMDB.so +%dir %{perl_vendorarch}/IP +%dir %{perl_vendorarch}/IP/Geolocation +%{perl_vendorarch}/IP/Geolocation/MMDB.pm +%dir %{perl_vendorarch}/IP/Geolocation/MMDB +%{perl_vendorarch}/IP/Geolocation/MMDB/Metadata.pm +%{_mandir}/man3/IP::Geolocation::MMDB.3* +%{_mandir}/man3/IP::Geolocation::MMDB::Metadata.3* -%preun +%changelog +* Tue Mar 18 2025 John Crisp - 1.013-1-sme +- Build 1.013 for Koozali SME Server v11 -%post +* Thu Feb 20 2025 Andreas Vögele - 1.012-2 +- Depend on pkgconfig(libmaxminddb) instead of libmaxminddb-devel -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Thu Feb 20 2025 Andreas Vögele - 1.012-1 +- Update to 1.012 +- Depend on libmaxminddb-devel and pkgconf instead of perl(Alien::libmaxminddb) + +* Sun Jan 26 2025 Andreas Vögele - 1.011-1 +- Update to 1.011 + +* Sat Jan 18 2025 Fedora Release Engineering - 1.010-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 19 2024 Fedora Release Engineering - 1.010-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jun 11 2024 Jitka Plesnikova - 1.010-6 +- Perl 5.40 rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.010-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.010-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.010-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 1.010-2 +- Perl 5.38 rebuild + +* Fri Jun 30 2023 Andreas Vögele - 1.010-1 +- Initial package