libmaxminddb-vl.spec 3.8 KB

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