pycairo.spec revision 16646
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#
10139N/A# Owner: laca
10139N/A#
10139N/AName: pycairo
10139N/ALicense: LGPL
10139N/AGroup: System/Library
16646N/AVersion: 1.8.4
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
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
15395N/A%{?!python_version:%define python_version 2.4}
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
10139N/Aautoconf
10139N/A%ifos solaris
10139N/A# Disable optimizations on x86 to workaround compiler bug 6382078.
10139N/A%ifarch sparc
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A%else
10139N/ACFLAGS="$RPM_OPT_FLAGS -xO0" \
10139N/A%endif
10139N/A%endif
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
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.