pycairo-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %bcond_without python3
  2. Name: pycairo
  3. Summary: Python bindings for the cairo library
  4. Summary(ja): cairo ライブラリの Python バインディング
  5. Version: 1.19.1
  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: python-rpm-macros
  14. BuildRequires: pkgconfig
  15. Requires: cairo >= 1.8.10
  16. %description
  17. Python bindings for the cairo library.
  18. %if %{with python3}
  19. %package -n python3-pycairo
  20. Summary: Python3 bindings for the cairo library
  21. Summary(ja): cairo ライブラリの Python3 バインディング
  22. Group: programming
  23. BuildRequires: python3-devel
  24. BuildRequires: python3-setuptools
  25. BuildRequires: python3-rpm-macros
  26. %description -n python3-pycairo
  27. Python3 bindings for the cairo library.
  28. %package -n python3-pycairo-devel
  29. Summary: Libraries and headers for pycairo
  30. Group: programming
  31. Requires: python3-pycairo = %{version}-%{release}
  32. Requires: cairo-devel
  33. Requires: python3-devel
  34. %description -n python3-pycairo-devel
  35. This package contains files required to build wrappers for cairo add-on
  36. libraries so that they interoperate with pycairo.
  37. %endif
  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. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.19.1-1
  66. - new upstream release.
  67. - built with python3 only.
  68. * Thu Apr 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.2-1
  69. - new upstream release.
  70. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.10-3
  71. - rebuild with VineSeed environment
  72. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.10-2
  73. - rebuild with python-2.7.2
  74. * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bg.wakwak.com> 1.8.10-1
  75. - new upstream release
  76. - built wirh rpm-4.8.1
  77. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.8.6-2
  78. - rebuilt with gcc-4.4.3-3 on ppc
  79. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.6-1
  80. - build for python-2.6
  81. * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bg.wakwak.com> 1.8.2-1vl5
  82. - new upstream release
  83. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.12-1vl5
  84. - rebuilt with python-2.5.2
  85. - applied new versioning policy and spec in utf-8
  86. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.12-0vl1
  87. - new upstream release
  88. * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.0-0vl1
  89. - initial build for Vine Linux
  90. * Thu Mar 15 2007 Matthew Barnes <mbarnes@redhat.com> - 1.4.0-1.fc7
  91. - Update to 1.4.0
  92. * Mon Feb 05 2007 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-3.fc7
  93. - Incorporate suggestions from package review (RH bug #226329).
  94. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.6-2
  95. - rebuild against python 2.5
  96. * Tue Nov 28 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-1.fc7
  97. - Update to 1.2.6
  98. - Clean up the spec file.
  99. * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.2-1
  100. - Update to 1.2.2
  101. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-1.1
  102. - rebuild
  103. * Wed Jul 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.2.0-1
  104. - Update to upstream 1.2.0
  105. * Mon Jul 3 2006 Jeremy Katz <katzj@redhat.com> - 1.0.2-3
  106. - require new enough cairo (#197457)
  107. * Mon Jun 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-2
  108. - add pkgconfig BR
  109. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2.1
  110. - bump again for double-long bug on ppc(64)
  111. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2
  112. - rebuilt for new gcc4.1 snapshot and glibc changes
  113. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  114. - rebuilt
  115. * Wed Oct 26 2005 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-1
  116. - Updated to latest and push into rawhide
  117. * Fri Dec 10 2004 Kristian H淡gsberg <krh@redhat.com> - 0.1.3-1
  118. - Add python-devel build requires.
  119. * Wed Nov 24 2004 <jrb@redhat.com> -
  120. - Initial build.