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