9397
|
1 |
#
|
|
2 |
# spec file for package pycairo
|
|
3 |
#
|
15895
|
4 |
# Copyright 2009 Sun Microsystems, Inc.
|
9397
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner laca
|
16617
|
9 |
# bugdb: bugzilla.freedesktop.org
|
9397
|
10 |
#
|
16429
|
11 |
|
|
12 |
%define OSR 5165:1.2.2
|
|
13 |
|
9397
|
14 |
Name: pycairo
|
16614
|
15 |
License: LGPL
|
9397
|
16 |
Group: System/Library
|
16614
|
17 |
Version: 1.8.8
|
9397
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17865
|
20 |
Vendor: freedesktop.org
|
9397
|
21 |
Summary: Python bindings for Cairo
|
|
22 |
Source: http://cairographics.org/releases/pycairo-%{version}.tar.gz
|
16617
|
23 |
# date:2009-09-22 owner:yippi type:bug bugzilla:24098
|
16614
|
24 |
Patch1: pycairo-01-uninstalled-pc.diff
|
9397
|
25 |
URL: http://www.cairographics.org
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Docdir: %{_defaultdocdir}/doc
|
|
28 |
Autoreqprov: on
|
|
29 |
|
14644
|
30 |
%{?!python_version:%define python_version 2.4}
|
9397
|
31 |
|
|
32 |
%description
|
|
33 |
PyCairo is an extension module for python that gives you access to Cairo
|
|
34 |
|
|
35 |
%package devel
|
|
36 |
Summary: files needed to build wrappers for Cairo libraries
|
|
37 |
Group: Development/Languages
|
|
38 |
Requires: %{name} = %{version}
|
|
39 |
|
|
40 |
%description devel
|
|
41 |
This package contains files required to build wrappers for Cairo
|
|
42 |
libraries so that they interoperate with python.
|
|
43 |
|
|
44 |
%prep
|
|
45 |
%setup -q -n pycairo-%{version}
|
16614
|
46 |
%patch1 -p1
|
9397
|
47 |
|
|
48 |
%build
|
16614
|
49 |
libtoolize --copy --force
|
|
50 |
aclocal $ACLOCAL_FLAGS
|
9397
|
51 |
autoconf
|
|
52 |
%ifos solaris
|
|
53 |
# Disable optimizations on x86 to workaround compiler bug 6382078.
|
|
54 |
%ifarch sparc
|
|
55 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
56 |
%else
|
|
57 |
CFLAGS="$RPM_OPT_FLAGS -xO0" \
|
|
58 |
%endif
|
|
59 |
%endif
|
|
60 |
./configure --prefix=%{_prefix} \
|
|
61 |
--sysconfdir=%{_sysconfdir}
|
|
62 |
make
|
|
63 |
|
|
64 |
%install
|
|
65 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
66 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
67 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
68 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
69 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
70 |
|
|
71 |
%clean
|
|
72 |
rm -rf $RPM_BUILD_ROOT
|
|
73 |
|
|
74 |
%post
|
|
75 |
|
|
76 |
%postun
|
|
77 |
|
|
78 |
%files
|
|
79 |
%defattr(-, root, root)
|
|
80 |
%{_libdir}/python?.?/vendor-packages/*
|
|
81 |
|
|
82 |
%files devel
|
|
83 |
%defattr(-, root, root)
|
|
84 |
%doc examples
|
|
85 |
%doc AUTHORS NEWS README MAPPING ChangeLog
|
|
86 |
%{_bindir}/*
|
|
87 |
%{_includedir}/*
|
|
88 |
%{_libdir}/pkgconfig/*
|
|
89 |
%{_libdir}/pycairo/*
|
|
90 |
%{_datadir}/pycairo/*
|
|
91 |
|
|
92 |
%changelog -n pycairo
|
16614
|
93 |
* Tue Sep 22 2009 - [email protected]
|
|
94 |
- Bump to 1.8.8 and add pycairo-01-uninstalled-pc.diff patch.
|
16149
|
95 |
* Tue Jul 28 2009 - [email protected]
|
|
96 |
- Bump to 1.8.6.
|
15895
|
97 |
* Mon Jun 15 2009 - [email protected]
|
|
98 |
- Bump to 1.8.4
|
14644
|
99 |
* Mon Nov 24 2008 - [email protected]
|
|
100 |
- use %{python_version} macro to select which version of Python to build with
|
9570
|
101 |
* Thu Mar 15 2007 - [email protected]
|
|
102 |
- Bump to 1.4.0.
|
9397
|
103 |
* Mon Aug 28 2006 - [email protected]
|
|
104 |
- Bumped to 1.2.2.
|
|
105 |
* Fri Jul 28 2006 - [email protected]
|
|
106 |
- Initial Sun release.
|