* Tue Mar 18 2025 John Crisp <jcrisp@safeandsoundit.co.uk> - 1.013-1-sme

- Build 1.013 for Koozali SME Server v11
This commit is contained in:
Jean-Philippe Pialasse 2025-03-18 23:20:18 -04:00
parent 34730c8e46
commit a5cabf8544
2 changed files with 94 additions and 41 deletions

BIN
IP-Geolocation-MMDB-1.013.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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 <brianr@koozali.org> 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 <dir> 'attr(755,user,grp)' \
#--file <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 <jcrisp@safeandsoundit.co.uk> - 1.013-1-sme
- Build 1.013 for Koozali SME Server v11
%post
* Thu Feb 20 2025 Andreas Vögele <andreas@andreasvoegele.com> - 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 <andreas@andreasvoegele.com> - 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 <andreas@andreasvoegele.com> - 1.011-1
- Update to 1.011
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jun 11 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.010-6
- Perl 5.40 rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.010-2
- Perl 5.38 rebuild
* Fri Jun 30 2023 Andreas Vögele <andreas@andreasvoegele.com> - 1.010-1
- Initial package