yajl-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Name: yajl
  2. Summary: Yet Another JSON Library (YAJL)
  3. Version: 2.1.0
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: ISC
  9. URL: http://lloyd.github.com/yajl/
  10. #
  11. # NB, upstream does not provide pre-built tar.gz downloads. Instead
  12. # they make you use the 'on the fly' generated tar.gz from GITHub's
  13. # web interface
  14. #
  15. # The Source0 for any version is obtained by a URL
  16. #
  17. # https://github.com/lloyd/yajl/releases/tag/2.1.0
  18. #
  19. Source0: %{name}-%{version}.tar.gz
  20. Patch1: %{name}-%{version}-pkgconfig-location.patch
  21. Patch2: %{name}-%{version}-pkgconfig-includedir.patch
  22. Patch3: %{name}-%{version}-test-location.patch
  23. Patch4: %{name}-%{version}-dynlink-binaries.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildRequires: cmake
  26. %description
  27. Yet Another JSON Library. YAJL is a small event-driven
  28. (SAX-style) JSON parser written in ANSI C, and a small
  29. validating JSON generator.
  30. %package devel
  31. Summary: Libraries, includes, etc to develop with YAJL
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. %description devel
  35. Yet Another JSON Library. YAJL is a small event-driven
  36. (SAX-style) JSON parser written in ANSI C, and a small
  37. validating JSON generator.
  38. This sub-package provides the libraries and includes
  39. necessary for developing against the YAJL library
  40. %prep
  41. %setup -q
  42. %patch1 -p1
  43. %patch2 -p1
  44. %patch3 -p1
  45. %patch4 -p1
  46. %build
  47. # NB, we are not using upstream's 'configure'/'make'
  48. # wrapper, instead we use cmake directly to better
  49. # align with Fedora standards
  50. mkdir build
  51. cd build
  52. %cmake ..
  53. make VERBOSE=1 %{?_smp_mflags}
  54. %install
  55. rm -rf %{buildroot}
  56. cd build
  57. make install DESTDIR=%{buildroot}
  58. # No static libraries
  59. rm -f %{buildroot}%{_libdir}/libyajl_s.a
  60. %check
  61. cd test
  62. (cd parsing && ./run_tests.sh)
  63. (cd api && ./run_tests.sh)
  64. %clean
  65. rm -rf %{buildroot}
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root,-)
  70. %license COPYING
  71. %doc ChangeLog README TODO
  72. %{_bindir}/json_reformat
  73. %{_bindir}/json_verify
  74. %{_libdir}/libyajl.so.2
  75. %{_libdir}/libyajl.so.2.*
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %dir %{_includedir}/yajl
  79. %{_includedir}/yajl/yajl_common.h
  80. %{_includedir}/yajl/yajl_gen.h
  81. %{_includedir}/yajl/yajl_parse.h
  82. %{_includedir}/yajl/yajl_tree.h
  83. %{_includedir}/yajl/yajl_version.h
  84. %{_libdir}/libyajl.so
  85. %{_libdir}/pkgconfig/yajl.pc
  86. %changelog
  87. * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1
  88. - new upstream release.
  89. * Tue Oct 29 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1
  90. - updated to 2.0.4 release
  91. - Patch1 and Patch2 imported from Fedora
  92. - fix License tag: s/BSD/ISC/
  93. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-2
  94. - rebuild
  95. * Sun Nov 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.1-1
  96. - updated to 2.0.1
  97. * Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.12-2
  98. - Initial build for Vine Linux
  99. * Tue May 3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1
  100. - Update to 1.0.12 release
  101. * Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1
  102. - Update to 1.0.11 release
  103. * Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3
  104. - Fix ignoring of cflags (rhbz #547500)
  105. * Tue Dec 8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2
  106. - Change use of 'define' to 'global'
  107. * Mon Dec 7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1
  108. - Initial Fedora package