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