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