base-specs/pycairo.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 16429 fe72291e50fd
child 16614 c151ffbda133
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package pycairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
15895
bd4b5ec822c6 2009-06-15 Halton Huo <[email protected]>
halton
parents: 14644
diff changeset
     4
# Copyright 2009 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16429
diff changeset
     8
%define owner laca
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16429
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    10
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    11
%define OSR 5165:1.2.2
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    12
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Name:			pycairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
License:		LGPL	
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Group:			System/Library
16149
c3a5fc3e1690 2009-07-28 Christian Kelly <[email protected]>
chrisk
parents: 15895
diff changeset
    16
Version:		1.8.6
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Release:		1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Distribution:		Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Vendor:			Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Summary:		Python bindings for Cairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source:			http://cairographics.org/releases/pycairo-%{version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
URL:			http://www.cairographics.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
14644
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
    27
%{?!python_version:%define python_version 2.4}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
PyCairo is an extension module for python that gives you access to Cairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Summary: files needed to build wrappers for Cairo libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Group: Development/Languages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires: %{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
This package contains files required to build wrappers for Cairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
libraries so that they interoperate with python.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%setup -q -n pycairo-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
# Disable optimizations on x86 to workaround compiler bug 6382078.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%ifarch sparc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
CFLAGS="$RPM_OPT_FLAGS"				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
CFLAGS="$RPM_OPT_FLAGS -xO0"			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
./configure 	--prefix=%{_prefix}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
	    	--sysconfdir=%{_sysconfdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
make install DESTDIR=$RPM_BUILD_ROOT \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%doc examples
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%doc AUTHORS NEWS README MAPPING ChangeLog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%{_libdir}/pycairo/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%{_datadir}/pycairo/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%changelog -n pycairo
16149
c3a5fc3e1690 2009-07-28 Christian Kelly <[email protected]>
chrisk
parents: 15895
diff changeset
    87
* Tue Jul 28 2009 - [email protected]
c3a5fc3e1690 2009-07-28 Christian Kelly <[email protected]>
chrisk
parents: 15895
diff changeset
    88
- Bump to 1.8.6.
15895
bd4b5ec822c6 2009-06-15 Halton Huo <[email protected]>
halton
parents: 14644
diff changeset
    89
* Mon Jun 15 2009 - [email protected]
bd4b5ec822c6 2009-06-15 Halton Huo <[email protected]>
halton
parents: 14644
diff changeset
    90
- Bump to 1.8.4
14644
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
    91
* Mon Nov 24 2008 - [email protected]
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
    92
- use %{python_version} macro to select which version of Python to build with
9570
955f61f25b7f 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    93
* Thu Mar 15 2007 - [email protected]
955f61f25b7f 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    94
- Bump to 1.4.0.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
* Mon Aug 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
- Bumped to 1.2.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
* Fri Jul 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
- Initial Sun release.