pygobject-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: pygobject
  3. Summary: Python bindings for GObject
  4. Summary(ja): GObject の Python バインディング
  5. Version: 2.26.0
  6. Release: 1%{?_dist_release}
  7. Group: Development/Languages
  8. License: LGPL
  9. URL: http://www.pygtk.org/
  10. Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.26/pygobject-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: glib2-devel >= 2.26.0
  13. BuildRequires: python-devel >= 2.6
  14. BuildRequires: libffi-devel
  15. BuildRequires: libtool, automake
  16. BuildRequires: gobject-introspection-devel >= 0.9.8
  17. BuildRequires: pycairo-devel >= 1.8.10
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: daisuke
  21. %description
  22. pygobject provides a convenient wrapper for the GObject library
  23. for use in Python programs.
  24. %package devel
  25. Summary: Development files for building add-on libraries
  26. Group: Development/Libraries
  27. Requires: pygobject = %{version}-%{release}
  28. #Requires: pygobject-doc = %{version}-%{release}
  29. Requires: glib2-devel
  30. Requires: libffi-devel
  31. Requires: pkgconfig
  32. %description devel
  33. This package contains files required to build wrappers for
  34. pygobject-based libraries such as pygtk2.
  35. %package doc
  36. Summary: Documentation files for pygobject
  37. Group: Documentation
  38. %description doc
  39. This package contains documentation files for pygobject.
  40. %prep
  41. %setup -q
  42. %build
  43. # --disable-docs doesn't work; it builds the docs anyway.
  44. %configure \
  45. --enable-silent-rules \
  46. --disable-static \
  47. --enable-thread \
  48. --enable-introspection=yes \
  49. --disable-docs
  50. export tagname=CC
  51. make LIBTOOL=/usr/bin/libtool
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. export tagname=CC
  55. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  56. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  57. rm -f examples/Makefile*
  58. %clean
  59. rm -fr $RPM_BUILD_ROOT
  60. %files
  61. %defattr(644, root, root, 755)
  62. %doc AUTHORS NEWS README ChangeLog
  63. %doc examples
  64. %{_libdir}/libpyglib-2.0-python.so.*
  65. %dir %{python_sitearch}/gtk-2.0
  66. %{python_sitearch}/gtk-2.0/dsextras.*
  67. %{python_sitearch}/pygtk.*
  68. %defattr(755, root, root, 755)
  69. %{python_sitearch}/gtk-2.0/gio
  70. %{python_sitearch}/gtk-2.0/glib
  71. %{python_sitearch}/gtk-2.0/gobject
  72. %{python_sitearch}/gtk-2.0/gi
  73. %files devel
  74. %defattr(755, root, root, 755)
  75. %{_bindir}/pygobject-codegen-2.0
  76. %defattr(644, root, root, 755)
  77. %dir %{_datadir}/pygobject
  78. %dir %{_datadir}/pygobject/2.0
  79. %dir %{_includedir}/pygtk-2.0
  80. %{_datadir}/pygobject/2.0/codegen
  81. %{_datadir}/pygobject/2.0/defs
  82. %{_datadir}/pygobject/xsl
  83. %{_includedir}/pygtk-2.0/pyglib.h
  84. %{_includedir}/pygtk-2.0/pygobject.h
  85. %{_libdir}/libpyglib-2.0-python.so
  86. %{_libdir}/pkgconfig/pygobject-2.0.pc
  87. %files doc
  88. %defattr(644, root, root, 755)
  89. %{_datadir}/gtk-doc/html/pygobject
  90. %changelog
  91. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.0-1
  92. - new upstream release
  93. - add BuildRequires: gobject-introspection-devel, pycairo-devel
  94. - change configure option --enable-introspection=yes instead of --disable-introspection
  95. * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.5-1
  96. - new upstream release
  97. - added --disable-intropection option (it needs gobject-introspection >= 0.9)
  98. - moved xsl files to devel package
  99. - built with rpm-4.8.1
  100. * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1
  101. - new upstream release
  102. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.0-3
  103. - build for python-2.6
  104. * Wed Dec 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-2
  105. - added Requires: libffi-devel to devel package <BTS:830>
  106. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-1
  107. - new upstream release
  108. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-1
  109. - new upstream release
  110. * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16.0-1
  111. - new upstream release
  112. * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.4-1
  113. - new upstream release
  114. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.14.2-2
  115. - rebuilt with python-2.5.2
  116. * Tue May 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-1
  117. - new upstream release
  118. - spec in UTF-8
  119. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-1vl5
  120. - rebuilt with python-2.4.5 and glib2-2.16.1
  121. - used %%{?_dist_release} macro
  122. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-0vl1
  123. - new upstream release
  124. * Sat Nov 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.0-0vl1
  125. - new upstream release
  126. - dropped Patch1 (merged into upstream)
  127. * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.3-0vl1
  128. - initial build for Vine Linux
  129. * Thu Apr 19 2007 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-3.fc7
  130. - Add patch for RH bug #237179 (memory leak).
  131. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 2.12.3-2
  132. - rebuild against python 2.5
  133. * Sat Nov 18 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-1.fc7
  134. - Update to 2.12.3
  135. * Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-3.fc7
  136. - Add subpackage pygobject2-doc (bug #205231).
  137. * Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-2.fc7
  138. - Use python_sitearch instead of python_sitelib.
  139. * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-1.fc7
  140. - Update to 2.12.2
  141. * Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6
  142. - Require glib2-devel for the -devel package.
  143. * Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6
  144. - Define a python_sitelib macro for files under site_packages.
  145. - Spec file cleanups.
  146. * Tue Sep 5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6
  147. - Update to 2.12.1
  148. - Require pkgconfig for the -devel package
  149. * Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6
  150. - Update to 2.11.4
  151. - Use pre-built docs
  152. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6
  153. - Update to 2.11.3
  154. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6
  155. - BR libxslt
  156. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6
  157. - Update to 2.11.2
  158. * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2
  159. - rebuild
  160. * Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1
  161. - Update to 2.11.0
  162. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3
  163. - rebuild
  164. - Add missing br libtool
  165. * Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2
  166. - Cleanup
  167. * Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1
  168. - Initial package