base-specs/pycairo.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 17865 b7ff02e93f66
child 21106 512b7ea38e70
permissions -rw-r--r--
update tags
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
16617
0168bcc3c73c Add bugdb lines and a patch comment.
yippi
parents: 16614
diff changeset
     9
# bugdb: bugzilla.freedesktop.org
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
16429
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    11
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    12
%define OSR 5165:1.2.2
fe72291e50fd 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16149
diff changeset
    13
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Name:			pycairo
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    15
License:		LGPL
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Group:			System/Library
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    17
Version:		1.8.8
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Release:		1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Distribution:		Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16617
diff changeset
    20
Vendor:			freedesktop.org
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Summary:		Python bindings for Cairo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
Source:			http://cairographics.org/releases/pycairo-%{version}.tar.gz
16617
0168bcc3c73c Add bugdb lines and a patch comment.
yippi
parents: 16614
diff changeset
    23
# date:2009-09-22 owner:yippi type:bug bugzilla:24098
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    24
Patch1:			pycairo-01-uninstalled-pc.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
URL:			http://www.cairographics.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
14644
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
    30
%{?!python_version:%define python_version 2.4}
9397
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
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
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
    34
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Summary: files needed to build wrappers for Cairo libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Group: Development/Languages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Requires: %{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
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
    42
libraries so that they interoperate with python.
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
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%setup -q -n pycairo-%{version}
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    46
%patch1 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%build
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    49
libtoolize --copy --force
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    50
aclocal $ACLOCAL_FLAGS
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
# Disable optimizations on x86 to workaround compiler bug 6382078.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
%ifarch sparc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
CFLAGS="$RPM_OPT_FLAGS"				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
CFLAGS="$RPM_OPT_FLAGS -xO0"			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
./configure 	--prefix=%{_prefix}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
	    	--sysconfdir=%{_sysconfdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
make install DESTDIR=$RPM_BUILD_ROOT \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
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
    69
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
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%post
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
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%doc examples
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%doc AUTHORS NEWS README MAPPING ChangeLog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%{_libdir}/pycairo/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%{_datadir}/pycairo/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%changelog -n pycairo
16614
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    93
* Tue Sep 22 2009 - [email protected]
c151ffbda133 2009-09-22 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    94
- Bump to 1.8.8 and add pycairo-01-uninstalled-pc.diff patch.
16149
c3a5fc3e1690 2009-07-28 Christian Kelly <[email protected]>
chrisk
parents: 15895
diff changeset
    95
* Tue Jul 28 2009 - [email protected]
c3a5fc3e1690 2009-07-28 Christian Kelly <[email protected]>
chrisk
parents: 15895
diff changeset
    96
- Bump to 1.8.6.
15895
bd4b5ec822c6 2009-06-15 Halton Huo <[email protected]>
halton
parents: 14644
diff changeset
    97
* Mon Jun 15 2009 - [email protected]
bd4b5ec822c6 2009-06-15 Halton Huo <[email protected]>
halton
parents: 14644
diff changeset
    98
- Bump to 1.8.4
14644
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
    99
* Mon Nov 24 2008 - [email protected]
744f9f20aadd 2008-11-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9570
diff changeset
   100
- 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
   101
* Thu Mar 15 2007 - [email protected]
955f61f25b7f 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   102
- Bump to 1.4.0.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
* Mon Aug 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
- Bumped to 1.2.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
* Fri Jul 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
- Initial Sun release.