libmaxminddb-vl.spec 4.0 KB

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