[1059] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | %define pkg_version 1.0.2 |
---|
[1901] | 4 | %define pkg_release 2%{?_dist_release} |
---|
[1059] | 5 | |
---|
| 6 | Summary: Python bindings for Clutter |
---|
| 7 | Summary(ja): Clutter 用 Python バインディング |
---|
| 8 | Name: pyclutter |
---|
| 9 | Version: %{pkg_version} |
---|
| 10 | Release: %{pkg_release} |
---|
| 11 | Source0: http://www.clutter-project.org/sources/%{name}/1.0/%{name}-%{version}.tar.bz2 |
---|
| 12 | License: LGPLv2+ |
---|
| 13 | Group: Development/Languages |
---|
| 14 | URL: http://www.clutter-project.org/ |
---|
| 15 | |
---|
| 16 | BuildRequires: glib2-devel >= 2.16.0 |
---|
| 17 | BuildRequires: gtk2-devel >= 2.10.0 |
---|
| 18 | BuildRequires: clutter-devel >= 1.0.0 |
---|
| 19 | BuildRequires: pycairo-devel >= 1.0.2 |
---|
| 20 | BuildRequires: pygobject-devel >= 2.12.1 |
---|
| 21 | BuildRequires: python-devel >= 2.5.0 |
---|
| 22 | BuildRequires: pygtk2-devel >= 2.8.0 |
---|
| 23 | BuildRequires: pygobject-doc |
---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 25 | |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Distribution: Vine Linux |
---|
| 28 | Packager: Takemikaduchi |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | This archive contains the Python modules that allow you to use the |
---|
| 33 | Clutter toolkit in Python programs. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %package devel |
---|
| 37 | Summary: PyClutter development environment |
---|
| 38 | Summary(ja): PyClutter の開発環境 |
---|
| 39 | Group: Development/Libraries |
---|
| 40 | Requires: %{name} = %{version}-%{release} |
---|
| 41 | Requires: pygobject-devel |
---|
| 42 | Requires: python-devel |
---|
| 43 | Requires: clutter-devel |
---|
| 44 | |
---|
| 45 | %description devel |
---|
| 46 | Header files and libraries for building a extension library for the pyclutter. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %build |
---|
| 54 | %configure --enable-static=no |
---|
| 55 | %{__make} %{?_smp_mflags} |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %install |
---|
| 59 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 60 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 61 | |
---|
| 62 | %{__rm} -rf ${RPM_BUILD_ROOT}%{python_sitearch}/clutter/*.la |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %clean |
---|
| 66 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %files |
---|
| 70 | %defattr(-,root,root) |
---|
| 71 | %doc AUTHORS ChangeLog COPYING NEWS README |
---|
| 72 | %{python_sitearch}/clutter |
---|
| 73 | %{_datadir}/gtk-doc/html/pyclutter |
---|
| 74 | %{_datadir}/pyclutter/1.0/defs |
---|
| 75 | |
---|
| 76 | %files devel |
---|
| 77 | %defattr(-,root,root) |
---|
| 78 | %{_includedir}/pyclutter-1.0 |
---|
| 79 | %{_libdir}/pkgconfig/pyclutter-1.0.pc |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[1901] | 83 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-2 |
---|
| 84 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 85 | |
---|
[1059] | 86 | * Sat May 22 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1 |
---|
| 87 | - initial build for Vine Linux |
---|
| 88 | |
---|