json-c-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define pkg_date 20240915
  3. Summary: A JSON implementation in C
  4. Name: json-c
  5. Version: 0.18
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: https://json-c.github.io/json-c/
  12. Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
  13. BuildRequires: cmake ninja
  14. %description
  15. JSON-C implements a reference counting object model that allows you to easily
  16. construct JSON objects in C, output them as JSON formatted strings and parse
  17. JSON formatted strings back into the C representation of JSON objects.
  18. %package devel
  19. Summary: Development files for json-c
  20. Group: programming
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: pkgconfig
  23. %description devel
  24. This package contains the libraries and header files that are needed
  25. for writing applications that are using json-c.
  26. %package doc
  27. Summary: Documentation for json-c
  28. Group: documentation
  29. Requires: %{name} = %{version}-%{release}
  30. BuildArch: noarch
  31. %description doc
  32. This package contains documentation for json-c.
  33. %package -n compat32-%{name}
  34. Summary: A JSON implementation in C
  35. Group: system,legacy
  36. Requires: %{name} = %{version}-%{release}
  37. %description -n compat32-%{name}
  38. JSON-C implements a reference counting object model that allows you to easily
  39. construct JSON objects in C, output them as JSON formatted strings and parse
  40. JSON formatted strings back into the C representation of JSON objects.
  41. %package -n compat32-%{name}-devel
  42. Summary: Development files for json-c
  43. Group: programming,legacy
  44. Requires: compat32-%{name} = %{version}-%{release}
  45. Requires: pkgconfig
  46. %description -n compat32-%{name}-devel
  47. This package contains the libraries and header files that are needed
  48. for writing applications that are using json-c.
  49. %debug_package
  50. %prep
  51. %setup -q -n json-c-json-c-%{version}-%{pkg_date}
  52. %build
  53. %cmake \
  54. -DBUILD_SHARED_LIBS:BOOL=ON \
  55. -DBUILD_STATIC_LIBS:BOOL=OFF \
  56. -DCMAKE_BUILD_TYPE:STRING=RELEASE \
  57. -DCMAKE_C_FLAGS_RELEASE:STRING="" \
  58. -DDISABLE_BSYMBOLIC:BOOL=OFF \
  59. -DDISABLE_WERROR:BOOL=ON \
  60. -DENABLE_RDRAND:BOOL=ON \
  61. -DENABLE_THREADING:BOOL=ON \
  62. -G Ninja
  63. %cmake_build
  64. %install
  65. %{__rm} -rf $RPM_BUILD_ROOT
  66. %cmake_install
  67. %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
  68. %check
  69. %ctest
  70. %files
  71. %license COPYING
  72. %doc AUTHORS ChangeLog NEWS README*
  73. %{_libdir}/libjson-c.so.*
  74. %files devel
  75. %dir %{_includedir}/json-c
  76. %{_includedir}/json-c/*
  77. %{_libdir}/libjson-c.so
  78. %{_libdir}/pkgconfig/json-c.pc
  79. %dir %{_libdir}/cmake/json-c
  80. %{_libdir}/cmake/json-c/*.cmake
  81. %files doc
  82. %doc doc/html/*
  83. %if %{build_compat32}
  84. %files -n compat32-%{name}
  85. %{_libdir}/libjson-c.so.*
  86. %files -n compat32-%{name}-devel
  87. %{_libdir}/libjson-c.so
  88. %endif
  89. %changelog
  90. * Wed May 7 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.18-1
  91. - new upstream release.
  92. * Sat Jun 29 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17-1
  93. - new upstream release.
  94. * Wed Oct 26 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.16-1
  95. - new upstream release.
  96. * Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15-1
  97. - new upstream release.
  98. - dropped Patch1000: fixed in upstream.
  99. * Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.14-1
  100. - updated to 0.14.
  101. - added Patch1000 to fix CVE-2020-12762.
  102. * Tue Jan 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.13.1-1
  103. - updated to 0.13.1.
  104. * Sat Jan 17 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 0.11-1
  105. - update to 0.11
  106. * Wed Nov 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1
  107. - update to 0.10
  108. - update URL
  109. * Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
  110. - create compat32 sub packages
  111. * Fri Oct 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-1
  112. - initial build for Vine Linux