gobject-introspection-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  3. Name: gobject-introspection
  4. Version: 1.29.16
  5. Release: 2%{?_dist_release}
  6. Summary: Introspection system for GObject-based libraries
  7. Group: Development/Libraries
  8. License: GPLv2+, LGPLv2+, MIT
  9. URL: http://live.gnome.org/GObjectIntrospection
  10. Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/1.29/%{name}-%{version}.tar.xz
  11. Source1: glib-2.0.c
  12. Patch0: gobject-introspection-fix-link.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. Obsoletes: gir-repository < 0.6.6
  15. BuildRequires: glib2-devel
  16. BuildRequires: python-devel >= 2.5
  17. BuildRequires: gettext
  18. BuildRequires: intltool
  19. BuildRequires: gtk-doc
  20. BuildRequires: flex
  21. BuildRequires: bison
  22. BuildRequires: libffi-devel
  23. BuildRequires: mesa-libGL-devel
  24. BuildRequires: cairo-devel >= 1.10.0
  25. BuildRequires: libxml2-devel
  26. BuildRequires: libXfixes-devel
  27. BuildRequires: libX11-devel
  28. BuildRequires: fontconfig-devel
  29. BuildRequires: libXft-devel
  30. BuildRequires: freetype2-devel
  31. BuildRequires: gnome-common
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: Takemikaduchi
  35. %description
  36. GObject Introspection can scan C header and source files in order to
  37. generate introspection "typelib" files. It also provides an API to examine
  38. typelib files, useful for creating language bindings among other
  39. things.
  40. %package devel
  41. Summary: Libraries and headers for gobject-introspection
  42. Summary(ja): %{name} の開発用ファイル
  43. Group: Development/Libraries
  44. Requires: %name = %{version}-%{release}
  45. Requires: glib2-devel
  46. Requires: libffi-devel
  47. Requires: pkgconfig
  48. Obsoletes: gir-repository-devel < 0.6.6
  49. %description devel
  50. Libraries and headers for gobject-introspection
  51. %prep
  52. %setup -q
  53. %patch0 -p1 -b .fix-link
  54. # From Ubuntu:
  55. # Roll back to gir/glib-2.0 as of before upstream commit 6d30588c1.
  56. # Later commits have a GVariant which current pygobject does not
  57. # deal with. This is fixed in the invoke-rewrite branch of
  58. # pygobject, so until this lands we need the older annotations.
  59. pushd gir
  60. rm -rf glib-2.0.c
  61. cp %{SOURCE1} .
  62. popd
  63. %build
  64. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
  65. %configure $CONFIGFLAGS)
  66. make V=1 %{?_smp_mflags}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. make install DESTDIR=$RPM_BUILD_ROOT
  70. # Die libtool, die.
  71. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  72. find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT
  75. %post -p /sbin/ldconfig
  76. %postun -p /sbin/ldconfig
  77. %files
  78. %defattr(-,root,root,-)
  79. %doc COPYING
  80. %{_libdir}/lib*.so.*
  81. %dir %{_libdir}/girepository-1.0
  82. %{_libdir}/girepository-1.0/*.typelib
  83. %files devel
  84. %defattr(-,root,root)
  85. %{_libdir}/lib*.so
  86. %dir %{_libdir}/gobject-introspection
  87. %{_libdir}/gobject-introspection/*
  88. %{_libdir}/pkgconfig/*
  89. %{_includedir}/*
  90. %{_bindir}/g-ir-*
  91. %{_datadir}/gir-1.0
  92. %{_datadir}/aclocal/introspection.m4
  93. %{_datadir}/gobject-introspection-1.0/Makefile.introspection
  94. %{_datadir}/gobject-introspection-1.0/tests
  95. %{_datadir}/gobject-introspection-1.0/gdump.c
  96. %{_datadir}/gtk-doc/html/gi/*
  97. %{_mandir}/man1/*.gz
  98. %changelog
  99. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.29.16-2
  100. - add Source1 (glib-2.0.c)
  101. - add Patch0 (gobject-introspection-fix-link.patch)
  102. * Sat Jul 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.29.16-1
  103. - new upstream release
  104. * Sat May 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.8-1
  105. - new upstream release
  106. * Thu Feb 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.3-1
  107. - new upstream release
  108. * Wed Feb 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.2-1
  109. - new upstream release
  110. * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.1-1
  111. - new upstream release
  112. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
  113. - new upstream release
  114. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8-1
  115. - new upstream release
  116. - add Obsoletes: gir-repository < 0.6.6
  117. - fix %files
  118. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-3
  119. - delete Patch0
  120. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.14-2
  121. - build with rpm-4.8.1-1 for pkg-config file
  122. * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-1
  123. - new upstream release
  124. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.10-1
  125. - new upstream release
  126. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-1
  127. - new upstream release
  128. - add Requires: libffi-devel (devel package)
  129. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1
  130. - new upstream release
  131. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1
  132. - new upstream release
  133. - add Patch0 for ppc
  134. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2
  135. - rebuilt with python-2.6.4
  136. * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1
  137. - initial build for Vine Linux
  138. * Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
  139. - New upstream
  140. - Drop libtool dep
  141. * Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
  142. - Add dep on libtool temporarily
  143. * Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
  144. - New upstream 0.6.4
  145. - Drop upstreamed build fix patch
  146. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
  147. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  148. * Mon Jul 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
  149. - Add upstream patch to fix a build crash
  150. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
  151. - Add -ggdb temporarily so it compiles on ppc64
  152. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
  153. - Add the new source file
  154. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
  155. - Update to 0.6.3
  156. * Mon Jun 1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
  157. - Update to 0.6.2
  158. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
  159. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  160. * Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
  161. - Update to 0.6.1
  162. * Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
  163. - Create spec goo