Compare commits

...

No commits in common. 'c10-beta' and 'c9' have entirely different histories.
c10-beta ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/libmaxminddb-1.9.1.tar.gz SOURCES/libmaxminddb-1.5.2.tar.gz

@ -1 +1 @@
7ecd1180fb45e6acc2e3d8c9b53dea699cb43608 SOURCES/libmaxminddb-1.9.1.tar.gz 9e00fef11ceb8df1dc56ce3276bf2193c5baa5c8 SOURCES/libmaxminddb-1.5.2.tar.gz

@ -1,9 +0,0 @@
#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

@ -1,124 +1,90 @@
Summary: C library for reading MaxMind DB files
Name: libmaxminddb Name: libmaxminddb
Version: 1.9.1 Summary: C library for the MaxMind DB file format
Version: 1.5.2
Release: 3%{?dist} Release: 3%{?dist}
# BSD-3-Clause (src/maxminddb-compat-util.h) and Apache-2.0 (the rest) URL: https://maxmind.github.io/libmaxminddb
License: Apache-2.0 AND BSD-3-Clause Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
URL: https://maxmind.github.io/libmaxminddb/
Source0: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz # original libmaxminddb code is Apache Licence 2.0
Source1: maxminddb_config.h # src/maxminddb-compat-util.h is BSD
License: ASL 2.0 and BSD
BuildRequires: gcc
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool
BuildRequires: gcc
BuildRequires: make
# Testsuite in %%check
BuildRequires: gcc-c++
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin) BuildRequires: perl(FindBin)
BuildRequires: perl(IPC::Run3) BuildRequires: make
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Output)
%description %description
The libmaxminddb library provides a C library for reading MaxMind DB The package contains libmaxminddb library.
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.
%package devel %package devel
Summary: Development files for %{name} Summary: Development header files for libmaxminddb
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for The package contains development header files for the libmaxminddb library
developing applications that use %{name}. and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
%prep %prep
%setup -q %autosetup
autoreconf --force --install sed -i -e '/AM_CFLAGS=/d' common.mk
sed -i -e '/CFLAGS=/d' configure.ac
%build %build
autoreconf -vfi
%configure --disable-static %configure --disable-static
%make_build %make_build
%check
# tests are linked dynamically, preload the library as we have removed RPATH
LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
%install %install
%make_install %make_install
rm -v %{buildroot}%{_libdir}/*.la
# Don't install any libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la #downstream fix for multilib install of devel pkg
mv %{buildroot}%{_includedir}/maxminddb_config.h \
# Avoid file conflicts in multilib installations of -devel subpackage %{buildroot}%{_includedir}/maxminddb_config-%{__isa_bits}.h
mv -f $RPM_BUILD_ROOT%{_includedir}/maxminddb_config{,-%{__isa_bits}}.h cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/maxminddb_config.h #include <bits/wordsize.h>
%check #if __WORDSIZE == 32
# Tests are linked dynamically, preload the library as RPATH is removed #include <maxminddb_config-32.h>
LD_PRELOAD=$RPM_BUILD_ROOT%{_libdir}/%{name}.so make check #elif __WORDSIZE == 64
#include <maxminddb_config-64.h>
#else
#error "Unknown word size"
#endif
EOF
%files %files
%license LICENSE %license LICENSE
%doc Changes.md README.md %{_libdir}/libmaxminddb.so.0*
%{_bindir}/mmdblookup %{_bindir}/mmdblookup
%{_libdir}/%{name}.so.0* %{_mandir}/man1/*.1*
%{_mandir}/man1/mmdblookup.1*
%files devel %files devel
%{_libdir}/%{name}.so %license NOTICE
%{_libdir}/pkgconfig/%{name}.pc %doc Changes.md
%{_includedir}/maxminddb.h %{_includedir}/maxminddb.h
%{_includedir}/maxminddb_config.h %{_includedir}/maxminddb_config*.h
%{_includedir}/maxminddb_config-%{__isa_bits}.h %{_libdir}/libmaxminddb.so
%{_mandir}/man3/%{name}.3* %{_libdir}/pkgconfig/libmaxminddb.pc
%{_mandir}/man3/MMDB_*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.9.1-3 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-3
- Bump release for June 2024 mass rebuild - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* 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
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - 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 - Update to 1.5.2
* Tue Jan 26 2021 Michal Ruprich <mruprich@redhat.com> - 1.5.0-1 * Tue Jan 26 2021 Michal Ruprich <mruprich@redhat.com> - 1.5.0-1

Loading…
Cancel
Save