libfastjson-vl.spec 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Name: libfastjson
  2. Version: 0.99.8
  3. Release: 4%{?_dist_release}
  4. Summary: A JSON implementation in C
  5. Vendor: Project Vine
  6. Distribution: Vine Linux
  7. License: MIT
  8. URL: https://github.com/rsyslog/libfastjson
  9. Source0: https://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz
  10. BuildRequires: autoconf automake libtool
  11. %description
  12. LIBFASTJSON implements a reference counting object
  13. model that allows you to easily construct JSON
  14. objects in C, output them as JSON formatted strings
  15. and parse JSON formatted strings back into the
  16. C representation of JSON objects.
  17. %package devel
  18. Summary: Development files for libfastjson
  19. Group: Development/Libraries
  20. Requires: %{name}%{?_isa} = %{version}-%{release}
  21. %description devel
  22. This package contains libraries and header files for
  23. developing applications that use libfastjson.
  24. %prep
  25. %setup -q
  26. for doc in ChangeLog; do
  27. iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
  28. touch -r $doc $doc.new &&
  29. mv $doc.new $doc
  30. done
  31. %build
  32. autoreconf -iv
  33. export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream
  34. %configure --enable-shared --disable-static
  35. %install
  36. make V=1 DESTDIR=%{buildroot} install
  37. find %{buildroot} -name '*.la' -delete -print
  38. %check
  39. make V=1 check
  40. %post -p /sbin/ldconfig
  41. %postun -p /sbin/ldconfig
  42. %files
  43. %{!?_licensedir:%global license %%doc}
  44. %license COPYING
  45. %doc AUTHORS ChangeLog README.html
  46. %{_libdir}/libfastjson.so.*
  47. %files devel
  48. %{_includedir}/libfastjson
  49. %{_libdir}/libfastjson.so
  50. %{_libdir}/pkgconfig/libfastjson.pc
  51. %changelog
  52. * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.8-4
  53. - rebuilt with current environment.
  54. * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.8-3
  55. - initisl build for Vine Linux.
  56. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.8-2
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  58. * Thu Jan 11 2018 Jiri Vymazal <jvymazal@redhat.com> - 0.99.8-1
  59. - rebase to v0.99.8
  60. * Mon Oct 23 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.7-1
  61. - rebase to v0.99.7
  62. * Tue Aug 15 2017 Marek Tamaskovic <mtamasko@redhat.com> - 0.99.6-1
  63. - rebase to v0.99.6
  64. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  66. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  68. * Mon May 22 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.5-1
  69. - added autoreconf
  70. - rebase to v0.99.5
  71. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-2
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  73. * Tue Sep 27 2016 Radovan Sroka <rsroka@redhat.com> - 0.99.4-1
  74. - Package created