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