pygobject-vl.spec 5.9 KB

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