json-glib-vl.spec 5.5 KB

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