pygobject3-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. %bcond_without python2
  2. %bcond_without python3
  3. Name: pygobject3
  4. Summary: Python bindings for GObject Introspection
  5. Summary(ja): GObject Introspection の Python バインディング
  6. Version: 3.36.1
  7. Release: 1%{?_dist_release}
  8. Group: programming
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: LGPL
  12. URL: https://pypi.org/project/PyGObject/
  13. %global shortver %(echo "%{version}" | sed -e 's/\.[0-9]*$//')
  14. Source: https://ftp.gnome.org/pub/GNOME/sources/pygobject/%{shortver}/pygobject-%{version}.tar.xz
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: glib2-devel >= 2.26.0
  17. BuildRequires: python-devel >= 2.6
  18. BuildRequires: libffi-devel
  19. BuildRequires: libtool, automake
  20. BuildRequires: gobject-introspection-devel >= 0.9.8
  21. BuildRequires: python-rpm-macros
  22. %if %{with python2}
  23. BuildRequires: python-devel >= 2.6
  24. BuildRequires: python-setuptools
  25. BuildRequires: python2-rpm-macros
  26. BuildRequires: python2-pycairo-devel >= 1.8.10
  27. %endif
  28. Obsoletes: %{name}-doc < 3.10.0
  29. %description
  30. pygobject provides a convenient wrapper for the GObject library
  31. for use in Python programs.
  32. %package devel
  33. Summary: Development files for building add-on libraries
  34. Group: programming
  35. Provides: python3-pygobject-devel = %{version}-%{release}
  36. Requires: %{name} = %{version}-%{release}
  37. Requires: glib2-devel
  38. Requires: libffi-devel
  39. Requires: pkgconfig
  40. %description devel
  41. This package contains files required to build wrappers for
  42. pygobject-based libraries such as pygtk2.
  43. %if %{with python3}
  44. %package -n python3-pygobject
  45. Summary: Python3 bindings for GObject Introspection
  46. Summary(ja): GObject Introspection の Python3 バインディング
  47. Group: programming
  48. BuildRequires: python3-devel
  49. BuildRequires: python3-setuptools
  50. BuildRequires: python3-rpm-macros
  51. BuildRequires: python3-pycairo-devel
  52. Obsoletes: python3-pygobject < 3.16.1
  53. %description -n python3-pygobject
  54. python3-pygobject provides a convenient wrapper for the GObject library
  55. for use in Python3 programs.
  56. %endif
  57. %prep
  58. %setup -q -n pygobject-%{version}
  59. %build
  60. %if %{with python2}
  61. %py_build
  62. %endif
  63. %if %{with python3}
  64. %py3_build
  65. %endif
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %if %{with python2}
  69. %py_install
  70. %endif
  71. %if %{with python3}
  72. %py3_install
  73. %endif
  74. %clean
  75. rm -fr $RPM_BUILD_ROOT
  76. %if %{with python2}
  77. %files
  78. %defattr(-,root,root,-)
  79. %license COPYING
  80. %doc NEWS README*
  81. %doc examples
  82. %{_libdir}/python2.7/site-packages/pygtkcompat
  83. %{python_sitearch}/*.egg-info
  84. %{python_sitearch}/gi
  85. %endif
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %{_includedir}/pygobject-3.0/pygobject.h
  89. %{_libdir}/pkgconfig/pygobject-3.0.pc
  90. %if %{with python3}
  91. %files -n python3-pygobject
  92. %defattr(-,root,root,-)
  93. %license COPYING
  94. %doc NEWS README*
  95. %{python3_sitearch}/pygtkcompat
  96. %{python3_sitearch}/*.egg-info
  97. %{python3_sitearch}/gi
  98. %endif
  99. %changelog
  100. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.36.1-1
  101. - new upstream release.
  102. * Thu Apr 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.34.0-1
  103. - new upstream release.
  104. * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1
  105. - new upstream release
  106. * Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-2
  107. - fix spec file
  108. * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-1
  109. - new upstream release
  110. * Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.2-1
  111. - new upstream release
  112. * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1
  113. - new upstream release
  114. - create python3-pygobject subpackage
  115. * Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1
  116. - new upstream release
  117. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1
  118. - new upstream release
  119. * Fri Jun 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1
  120. - new upstream release
  121. * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1
  122. - new upstream release
  123. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1
  124. - new upstream release
  125. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1
  126. - new upstream release
  127. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1
  128. - new upstream release
  129. - remove doc subpackage
  130. * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.3-1
  131. - new upstream release
  132. * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
  133. - new upstream release
  134. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  135. - new upstream release
  136. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  137. - new upstream release
  138. * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1
  139. - new upstream release
  140. * Thu Oct 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1.1-1
  141. - new upstream release
  142. * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1
  143. - new upstream release
  144. * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1
  145. - new upstream release
  146. * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1
  147. - new upstream release
  148. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2
  149. - rebuild with python-2.7.2
  150. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1
  151. - new upstream release
  152. * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  153. - new upstream release
  154. * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1
  155. - new upstream release
  156. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1
  157. - new upstream release
  158. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1
  159. - initial build for Vine Linux