|
|
e8c21f |
Name: libmaxminddb
|
|
|
e8c21f |
Summary: C library for the MaxMind DB file format
|
|
|
e8c21f |
Version: 1.2.0
|
|
|
e8c21f |
Release: 7%{?dist}
|
|
|
e8c21f |
URL: https://maxmind.github.io/libmaxminddb
|
|
|
e8c21f |
Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
e8c21f |
|
|
|
e8c21f |
# original libmaxminddb code is Apache Licence 2.0
|
|
|
e8c21f |
# src/maxminddb-compat-util.h is BSD
|
|
|
e8c21f |
License: ASL 2.0 and BSD
|
|
|
e8c21f |
|
|
|
e8c21f |
BuildRequires: perl-interpreter
|
|
|
e8c21f |
Recommends: geolite2-city, geolite2-country
|
|
|
e8c21f |
|
|
|
e8c21f |
%description
|
|
|
e8c21f |
The package contains libmaxminddb library.
|
|
|
e8c21f |
|
|
|
e8c21f |
%package devel
|
|
|
e8c21f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
e8c21f |
Requires: pkgconfig
|
|
|
e8c21f |
Summary: Development header files for libmaxminddb
|
|
|
e8c21f |
|
|
|
e8c21f |
%description devel
|
|
|
e8c21f |
The package contains development header files for the libmaxminddb library
|
|
|
e8c21f |
and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
|
|
|
e8c21f |
|
|
|
e8c21f |
%prep
|
|
|
e8c21f |
%setup -q
|
|
|
e8c21f |
|
|
|
e8c21f |
%build
|
|
|
e8c21f |
%configure --disable-static
|
|
|
e8c21f |
# remove embeded RPATH
|
|
|
e8c21f |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
e8c21f |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
e8c21f |
# link only requried libraries
|
|
|
e8c21f |
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
e8c21f |
make %{?_smp_mflags}
|
|
|
e8c21f |
|
|
|
e8c21f |
%check
|
|
|
e8c21f |
# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
e8c21f |
LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
|
|
|
e8c21f |
|
|
|
e8c21f |
%install
|
|
|
e8c21f |
%make_install
|
|
|
e8c21f |
rm -fv %{buildroot}%{_libdir}/*.la
|
|
|
e8c21f |
|
|
|
e8c21f |
#fix multilib install of devel pkg
|
|
|
e8c21f |
mv %{buildroot}%{_includedir}/maxminddb_config.h \
|
|
|
e8c21f |
%{buildroot}%{_includedir}/maxminddb_config-%{__isa_bits}.h
|
|
|
e8c21f |
cat > %{buildroot}%{_includedir}/maxminddb_config.h << EOF
|
|
|
e8c21f |
#include <bits/wordsize.h>
|
|
|
e8c21f |
|
|
|
e8c21f |
#if __WORDSIZE == 32
|
|
|
e8c21f |
#include <maxminddb_config-32.h>
|
|
|
e8c21f |
#elif __WORDSIZE == 64
|
|
|
e8c21f |
#include <maxminddb_config-64.h>
|
|
|
e8c21f |
#else
|
|
|
e8c21f |
#error "Unknown word size"
|
|
|
e8c21f |
#endif
|
|
|
e8c21f |
EOF
|
|
|
e8c21f |
|
|
|
e8c21f |
|
|
|
e8c21f |
%post -p /sbin/ldconfig
|
|
|
e8c21f |
|
|
|
e8c21f |
%postun -p /sbin/ldconfig
|
|
|
e8c21f |
|
|
|
e8c21f |
%files
|
|
|
e8c21f |
%license LICENSE
|
|
|
e8c21f |
%{_libdir}/libmaxminddb.so.*
|
|
|
e8c21f |
|
|
|
e8c21f |
%files devel
|
|
|
e8c21f |
%license NOTICE
|
|
|
e8c21f |
%doc Changes.md
|
|
|
e8c21f |
%{_bindir}/mmdblookup
|
|
|
e8c21f |
%{_includedir}/maxminddb.h
|
|
|
e8c21f |
%{_includedir}/maxminddb_config*.h
|
|
|
e8c21f |
%{_libdir}/libmaxminddb.so
|
|
|
e8c21f |
%{_libdir}/pkgconfig/libmaxminddb.pc
|
|
|
e8c21f |
%{_mandir}/man1/*
|
|
|
e8c21f |
%{_mandir}/man3/*
|
|
|
e8c21f |
|
|
|
e8c21f |
%changelog
|
|
|
e8c21f |
* Thu Jan 09 2020 Michal Ruprich <mruprich@redhat.com> - 1.2.0-7
|
|
|
e8c21f |
- Resolves: #1788956 - conflicts with multilib install
|
|
|
e8c21f |
|
|
|
e8c21f |
* Thu Aug 02 2018 Michal Ruprich <mruprich@redhat.com> - 1.2.0-6
|
|
|
e8c21f |
- Adding libmaxminddb as a new package to RHEL-8 (rhbz#1607927)
|
|
|
e8c21f |
- Adding Recommends tag for geolite2 databases
|
|
|
e8c21f |
|
|
|
e8c21f |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
e8c21f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e8c21f |
|
|
|
e8c21f |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
|
|
e8c21f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
e8c21f |
|
|
|
e8c21f |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
|
e8c21f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e8c21f |
|
|
|
e8c21f |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
e8c21f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e8c21f |
|
|
|
e8c21f |
* Sun Mar 27 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.2.0-1
|
|
|
e8c21f |
- rebase to new version
|
|
|
e8c21f |
|
|
|
e8c21f |
* Mon Mar 21 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.5-1
|
|
|
e8c21f |
- rebase to new version
|
|
|
e8c21f |
|
|
|
e8c21f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
|
|
|
e8c21f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e8c21f |
|
|
|
e8c21f |
* Tue Sep 15 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-5
|
|
|
e8c21f |
- add pkg-config file from the upcoming upstream version
|
|
|
e8c21f |
|
|
|
e8c21f |
* Mon Sep 14 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-4
|
|
|
e8c21f |
- remove utils subpackage and place mmdblookup into devel subpackage
|
|
|
e8c21f |
- remove Group from the spec file
|
|
|
e8c21f |
- move NOTICE and Changes.md to devel subpackage
|
|
|
e8c21f |
|
|
|
e8c21f |
* Thu Sep 03 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-3
|
|
|
e8c21f |
- updated package licence
|
|
|
e8c21f |
- added --as-needed linker flag
|
|
|
e8c21f |
|
|
|
e8c21f |
* Tue Sep 01 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-1
|
|
|
e8c21f |
- initial version of the package
|