10139N/A#
10139N/A# spec file for package pycairo
10139N/A#
16646N/A# Copyright 2009 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner laca
17368N/A# bugdb: bugzilla.freedesktop.org
10139N/A#
17180N/A
17180N/A%define OSR 5165:1.2.2
17180N/A
10139N/AName: pycairo
17365N/ALicense: LGPL
10139N/AGroup: System/Library
17365N/AVersion: 1.8.8
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18616N/AVendor: freedesktop.org
10139N/ASummary: Python bindings for Cairo
10139N/ASource: http://cairographics.org/releases/pycairo-%{version}.tar.gz
10139N/AURL: http://www.cairographics.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/A
19806N/A%{?!python_version:%define python_version 2.6}
10139N/A
10139N/A%description
10139N/APyCairo is an extension module for python that gives you access to Cairo
10139N/A
10139N/A%package devel
10139N/ASummary: files needed to build wrappers for Cairo libraries
10139N/AGroup: Development/Languages
10139N/ARequires: %{name} = %{version}
10139N/A
10139N/A%description devel
10139N/AThis package contains files required to build wrappers for Cairo
10139N/Alibraries so that they interoperate with python.
10139N/A
10139N/A%prep
10139N/A%setup -q -n pycairo-%{version}
10139N/A
10139N/A%build
17365N/Alibtoolize --copy --force
17365N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautoconf
10139N/A./configure --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT \
10139N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
10139N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
10139N/A
10139N/A%postun
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/python?.?/vendor-packages/*
10139N/A
10139N/A%files devel
10139N/A%defattr(-, root, root)
10139N/A%doc examples
10139N/A%doc AUTHORS NEWS README MAPPING ChangeLog
10139N/A%{_bindir}/*
10139N/A%{_includedir}/*
10139N/A%{_libdir}/pkgconfig/*
10139N/A%{_libdir}/pycairo/*
10139N/A%{_datadir}/pycairo/*
10139N/A
10139N/A%changelog -n pycairo
20047N/A* Fri Feb 18 2011 - brian.cameron@oracle.com
20047N/A- Remove uninstalled.pc patch.
17365N/A* Tue Sep 22 2009 - brian.cameron@sun.com
17365N/A- Bump to 1.8.8 and add pycairo-01-uninstalled-pc.diff patch.
16900N/A* Tue Jul 28 2009 - christian.kelly@sun.com
16900N/A- Bump to 1.8.6.
16646N/A* Mon Jun 15 2009 - halton.huo@sun.com
16646N/A- Bump to 1.8.4
15395N/A* Mon Nov 24 2008 - laca@sun.com
15395N/A- use %{python_version} macro to select which version of Python to build with
10312N/A* Thu Mar 15 2007 - damien.carbery@sun.com
10312N/A- Bump to 1.4.0.
10139N/A* Mon Aug 28 2006 - harry.lu@sun.com
10139N/A- Bumped to 1.2.2.
10139N/A* Fri Jul 28 2006 - damien.carbery@sun.com
10139N/A- Initial Sun release.