pygobject-vl.spec 5.5 KB

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