json-glib-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. %define glib_ver 2.28.6
  2. Name: json-glib
  3. Version: 0.12.4
  4. Release: 1%{?_dist_release}
  5. Summary: Library for JavaScript Object Notation format
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://live.gnome.org/JsonGlib
  9. #VCS: git:git://git.gnome.org/json-glib
  10. Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.12/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: glib2-devel >= %{glib_ver}
  13. BuildRequires: gobject-introspection-devel
  14. %description
  15. %{name} is a library providing serialization and deserialization support
  16. for the JavaScript Object Notation (JSON) format.
  17. %package devel
  18. Summary: Development files for %{name}
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. Requires: glib2-devel >= %{glib_ver}
  22. Requires: gtk-doc
  23. Requires: pkgconfig
  24. %description devel
  25. The %{name}-devel package contains libraries and header files for
  26. developing applications that use %{name}.
  27. %prep
  28. %setup -q
  29. %build
  30. %configure --enable-static=no
  31. make %{?_smp_mflags} V=1
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT
  35. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  36. # Copy the files from the tarball to avoid the IDs generated by gtk-doc being
  37. # different on different builds
  38. mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}/
  39. cp -a doc/reference/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}/
  40. %check
  41. # make check
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post -p /sbin/ldconfig
  45. %postun -p /sbin/ldconfig
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc COPYING README NEWS
  49. %{_libdir}/lib%{name}*.so.*
  50. %{_libdir}/girepository-1.0/Json-1.0.typelib
  51. %files devel
  52. %defattr(-,root,root,-)
  53. %{_libdir}/lib%{name}*.so
  54. %{_libdir}/pkgconfig/%{name}-1.0.pc
  55. %{_includedir}/%{name}-1.0/
  56. %{_datadir}/gtk-doc/html/%{name}/
  57. %{_datadir}/gir-1.0/Json-1.0.gir
  58. %changelog
  59. * Thu May 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.4-1
  60. - new upstream release
  61. * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.2-1
  62. - new upstream release
  63. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.0-1
  64. - initial build for Vine Linux
  65. * Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.10.4-3
  66. - Rebuild with new gobject-introspection
  67. * Thu Jul 1 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.10.4-2
  68. - Rebuild for "Incompatible version 1.0 (supported: 1.1)"
  69. for introspection file
  70. * Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.10.4-1
  71. - Update to 0.10.4.
  72. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-3
  73. - Require the gobject-introspection-devel package, not the library
  74. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-2
  75. - Enable gobject-introspection support
  76. * Tue Dec 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.10.0-1
  77. - Update to 0.10.0.
  78. * Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.2-1
  79. - Update to 0.8.2.
  80. * Tue Sep 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.0-1
  81. - Update to 0.8.0.
  82. - Update source url.
  83. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  85. * Thu Feb 26 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-3
  86. - Disable tests for now.
  87. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  89. * Sat May 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1
  90. - Update to 0.6.2.
  91. - Enable tests.
  92. * Mon May 19 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.0-1
  93. - Update 0.6.0.
  94. - Disable tests for now.
  95. - Add requires on gtk-doc.
  96. * Sun Apr 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.4.0-1
  97. - Initial Fedora spec.