* 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:
parent
34730c8e46
commit
a5cabf8544
BIN
IP-Geolocation-MMDB-1.013.tar.gz
(Stored with Git LFS)
Normal file
BIN
IP-Geolocation-MMDB-1.013.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,54 +1,104 @@
|
|||||||
%define name perl-IP-Geolocation-MMDB
|
Name: perl-IP-Geolocation-MMDB
|
||||||
%define version 1.0
|
Version: 1.013
|
||||||
%define release 1
|
Release: 1%{?dist}
|
||||||
Summary: This is what perl-IP-Geolocation-MMDB does.
|
Summary: Read MaxMind DB files
|
||||||
Name: %{name}
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||||
Version: %{version}
|
URL: https://metacpan.org/dist/IP-Geolocation-MMDB
|
||||||
Release: %{release}%{?dist}
|
Source: https://cpan.metacpan.org/authors/id/V/VO/VOEGELAS/IP-Geolocation-MMDB-%{version}.tar.gz
|
||||||
Source: %{name}-%{version}.tar.gz
|
# Build:
|
||||||
License: GNU GPL version 2
|
BuildRequires: coreutils
|
||||||
Group: SMEserver/addon
|
BuildRequires: gcc
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRequires: make
|
||||||
Prefix: %{_prefix}
|
BuildRequires: perl-devel
|
||||||
BuildArchitectures: noarch
|
BuildRequires: perl-generators
|
||||||
BuildRequires: smeserver-devtools
|
BuildRequires: perl-interpreter
|
||||||
Requires: smeserver-release >= 11.0
|
BuildRequires: perl(:VERSION) >= 5.16
|
||||||
AutoReqProv: no
|
# 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
|
%description
|
||||||
A Perl module that reads MaxMind DB files and maps IP addresses to location information such as country and city names.
|
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]
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%autosetup -n IP-Geolocation-MMDB-%{version}
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{make_install}
|
||||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
%{_fixperms} %{buildroot}/*
|
||||||
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)' \
|
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
cd ..
|
make test
|
||||||
rm -rf %{name}-%{version}
|
|
||||||
|
|
||||||
%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
|
* Thu Feb 20 2025 Andreas Vögele <andreas@andreasvoegele.com> - 1.012-1
|
||||||
#uninstall
|
- Update to 1.012
|
||||||
%files -f %{name}-%{version}-filelist
|
- Depend on libmaxminddb-devel and pkgconf instead of perl(Alien::libmaxminddb)
|
||||||
%defattr(-,root,root)
|
|
||||||
|
* 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user