pygobject-vl.spec 6.7 KB

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