libfastjson-vl.spec 2.7 KB

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