pygobject3-vl.spec 5.2 KB

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