|
|
|
@ -1,124 +1,90 @@
|
|
|
|
|
Summary: C library for reading MaxMind DB files
|
|
|
|
|
Name: libmaxminddb
|
|
|
|
|
Version: 1.9.1
|
|
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
|
|
Version: 1.5.2
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
# BSD-3-Clause (src/maxminddb-compat-util.h) and Apache-2.0 (the rest)
|
|
|
|
|
License: Apache-2.0 AND BSD-3-Clause
|
|
|
|
|
URL: https://maxmind.github.io/libmaxminddb/
|
|
|
|
|
Source0: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: maxminddb_config.h
|
|
|
|
|
URL: https://maxmind.github.io/libmaxminddb
|
|
|
|
|
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# original libmaxminddb code is Apache Licence 2.0
|
|
|
|
|
# src/maxminddb-compat-util.h is BSD
|
|
|
|
|
License: ASL 2.0 and BSD
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
# Testsuite in %%check
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(IPC::Run3)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
BuildRequires: perl(Test::Output)
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
|
|
|
|
files, including the GeoIP2 databases from MaxMind. This is a custom
|
|
|
|
|
binary format designed to facilitate fast lookups of IP addresses
|
|
|
|
|
while allowing for great flexibility in the type of data associated
|
|
|
|
|
with an address.
|
|
|
|
|
|
|
|
|
|
The MaxMind DB format is an open file format. The specification is
|
|
|
|
|
available at https://maxmind.github.io/MaxMind-DB/ and licensed under
|
|
|
|
|
the Creative Commons Attribution-ShareAlike 3.0 Unported License.
|
|
|
|
|
The package contains libmaxminddb library.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Summary: Development header files for libmaxminddb
|
|
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
The package contains development header files for the libmaxminddb library
|
|
|
|
|
and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
autoreconf --force --install
|
|
|
|
|
%autosetup
|
|
|
|
|
sed -i -e '/AM_CFLAGS=/d' common.mk
|
|
|
|
|
sed -i -e '/CFLAGS=/d' configure.ac
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -vfi
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
|
|
LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
# Don't install any libtool .la files
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
|
|
|
|
|
|
|
|
|
|
# Avoid file conflicts in multilib installations of -devel subpackage
|
|
|
|
|
mv -f $RPM_BUILD_ROOT%{_includedir}/maxminddb_config{,-%{__isa_bits}}.h
|
|
|
|
|
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/maxminddb_config.h
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Tests are linked dynamically, preload the library as RPATH is removed
|
|
|
|
|
LD_PRELOAD=$RPM_BUILD_ROOT%{_libdir}/%{name}.so make check
|
|
|
|
|
rm -v %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
#downstream fix for multilib install of devel pkg
|
|
|
|
|
mv %{buildroot}%{_includedir}/maxminddb_config.h \
|
|
|
|
|
%{buildroot}%{_includedir}/maxminddb_config-%{__isa_bits}.h
|
|
|
|
|
cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
|
|
|
|
|
#include <bits/wordsize.h>
|
|
|
|
|
|
|
|
|
|
#if __WORDSIZE == 32
|
|
|
|
|
#include <maxminddb_config-32.h>
|
|
|
|
|
#elif __WORDSIZE == 64
|
|
|
|
|
#include <maxminddb_config-64.h>
|
|
|
|
|
#else
|
|
|
|
|
#error "Unknown word size"
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes.md README.md
|
|
|
|
|
%{_libdir}/libmaxminddb.so.0*
|
|
|
|
|
%{_bindir}/mmdblookup
|
|
|
|
|
%{_libdir}/%{name}.so.0*
|
|
|
|
|
%{_mandir}/man1/mmdblookup.1*
|
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%license NOTICE
|
|
|
|
|
%doc Changes.md
|
|
|
|
|
%{_includedir}/maxminddb.h
|
|
|
|
|
%{_includedir}/maxminddb_config.h
|
|
|
|
|
%{_includedir}/maxminddb_config-%{__isa_bits}.h
|
|
|
|
|
%{_mandir}/man3/%{name}.3*
|
|
|
|
|
%{_mandir}/man3/MMDB_*.3*
|
|
|
|
|
%{_includedir}/maxminddb_config*.h
|
|
|
|
|
%{_libdir}/libmaxminddb.so
|
|
|
|
|
%{_libdir}/pkgconfig/libmaxminddb.pc
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.9.1-3
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Robert Scheck <robert@fedoraproject.org> 1.9.1-1
|
|
|
|
|
- Upgrade to 1.9.1 (#2257602)
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Robert Scheck <robert@fedoraproject.org> 1.8.0-1
|
|
|
|
|
- Upgrade to 1.8.0 (#2248696)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Oct 02 2022 Robert Scheck <robert@fedoraproject.org> 1.7.1-1
|
|
|
|
|
- Upgrade to 1.7.1 (#2131161 #c1)
|
|
|
|
|
|
|
|
|
|
* Sat Oct 01 2022 Robert Scheck <robert@fedoraproject.org> 1.7.0-1
|
|
|
|
|
- Upgrade to 1.7.0 (#2131161)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 1.6.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> 1.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 28 2021 Igor Raits <ignatenkobrain@fedoraproject.org> 1.6.0-1
|
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Mon Mar 15 2021 Michal Ruprich <mruprich@redhat.com> - 1.5.2-1
|
|
|
|
|
* Tue Mar 16 2021 Michal Ruprich <mruprich@redhat.com> - 1.5.2-1
|
|
|
|
|
- Update to 1.5.2
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Michal Ruprich <mruprich@redhat.com> - 1.5.0-1
|
|
|
|
|