json-glib-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define glib_ver 2.48.0
  3. Name: json-glib
  4. Summary: Library for JavaScript Object Notation format
  5. Version: 1.4.4
  6. Release: 2%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPLv2+
  11. URL: http://live.gnome.org/JsonGlib
  12. #VCS: git:git://git.gnome.org/json-glib
  13. %global shortver %(echo %{version} | cut -d . -f 1,2)
  14. Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  16. BuildRequires: meson
  17. BuildRequires: glib2-devel >= %{glib_ver}
  18. BuildRequires: gobject-introspection-devel
  19. %description
  20. %{name} is a library providing serialization and deserialization support
  21. for the JavaScript Object Notation (JSON) format.
  22. %package devel
  23. Summary: Development files for %{name}
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: glib2-devel >= %{glib_ver}
  27. Requires: gtk-doc
  28. Requires: pkgconfig
  29. %description devel
  30. The %{name}-devel package contains libraries and header files for
  31. developing applications that use %{name}.
  32. # compat32
  33. %package -n compat32-%{name}
  34. Summary: Library for JavaScript Object Notation format
  35. Group: System Environment/Libraries
  36. %description -n compat32-%{name}
  37. %{name} is a library providing serialization and deserialization support
  38. for the JavaScript Object Notation (JSON) format.
  39. %prep
  40. %setup -q
  41. %build
  42. %meson
  43. %meson_build
  44. %install
  45. rm -rf %{buildroot}
  46. %meson_install
  47. rm -rf %{buildroot}%{_libexecdir}/installed-tests
  48. rm -rf %{buildroot}%{_datadir}/installed-tests
  49. %find_lang %{name}-1.0
  50. %check
  51. # make check
  52. %clean
  53. rm -rf %{buildroot}
  54. %post -p /sbin/ldconfig
  55. %postun -p /sbin/ldconfig
  56. %post -n compat32-%{name} -p /sbin/ldconfig
  57. %postun -n compat32-%{name} -p /sbin/ldconfig
  58. %files -f %{name}-1.0.lang
  59. %defattr(-,root,root,-)
  60. %license COPYING
  61. %doc NEWS
  62. %{_bindir}/json-glib-format
  63. %{_bindir}/json-glib-validate
  64. %{_libdir}/lib%{name}*.so.*
  65. %{_libdir}/girepository-1.0/Json-1.0.typelib
  66. %files devel
  67. %defattr(-,root,root,-)
  68. %{_libdir}/lib%{name}*.so
  69. %{_libdir}/pkgconfig/%{name}-1.0.pc
  70. %{_includedir}/%{name}-1.0/
  71. #%{_datadir}/gtk-doc/html/%{name}/
  72. %{_datadir}/gir-1.0/Json-1.0.gir
  73. %if %{build_compat32}
  74. %files -n compat32-%{name}
  75. %defattr(-,root,root,-)
  76. %{_libdir}/lib%{name}*.so.*
  77. %endif
  78. %changelog
  79. * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-2
  80. - rebuilt with current envirpnment.
  81. * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-1
  82. - new upstream release.
  83. * Thu Jul 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-1
  84. - new upstream release
  85. * Sat Feb 13 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-2
  86. - create compat32-json-glib subpackage
  87. * Sat Mar 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-1
  88. - new upstream release
  89. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.2-1
  90. - new upstream release
  91. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1
  92. - new upstream release
  93. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-2
  94. - rebuild with VineSeed environment
  95. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-1
  96. - new upstream release
  97. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1
  98. - new upstream release
  99. * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.15.2-1
  100. - new upstream release
  101. * Sun Apr 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.2-1
  102. - update to 0.14.2
  103. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.0-1
  104. - new upstream release
  105. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.4-1
  106. - new upstream release
  107. * Thu May 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.4-1
  108. - new upstream release
  109. * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.2-1
  110. - new upstream release
  111. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.0-1
  112. - initial build for Vine Linux
  113. * Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.10.4-3
  114. - Rebuild with new gobject-introspection
  115. * Thu Jul 1 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.10.4-2
  116. - Rebuild for "Incompatible version 1.0 (supported: 1.1)"
  117. for introspection file
  118. * Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.10.4-1
  119. - Update to 0.10.4.
  120. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-3
  121. - Require the gobject-introspection-devel package, not the library
  122. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-2
  123. - Enable gobject-introspection support
  124. * Tue Dec 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.10.0-1
  125. - Update to 0.10.0.
  126. * Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.2-1
  127. - Update to 0.8.2.
  128. * Tue Sep 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.0-1
  129. - Update to 0.8.0.
  130. - Update source url.
  131. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
  132. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  133. * Thu Feb 26 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-3
  134. - Disable tests for now.
  135. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
  136. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  137. * Sat May 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1
  138. - Update to 0.6.2.
  139. - Enable tests.
  140. * Mon May 19 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.0-1
  141. - Update 0.6.0.
  142. - Disable tests for now.
  143. - Add requires on gtk-doc.
  144. * Sun Apr 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.4.0-1
  145. - Initial Fedora spec.