libfastjson-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Name: libfastjson
  2. Summary: A JSON implementation in C
  3. Version: 0.99.9
  4. Release: 1%{?_dist_release}
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: MIT
  9. URL: https://github.com/rsyslog/libfastjson
  10. Source0: https://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz
  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: programming
  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. %debug_package
  26. %prep
  27. %setup -q
  28. for doc in ChangeLog; do
  29. iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
  30. touch -r $doc $doc.new &&
  31. mv $doc.new $doc
  32. done
  33. %build
  34. autoreconf -iv
  35. export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream
  36. %configure --enable-shared --disable-static
  37. %install
  38. make V=1 DESTDIR=%{buildroot} install
  39. find %{buildroot} -name '*.la' -delete -print
  40. %check
  41. make V=1 check
  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. * Thu Mar 25 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.9-1
  53. - new upstream release.
  54. * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.8-4
  55. - rebuilt with current environment.
  56. * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.8-3
  57. - initisl build for Vine Linux.
  58. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.8-2
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  60. * Thu Jan 11 2018 Jiri Vymazal <jvymazal@redhat.com> - 0.99.8-1
  61. - rebase to v0.99.8
  62. * Mon Oct 23 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.7-1
  63. - rebase to v0.99.7
  64. * Tue Aug 15 2017 Marek Tamaskovic <mtamasko@redhat.com> - 0.99.6-1
  65. - rebase to v0.99.6
  66. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  68. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  70. * Mon May 22 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.5-1
  71. - added autoreconf
  72. - rebase to v0.99.5
  73. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-2
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  75. * Tue Sep 27 2016 Radovan Sroka <rsroka@redhat.com> - 0.99.4-1
  76. - Package created