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