[7938] | 1 | %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
---|
| 2 | |
---|
| 3 | Name: python3-pycairo |
---|
| 4 | Summary: Python3 bindings for the cairo library |
---|
| 5 | Summary(ja): cairo ライブラリの Python3 バインディング |
---|
| 6 | Version: 1.10.0 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: LGPLv2 |
---|
| 11 | URL: http://cairographics.org/pycairo |
---|
| 12 | |
---|
| 13 | Source: http://cairographics.org/releases/pycairo-%{version}.tar.bz2 |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: cairo-devel >= 1.10.0 |
---|
| 17 | BuildRequires: python3-devel >= 3.0 |
---|
| 18 | BuildRequires: pkgconfig |
---|
| 19 | Requires: python3 >= 3.0 |
---|
| 20 | Requires: cairo >= 1.10.0 |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Python3 bindings for the cairo library. |
---|
| 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Libraries and headers for pycairo |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | Requires: cairo-devel >= 1.10.0 |
---|
| 30 | Requires: python3-devel >= 3.0 |
---|
| 31 | |
---|
| 32 | %description devel |
---|
| 33 | This package contains files required to build wrappers for cairo add-on |
---|
| 34 | libraries so that they interoperate with pycairo3. |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q -n pycairo-%{version} |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | export PYTHON=python3 |
---|
| 41 | python3 ./waf configure \ |
---|
| 42 | --prefix=%{_prefix} \ |
---|
| 43 | --libdir=%{_libdir} |
---|
| 44 | |
---|
| 45 | python3 ./waf build |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | DESTDIR=$RPM_BUILD_ROOT python3 ./waf install |
---|
| 51 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | |
---|
| 56 | %files |
---|
| 57 | %defattr(-,root,root,-) |
---|
| 58 | %doc AUTHORS COPYING* INSTALL NEWS README |
---|
| 59 | %{python3_sitearch}/cairo/ |
---|
| 60 | |
---|
| 61 | %files devel |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %{_includedir}/pycairo/py3cairo.h |
---|
| 64 | %{_libdir}/pkgconfig/py3cairo.pc |
---|
| 65 | |
---|
| 66 | %changelog |
---|
| 67 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
| 68 | - initial build |
---|
| 69 | |
---|