7788
|
1 |
#
|
|
2 |
# spec file for package pycairo
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
8564
|
8 |
# Owner: laca
|
|
9 |
#
|
7788
|
10 |
Name: pycairo
|
|
11 |
License: LGPL
|
|
12 |
Group: System/Library
|
7991
|
13 |
Version: 1.2.2
|
7788
|
14 |
Release: 1
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Python bindings for Cairo
|
|
18 |
Source: http://cairographics.org/releases/pycairo-%{version}.tar.gz
|
|
19 |
URL: http://www.cairographics.org
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
Docdir: %{_defaultdocdir}/doc
|
|
22 |
Autoreqprov: on
|
|
23 |
|
|
24 |
%define python_version 2.4
|
|
25 |
|
|
26 |
%description
|
|
27 |
PyCairo is an extension module for python that gives you access to Cairo
|
|
28 |
|
|
29 |
%package devel
|
|
30 |
Summary: files needed to build wrappers for Cairo libraries
|
|
31 |
Group: Development/Languages
|
|
32 |
Requires: %{name} = %{version}
|
|
33 |
|
|
34 |
%description devel
|
|
35 |
This package contains files required to build wrappers for Cairo
|
|
36 |
libraries so that they interoperate with python.
|
|
37 |
|
|
38 |
%prep
|
|
39 |
%setup -q -n pycairo-%{version}
|
|
40 |
|
|
41 |
%build
|
|
42 |
autoconf
|
|
43 |
%ifos solaris
|
|
44 |
# Disable optimizations on x86 to workaround compiler bug 6382078.
|
|
45 |
%ifarch sparc
|
|
46 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
47 |
%else
|
|
48 |
CFLAGS="$RPM_OPT_FLAGS -xO0" \
|
|
49 |
%endif
|
|
50 |
%endif
|
|
51 |
./configure --prefix=%{_prefix} \
|
|
52 |
--sysconfdir=%{_sysconfdir}
|
|
53 |
make
|
|
54 |
|
|
55 |
%install
|
|
56 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
57 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
58 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
59 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
60 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
61 |
|
|
62 |
%clean
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
|
|
65 |
%post
|
|
66 |
|
|
67 |
%postun
|
|
68 |
|
|
69 |
%files
|
|
70 |
%defattr(-, root, root)
|
|
71 |
%{_libdir}/python?.?/vendor-packages/*
|
|
72 |
|
|
73 |
%files devel
|
|
74 |
%defattr(-, root, root)
|
|
75 |
%doc examples
|
|
76 |
%doc AUTHORS NEWS README MAPPING ChangeLog
|
|
77 |
%{_bindir}/*
|
|
78 |
%{_includedir}/*
|
|
79 |
%{_libdir}/pkgconfig/*
|
|
80 |
%{_libdir}/pycairo/*
|
|
81 |
%{_datadir}/pycairo/*
|
|
82 |
|
|
83 |
%changelog -n pycairo
|
7991
|
84 |
* Mon Aug 28 2006 - [email protected]
|
|
85 |
- Bumped to 1.2.2.
|
|
86 |
|
7788
|
87 |
* Fri Jul 28 2006 - [email protected]
|
|
88 |
- Initial Sun release.
|