pycairo-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. %bcond_without python2
  2. %bcond_without python3
  3. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  4. Name: pycairo
  5. Summary: Python bindings for the cairo library
  6. Summary(ja): cairo ライブラリの Python バインディング
  7. Version: 1.18.2
  8. Release: 1%{?_dist_release}
  9. Group: Development/Languages
  10. License: LGPLv2
  11. URL: http://cairographics.org/pycairo
  12. Source: pycairo-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: cairo-devel >= 1.8.10
  15. %if %{with python2}
  16. BuildRequires: python-devel >= 2.6
  17. BuildRequires: python-setuptools
  18. BuildRequires: python-rpm-macros
  19. %endif
  20. BuildRequires: pkgconfig
  21. Requires: cairo >= 1.8.10
  22. %description
  23. Python bindings for the cairo library.
  24. %if %{with python2}
  25. %package devel
  26. Summary: Libraries and headers for pycairo
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: cairo-devel
  30. Requires: python-devel
  31. %description devel
  32. This package contains files required to build wrappers for cairo add-on
  33. libraries so that they interoperate with pycairo.
  34. %endif
  35. %if %{with python3}
  36. %package -n python3-pycairo
  37. Summary: Python3 bindings for the cairo library
  38. Summary(ja): cairo ライブラリの Python3 バインディング
  39. BuildRequires: python3-devel
  40. BuildRequires: python3-setuptools
  41. BuildRequires: python3-rpm-macros
  42. %description -n python3-pycairo
  43. Python3 bindings for the cairo library.
  44. %package -n python3-pycairo-devel
  45. Summary: Libraries and headers for pycairo
  46. Group: Development/Libraries
  47. Requires: python3-pycairo = %{version}-%{release}
  48. Requires: cairo-devel
  49. Requires: python3-devel
  50. %description -n python3-pycairo-devel
  51. This package contains files required to build wrappers for cairo add-on
  52. libraries so that they interoperate with pycairo.
  53. %endif
  54. %prep
  55. %setup -q
  56. %build
  57. %if %{with python2}
  58. %py_build
  59. %endif
  60. %if %{with python3}
  61. %py3_build
  62. %endif
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %if %{with python2}
  66. %py_install
  67. %endif
  68. %if %{with python3}
  69. %py3_install
  70. %endif
  71. find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %if %{with python2}
  75. %files
  76. %defattr(-,root,root,-)
  77. %license COPYING*
  78. %doc NEWS README*
  79. %{python_sitearch}/*
  80. %files devel
  81. %defattr(-,root,root,-)
  82. %dir %{_includedir}/pycairo/
  83. %{_includedir}/pycairo/pycairo.h
  84. %{_libdir}/pkgconfig/pycairo.pc
  85. %endif
  86. %if %{with python3}
  87. %files -n python3-pycairo
  88. %defattr(-,root,root,-)
  89. %license COPYING*
  90. %doc NEWS README*
  91. %{python3_sitearch}/*
  92. %files -n python3-pycairo-devel
  93. %defattr(-,root,root,-)
  94. %dir %{_includedir}/pycairo/
  95. %{_includedir}/pycairo/py3cairo.h
  96. %{_libdir}/pkgconfig/py3cairo.pc
  97. %endif
  98. %changelog
  99. * Thu Apr 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.2-1
  100. - new upstream release.
  101. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.10-3
  102. - rebuild with VineSeed environment
  103. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.10-2
  104. - rebuild with python-2.7.2
  105. * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bg.wakwak.com> 1.8.10-1
  106. - new upstream release
  107. - built wirh rpm-4.8.1
  108. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.8.6-2
  109. - rebuilt with gcc-4.4.3-3 on ppc
  110. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.6-1
  111. - build for python-2.6
  112. * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bg.wakwak.com> 1.8.2-1vl5
  113. - new upstream release
  114. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.12-1vl5
  115. - rebuilt with python-2.5.2
  116. - applied new versioning policy and spec in utf-8
  117. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.12-0vl1
  118. - new upstream release
  119. * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.0-0vl1
  120. - initial build for Vine Linux
  121. * Thu Mar 15 2007 Matthew Barnes <mbarnes@redhat.com> - 1.4.0-1.fc7
  122. - Update to 1.4.0
  123. * Mon Feb 05 2007 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-3.fc7
  124. - Incorporate suggestions from package review (RH bug #226329).
  125. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.6-2
  126. - rebuild against python 2.5
  127. * Tue Nov 28 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-1.fc7
  128. - Update to 1.2.6
  129. - Clean up the spec file.
  130. * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.2-1
  131. - Update to 1.2.2
  132. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-1.1
  133. - rebuild
  134. * Wed Jul 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.2.0-1
  135. - Update to upstream 1.2.0
  136. * Mon Jul 3 2006 Jeremy Katz <katzj@redhat.com> - 1.0.2-3
  137. - require new enough cairo (#197457)
  138. * Mon Jun 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-2
  139. - add pkgconfig BR
  140. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2.1
  141. - bump again for double-long bug on ppc(64)
  142. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2
  143. - rebuilt for new gcc4.1 snapshot and glibc changes
  144. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  145. - rebuilt
  146. * Wed Oct 26 2005 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-1
  147. - Updated to latest and push into rawhide
  148. * Fri Dec 10 2004 Kristian H淡gsberg <krh@redhat.com> - 0.1.3-1
  149. - Add python-devel build requires.
  150. * Wed Nov 24 2004 <jrb@redhat.com> -
  151. - Initial build.