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