|
|
@ -1,42 +1,47 @@
|
|
|
|
Name: libmaxminddb
|
|
|
|
Name: libmaxminddb
|
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
|
Version: 1.5.2
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 10%{?dist}.1
|
|
|
|
URL: https://maxmind.github.io/libmaxminddb
|
|
|
|
URL: https://maxmind.github.io/libmaxminddb
|
|
|
|
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# original libmaxminddb code is Apache Licence 2.0
|
|
|
|
# original libmaxminddb code is Apache Licence 2.0
|
|
|
|
# src/maxminddb-compat-util.h is BSD
|
|
|
|
# src/maxminddb-compat-util.h is BSD
|
|
|
|
License: ASL 2.0 and BSD
|
|
|
|
License: ASL 2.0 and BSD
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
Recommends: geolite2-city, geolite2-country
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
Patch0000: 0000-CVE-2020-28241.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The package contains libmaxminddb library.
|
|
|
|
The package contains libmaxminddb library.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
#the only binary in -devel subpackage has been moved to the main package
|
|
|
|
|
|
|
|
#this means that the -devel-debuginfo pkg is missing and it would interrupt update path
|
|
|
|
|
|
|
|
Obsoletes: libmaxminddb-devel-debuginfo < 1.2.0-8
|
|
|
|
Summary: Development header files for libmaxminddb
|
|
|
|
Summary: Development header files for libmaxminddb
|
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The package contains development header files for the libmaxminddb library
|
|
|
|
The package contains development header files for the libmaxminddb library
|
|
|
|
and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
|
|
|
|
and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
%setup -q
|
|
|
|
sed -i -e '/AM_CFLAGS=/d' common.mk
|
|
|
|
|
|
|
|
sed -i -e '/CFLAGS=/d' configure.ac
|
|
|
|
%patch0000 -p1 -b .cve-2020-28241
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf -vfi
|
|
|
|
|
|
|
|
%configure --disable-static
|
|
|
|
%configure --disable-static
|
|
|
|
%make_build
|
|
|
|
# remove embeded RPATH
|
|
|
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
|
|
|
# link only requried libraries
|
|
|
|
|
|
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
|
# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
@ -44,9 +49,9 @@ LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
rm -v %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -fv %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
#downstream fix for multilib install of devel pkg
|
|
|
|
#fix multilib install of devel pkg
|
|
|
|
mv %{buildroot}%{_includedir}/maxminddb_config.h \
|
|
|
|
mv %{buildroot}%{_includedir}/maxminddb_config.h \
|
|
|
|
%{buildroot}%{_includedir}/maxminddb_config-%{__isa_bits}.h
|
|
|
|
%{buildroot}%{_includedir}/maxminddb_config-%{__isa_bits}.h
|
|
|
|
cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
|
|
|
|
cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
|
|
|
@ -61,11 +66,16 @@ cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libmaxminddb.so.0*
|
|
|
|
%{_libdir}/libmaxminddb.so.*
|
|
|
|
%{_bindir}/mmdblookup
|
|
|
|
%{_bindir}/mmdblookup
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man1/mmdblookup.1.gz
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license NOTICE
|
|
|
|
%license NOTICE
|
|
|
@ -74,53 +84,30 @@ EOF
|
|
|
|
%{_includedir}/maxminddb_config*.h
|
|
|
|
%{_includedir}/maxminddb_config*.h
|
|
|
|
%{_libdir}/libmaxminddb.so
|
|
|
|
%{_libdir}/libmaxminddb.so
|
|
|
|
%{_libdir}/pkgconfig/libmaxminddb.pc
|
|
|
|
%{_libdir}/pkgconfig/libmaxminddb.pc
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-3
|
|
|
|
* Thu Jan 04 2024 Michal Ruprich <mruprich@redhat.com> - 1.2.0-10.1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Resolves: RHEL-20594 - improper initialization in dump_entry_data_list() in maxminddb.c
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
- Update to 1.5.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 10 2020 Michal Ruprich <mruprich@redhat.com> - 1.4.3-1
|
|
|
|
|
|
|
|
- Update to 1.4.3
|
|
|
|
|
|
|
|
- Resolves: #1758843 - libmaxminddb-devel i686 can't be installed in parallel to x86_64
|
|
|
|
|
|
|
|
- Fix for CVE-2020-28241
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 02 2020 Michal Ruprich <michalruprich@gmail.com> - 1.4.2-2
|
|
|
|
|
|
|
|
- Move manpage for mmdblookup from -devel to the main package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 12 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.4.2-1
|
|
|
|
|
|
|
|
- Update to 1.4.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 30 2020 Michal Ruprich <mruprich@redhat.com> - 1.3.2-3
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.2.0-10
|
|
|
|
- Move mmdblookup binary from -devel to the main package
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
|
|
|
* Mon Jun 08 2020 Michal Ruprich <michalruprich@gmail.com> - 1.2.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
- Related: #1642001 - Obsoleting -devel-debuginfo to enable clean update path
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.2-1
|
|
|
|
* Mon May 25 2020 Michal Ruprich <michalruprich@gmail.com> - 1.2.0-9
|
|
|
|
- Update to 1.3.2
|
|
|
|
- Related: #1642001 - moving manpage of mmdblookup from -devel subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8
|
|
|
|
* Fri May 15 2020 Michal Ruprich <michalruprich@gmail.com> - 1.2.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Resolves: #1642001 - binary mmdblookup is in libmaxminddb-devel
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
|
|
|
|
* Thu Jan 09 2020 Michal Ruprich <mruprich@redhat.com> - 1.2.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Resolves: #1788956 - conflicts with multilib install
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-6
|
|
|
|
* Thu Aug 02 2018 Michal Ruprich <mruprich@redhat.com> - 1.2.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Adding libmaxminddb as a new package to RHEL-8 (rhbz#1607927)
|
|
|
|
|
|
|
|
- Adding Recommends tag for geolite2 databases
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|