pycairo.spec revision 16900
15395N/A#
15395N/A# spec file for package pycairo
15395N/A#
15395N/A# Copyright 2009 Sun Microsystems, Inc.
15395N/A# This file and all modifications and additions to the pristine
15395N/A# package are under the same license as the package itself.
15395N/A#
17185N/A# Owner: laca
15395N/A#
15395N/AName: pycairo
15395N/ALicense: LGPL
17180N/AGroup: System/Library
17180N/AVersion: 1.8.6
15395N/ARelease: 1
17033N/ADistribution: Java Desktop System
17033N/AVendor: Sun Microsystems, Inc.
17035N/ASummary: Python bindings for Cairo
17033N/ASource: http://cairographics.org/releases/pycairo-%{version}.tar.gz
17033N/AURL: http://www.cairographics.org
15395N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
17033N/ADocdir: %{_defaultdocdir}/doc
15395N/AAutoreqprov: on
15395N/A
15395N/A%{?!python_version:%define python_version 2.4}
15395N/A
15395N/A%description
15395N/APyCairo is an extension module for python that gives you access to Cairo
15395N/A
15395N/A%package devel
15395N/ASummary: files needed to build wrappers for Cairo libraries
15395N/AGroup: Development/Languages
16212N/ARequires: %{name} = %{version}
17035N/A
17035N/A%description devel
17035N/AThis package contains files required to build wrappers for Cairo
15395N/Alibraries so that they interoperate with python.
15395N/A
15395N/A%prep
15395N/A%setup -q -n pycairo-%{version}
15395N/A
15395N/A%build
17492N/Aautoconf
17492N/A%ifos solaris
15395N/A# Disable optimizations on x86 to workaround compiler bug 6382078.
15395N/A%ifarch sparc
15395N/ACFLAGS="$RPM_OPT_FLAGS" \
15395N/A%else
15395N/ACFLAGS="$RPM_OPT_FLAGS -xO0" \
15395N/A%endif
16039N/A%endif
15395N/A./configure --prefix=%{_prefix} \
15395N/A --sysconfdir=%{_sysconfdir}
15395N/Amake
15395N/A
15395N/A%install
17492N/Amake install DESTDIR=$RPM_BUILD_ROOT \
17492N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
17035N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
17035N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16496N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
16496N/A
16039N/A%clean
16039N/Arm -rf $RPM_BUILD_ROOT
15694N/A
15694N/A%post
15395N/A
15395N/A%postun
15395N/A
15395N/A%files
15395N/A%defattr(-, root, root)
15395N/A%{_libdir}/python?.?/vendor-packages/*
15395N/A
15395N/A%files devel
15395N/A%defattr(-, root, root)
15395N/A%doc examples
15395N/A%doc AUTHORS NEWS README MAPPING ChangeLog
15395N/A%{_bindir}/*
15395N/A%{_includedir}/*
15395N/A%{_libdir}/pkgconfig/*
15395N/A%{_libdir}/pycairo/*
15395N/A%{_datadir}/pycairo/*
15395N/A
%changelog -n pycairo
* Tue Jul 28 2009 - christian.kelly@sun.com
- Bump to 1.8.6.
* Mon Jun 15 2009 - halton.huo@sun.com
- Bump to 1.8.4
* Mon Nov 24 2008 - laca@sun.com
- use %{python_version} macro to select which version of Python to build with
* Thu Mar 15 2007 - damien.carbery@sun.com
- Bump to 1.4.0.
* Mon Aug 28 2006 - harry.lu@sun.com
- Bumped to 1.2.2.
* Fri Jul 28 2006 - damien.carbery@sun.com
- Initial Sun release.