pygobject-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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.21.1
  6. Release: 1%{?_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. 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: Development/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 --enable-thread --disable-docs
  43. export tagname=CC
  44. make LIBTOOL=/usr/bin/libtool
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. export tagname=CC
  48. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  49. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  50. rm -f examples/Makefile*
  51. %clean
  52. rm -fr $RPM_BUILD_ROOT
  53. %files
  54. %defattr(644, root, root, 755)
  55. %doc AUTHORS NEWS README ChangeLog
  56. %doc examples
  57. %{_libdir}/libpyglib-2.0-python.so.*
  58. %dir %{python_sitearch}/gtk-2.0
  59. %{python_sitearch}/gtk-2.0/dsextras.*
  60. %{python_sitearch}/pygtk.*
  61. %defattr(755, root, root, 755)
  62. %{python_sitearch}/gtk-2.0/gio
  63. %{python_sitearch}/gtk-2.0/glib
  64. %{python_sitearch}/gtk-2.0/gobject
  65. %files devel
  66. %defattr(755, root, root, 755)
  67. %{_bindir}/pygobject-codegen-2.0
  68. %defattr(644, root, root, 755)
  69. %dir %{_datadir}/pygobject
  70. %dir %{_datadir}/pygobject/2.0
  71. %dir %{_includedir}/pygtk-2.0
  72. %{_datadir}/pygobject/2.0/codegen
  73. %{_datadir}/pygobject/2.0/defs
  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. * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1
  84. - new upstream release
  85. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.0-3
  86. - build for python-2.6
  87. * Wed Dec 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-2
  88. - added Requires: libffi-devel to devel package <BTS:830>
  89. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-1
  90. - new upstream release
  91. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-1
  92. - new upstream release
  93. * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16.0-1
  94. - new upstream release
  95. * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.4-1
  96. - new upstream release
  97. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.14.2-2
  98. - rebuilt with python-2.5.2
  99. * Tue May 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-1
  100. - new upstream release
  101. - spec in UTF-8
  102. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-1vl5
  103. - rebuilt with python-2.4.5 and glib2-2.16.1
  104. - used %%{?_dist_release} macro
  105. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-0vl1
  106. - new upstream release
  107. * Sat Nov 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.0-0vl1
  108. - new upstream release
  109. - dropped Patch1 (merged into upstream)
  110. * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.3-0vl1
  111. - initial build for Vine Linux
  112. * Thu Apr 19 2007 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-3.fc7
  113. - Add patch for RH bug #237179 (memory leak).
  114. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 2.12.3-2
  115. - rebuild against python 2.5
  116. * Sat Nov 18 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-1.fc7
  117. - Update to 2.12.3
  118. * Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-3.fc7
  119. - Add subpackage pygobject2-doc (bug #205231).
  120. * Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-2.fc7
  121. - Use python_sitearch instead of python_sitelib.
  122. * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-1.fc7
  123. - Update to 2.12.2
  124. * Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6
  125. - Require glib2-devel for the -devel package.
  126. * Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6
  127. - Define a python_sitelib macro for files under site_packages.
  128. - Spec file cleanups.
  129. * Tue Sep 5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6
  130. - Update to 2.12.1
  131. - Require pkgconfig for the -devel package
  132. * Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6
  133. - Update to 2.11.4
  134. - Use pre-built docs
  135. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6
  136. - Update to 2.11.3
  137. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6
  138. - BR libxslt
  139. * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6
  140. - Update to 2.11.2
  141. * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2
  142. - rebuild
  143. * Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1
  144. - Update to 2.11.0
  145. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3
  146. - rebuild
  147. - Add missing br libtool
  148. * Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2
  149. - Cleanup
  150. * Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1
  151. - Initial package