pycairo-vl.spec 4.4 KB

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