pygobject3-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. Name: pygobject3
  3. Summary: Python bindings for GObject Introspection
  4. Summary(ja): GObject Introspection の Python バインディング
  5. Version: 3.18.2
  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/3.18/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: gobject-introspection-devel >= 0.9.8
  17. BuildRequires: pycairo-devel >= 1.8.10
  18. Obsoletes: %{name}-doc < 3.10.0
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: Takemikaduchi
  22. %description
  23. pygobject provides a convenient wrapper for the GObject library
  24. for use in Python programs.
  25. %package devel
  26. Summary: Development files for building add-on libraries
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: glib2-devel
  30. Requires: libffi-devel
  31. Requires: pkgconfig
  32. %description devel
  33. This package contains files required to build wrappers for
  34. pygobject-based libraries such as pygtk2.
  35. %package -n python3-pygobject
  36. Summary: Python3 bindings for GObject Introspection
  37. Summary(ja): GObject Introspection の Python3 バインディング
  38. BuildRequires: python3-pycairo-devel >= 1.10.0
  39. Requires: python3 >= 3.3
  40. Obsoletes: python3-pygobject < 3.16.1
  41. %description -n python3-pygobject
  42. python3-pygobject provides a convenient wrapper for the GObject library
  43. for use in Python3 programs.
  44. %prep
  45. %setup -q -n pygobject-%{version}
  46. # python3
  47. rm -rf ../python3
  48. cp -a . ../python3
  49. %build
  50. # --disable-docs doesn't work; it builds the docs anyway.
  51. %configure \
  52. --with-python=python2 \
  53. --enable-silent-rules \
  54. --disable-static \
  55. --enable-thread
  56. export tagname=CC
  57. make LIBTOOL=/usr/bin/libtool
  58. # python3
  59. pushd ../python3
  60. %configure \
  61. --with-python=python3 \
  62. --enable-silent-rules \
  63. --disable-static \
  64. --enable-thread
  65. export tagname=CC
  66. make LIBTOOL=/usr/bin/libtool
  67. popd
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. export tagname=CC
  71. # python3
  72. pushd ../python3
  73. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  74. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  75. rm -f examples/Makefile*
  76. popd
  77. rm -rf ../python3
  78. # python2
  79. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  80. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  81. rm -f examples/Makefile*
  82. # conflict with pygobject
  83. rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
  84. rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
  85. %clean
  86. rm -fr $RPM_BUILD_ROOT
  87. %files
  88. %defattr(-,root,root,-)
  89. %doc AUTHORS NEWS README ChangeLog
  90. %doc examples
  91. %{_libdir}/python2.7/site-packages/pygtkcompat
  92. %{python_sitearch}/*.egg-info
  93. %{python_sitearch}/gi
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %{_includedir}/pygobject-3.0/pygobject.h
  97. %{_libdir}/pkgconfig/pygobject-3.0.pc
  98. %files -n python3-pygobject
  99. %defattr(-,root,root,-)
  100. %doc AUTHORS NEWS README ChangeLog
  101. %{python3_sitearch}/pygtkcompat
  102. %{python3_sitearch}/*.egg-info
  103. %{python3_sitearch}/gi
  104. %changelog
  105. * Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-2
  106. - fix spec file
  107. * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-1
  108. - new upstream release
  109. * Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.2-1
  110. - new upstream release
  111. * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1
  112. - new upstream release
  113. - create python3-pygobject subpackage
  114. * Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1
  115. - new upstream release
  116. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1
  117. - new upstream release
  118. * Fri Jun 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1
  119. - new upstream release
  120. * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1
  121. - new upstream release
  122. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1
  123. - new upstream release
  124. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1
  125. - new upstream release
  126. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1
  127. - new upstream release
  128. - remove doc subpackage
  129. * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.3-1
  130. - new upstream release
  131. * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
  132. - new upstream release
  133. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  134. - new upstream release
  135. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  136. - new upstream release
  137. * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1
  138. - new upstream release
  139. * Thu Oct 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1.1-1
  140. - new upstream release
  141. * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1
  142. - new upstream release
  143. * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1
  144. - new upstream release
  145. * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1
  146. - new upstream release
  147. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2
  148. - rebuild with python-2.7.2
  149. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1
  150. - new upstream release
  151. * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  152. - new upstream release
  153. * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1
  154. - new upstream release
  155. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1
  156. - new upstream release
  157. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1
  158. - initial build for Vine Linux