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