pygobject-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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: 2%{?_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. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.6-2
  90. - remove BuildRequires: gobject-introspection-devel
  91. - change configure option --disable-introspection instead of --enable-introspection=yes
  92. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.6-1
  93. - new upstream release
  94. * Tue Jun 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.4-1
  95. - update to 2.28.4
  96. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.0-1
  97. - new upstream release
  98. - add BuildRequires: gobject-introspection-devel, pycairo-devel
  99. - change configure option --enable-introspection=yes instead of --disable-introspection
  100. * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.5-1
  101. - new upstream release
  102. - added --disable-intropection option (it needs gobject-introspection >= 0.9)
  103. - moved xsl files to devel package
  104. - built with rpm-4.8.1
  105. * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1
  106. - new upstream release
  107. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.0-3
  108. - build for python-2.6
  109. * Wed Dec 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-2
  110. - added Requires: libffi-devel to devel package <BTS:830>
  111. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-1
  112. - new upstream release
  113. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-1
  114. - new upstream release
  115. * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16.0-1
  116. - new upstream release
  117. * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.4-1
  118. - new upstream release
  119. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.14.2-2
  120. - rebuilt with python-2.5.2
  121. * Tue May 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-1
  122. - new upstream release
  123. - spec in UTF-8
  124. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-1vl5
  125. - rebuilt with python-2.4.5 and glib2-2.16.1
  126. - used %%{?_dist_release} macro
  127. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-0vl1
  128. - new upstream release
  129. * Sat Nov 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.0-0vl1
  130. - new upstream release
  131. - dropped Patch1 (merged into upstream)
  132. * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.3-0vl1
  133. - initial build for Vine Linux
  134. * Thu Apr 19 2007 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-3.fc7
  135. - Add patch for RH bug #237179 (memory leak).
  136. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 2.12.3-2
  137. - rebuild against python 2.5
  138. * Sat Nov 18 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-1.fc7
  139. - Update to 2.12.3
  140. * Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-3.fc7
  141. - Add subpackage pygobject2-doc (bug #205231).
  142. * Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-2.fc7
  143. - Use python_sitearch instead of python_sitelib.
  144. * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-1.fc7
  145. - Update to 2.12.2
  146. * Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6
  147. - Require glib2-devel for the -devel package.
  148. * Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6
  149. - Define a python_sitelib macro for files under site_packages.
  150. - Spec file cleanups.
  151. * Tue Sep 5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6
  152. - Update to 2.12.1
  153. - Require pkgconfig for the -devel package
  154. * Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6
  155. - Update to 2.11.4
  156. - Use pre-built docs
  157. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6
  158. - Update to 2.11.3
  159. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6
  160. - BR libxslt
  161. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6
  162. - Update to 2.11.2
  163. * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2
  164. - rebuild
  165. * Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1
  166. - Update to 2.11.0
  167. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3
  168. - rebuild
  169. - Add missing br libtool
  170. * Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2
  171. - Cleanup
  172. * Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1
  173. - Initial package