jansson-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Name: jansson
  2. Version: 2.7
  3. Release: 2%{?_dist_release}
  4. Summary: C library for encoding, decoding and manipulating JSON data
  5. Summary(ja): JSONデータをエンコード・デコード・操作するためのライブラリ
  6. Group: System Environment/Libraries
  7. License: MIT
  8. URL: http://www.digip.org/jansson/
  9. Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: python-sphinx
  12. Patch1000: CVE-2016-4425.patch
  13. %description
  14. Small library for parsing and writing JSON documents.
  15. %package devel
  16. Summary: Header files for jansson
  17. Summary(ja): Header files for jansson
  18. Group: Development/Libraries
  19. Requires: %{name} = %{version}-%{release}
  20. Requires: pkgconfig
  21. %description devel
  22. Header files for developing applications making use of jansson.
  23. %prep
  24. %setup -q
  25. %patch1000 -p1 -b .CVE-2016-4425
  26. %build
  27. %configure --disable-static
  28. make %{?_smp_mflags}
  29. make html
  30. %check
  31. make check
  32. %install
  33. rm -rf "$RPM_BUILD_ROOT"
  34. make install INSTALL="install -p" DESTDIR="$RPM_BUILD_ROOT"
  35. rm "$RPM_BUILD_ROOT%{_libdir}"/*.la
  36. %clean
  37. rm -rf "$RPM_BUILD_ROOT"
  38. %post
  39. /sbin/ldconfig
  40. %postun
  41. /sbin/ldconfig
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc LICENSE CHANGES
  45. %{_libdir}/*.so.*
  46. %files devel
  47. %defattr(-,root,root,-)
  48. %doc doc/_build/html/*
  49. %{_libdir}/*.so
  50. %{_libdir}/pkgconfig/%{name}.pc
  51. %{_includedir}/*
  52. %changelog
  53. * Fri May 20 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7-2
  54. - added Patch1000 to fix CVE-2016-4425.
  55. * Wed Jul 8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7-1
  56. - new upstream release.
  57. * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-1
  58. - initial build for Vine Linux
  59. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  61. * Sat Jun 11 2011 Sean Middleditch <sean@middleditch.us> 2.1-1
  62. - Update to Jansson 2.1.
  63. - Drop Sphinx patch, no longer necessary.
  64. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  66. * Sat Jul 03 2010 Sean Middleditch <sean@middleditch.us> 1.3-1
  67. - Update to Jansson 1.3.
  68. - Disable warnings-as-errors for Sphinx documentation.
  69. * Thu Jan 21 2010 Sean Middleditch <sean@middleditch.us> 1.2-1
  70. - Update to Jansson 1.2.
  71. * Mon Jan 11 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-4
  72. - Update jansson description per upstream's suggestions.
  73. - Removed README from docs.
  74. * Sat Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-3
  75. - Correct misspelling of jansson in the pkg-config file.
  76. * Sat Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-2
  77. - Fix Changelog dates.
  78. - Mix autoheader warning.
  79. - Added make check.
  80. - Build and install HTML documentation in -devel package.
  81. * Thu Jan 07 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-1
  82. - Initial packaging for Fedora.