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