[12121] | 1 | Name: libmaxminddb |
---|
| 2 | Summary: C library for the MaxMind DB file format |
---|
| 3 | Version: 1.3.2 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | URL: https://maxmind.github.io/libmaxminddb |
---|
| 6 | Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz |
---|
| 7 | |
---|
| 8 | # original libmaxminddb code is Apache Licence 2.0 |
---|
| 9 | # src/maxminddb-compat-util.h is BSD |
---|
| 10 | License: ASL 2.0 and BSD |
---|
| 11 | |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: tomop |
---|
| 15 | |
---|
| 16 | BuildRequires: gcc |
---|
| 17 | BuildRequires: perl |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | The package contains libmaxminddb library. |
---|
| 21 | |
---|
| 22 | %package devel |
---|
| 23 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 24 | Requires: pkgconfig |
---|
| 25 | Summary: Development header files for libmaxminddb |
---|
| 26 | |
---|
| 27 | %description devel |
---|
| 28 | The package contains development header files for the libmaxminddb library |
---|
| 29 | and the mmdblookup utility which allows IP address lookup in a MaxMind DB file. |
---|
| 30 | |
---|
| 31 | %prep |
---|
| 32 | %setup -q |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | %configure --disable-static |
---|
| 36 | # remove embeded RPATH |
---|
| 37 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 38 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 39 | # link only requried libraries |
---|
| 40 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
| 41 | make %{?_smp_mflags} |
---|
| 42 | |
---|
| 43 | %check |
---|
| 44 | # tests are linked dynamically, preload the library as we have removed RPATH |
---|
| 45 | LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | %make_install |
---|
| 49 | rm -fv %{buildroot}%{_libdir}/*.la |
---|
| 50 | |
---|
| 51 | %post |
---|
| 52 | /sbin/ldconfig |
---|
| 53 | |
---|
| 54 | %postun |
---|
| 55 | /sbin/ldconfig |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %files |
---|
| 59 | %license LICENSE |
---|
| 60 | %{_libdir}/libmaxminddb.so.* |
---|
| 61 | |
---|
| 62 | %files devel |
---|
| 63 | %license NOTICE |
---|
| 64 | %doc Changes.md |
---|
| 65 | %{_bindir}/mmdblookup |
---|
| 66 | %{_includedir}/maxminddb.h |
---|
| 67 | %{_includedir}/maxminddb_config.h |
---|
| 68 | %{_libdir}/libmaxminddb.so |
---|
| 69 | %{_libdir}/pkgconfig/libmaxminddb.pc |
---|
| 70 | %{_mandir}/man1/* |
---|
| 71 | %{_mandir}/man3/* |
---|
| 72 | |
---|
| 73 | %changelog |
---|
| 74 | * Sat Aug 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.2-1 |
---|
| 75 | - new upstream release. |
---|
| 76 | - initial build for Vine Linux. |
---|
| 77 | |
---|
| 78 | * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8 |
---|
| 79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
---|
| 80 | |
---|
| 81 | * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7 |
---|
| 82 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 83 | |
---|
| 84 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-6 |
---|
| 85 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 86 | |
---|
| 87 | * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5 |
---|
| 88 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 89 | |
---|
| 90 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4 |
---|
| 91 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
| 92 | |
---|
| 93 | * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3 |
---|
| 94 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 95 | |
---|
| 96 | * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2 |
---|
| 97 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 98 | |
---|
| 99 | * Sun Mar 27 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.2.0-1 |
---|
| 100 | - rebase to new version |
---|
| 101 | |
---|
| 102 | * Mon Mar 21 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.5-1 |
---|
| 103 | - rebase to new version |
---|
| 104 | |
---|
| 105 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6 |
---|
| 106 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 107 | |
---|
| 108 | * Tue Sep 15 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-5 |
---|
| 109 | - add pkg-config file from the upcoming upstream version |
---|
| 110 | |
---|
| 111 | * Mon Sep 14 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-4 |
---|
| 112 | - remove utils subpackage and place mmdblookup into devel subpackage |
---|
| 113 | - remove Group from the spec file |
---|
| 114 | - move NOTICE and Changes.md to devel subpackage |
---|
| 115 | |
---|
| 116 | * Thu Sep 03 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-3 |
---|
| 117 | - updated package licence |
---|
| 118 | - added --as-needed linker flag |
---|
| 119 | |
---|
| 120 | * Tue Sep 01 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-1 |
---|
| 121 | - initial version of the package |
---|