pycairo.spec revision 10312
15395N/A#
15395N/A# spec file for package pycairo
15395N/A#
15395N/A# Copyright (c) 2005 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#
15395N/A# Owner: laca
15395N/A#
15395N/AName: pycairo
15395N/ALicense: LGPL
15395N/AGroup: System/Library
15395N/AVersion: 1.4.0
15395N/ARelease: 1
15694N/ADistribution: Java Desktop System
15395N/AVendor: Sun Microsystems, Inc.
15395N/ASummary: Python bindings for Cairo
15395N/ASource: http://cairographics.org/releases/pycairo-%{version}.tar.gz
15395N/AURL: http://www.cairographics.org
15395N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15395N/ADocdir: %{_defaultdocdir}/doc
15395N/AAutoreqprov: on
15395N/A
15395N/A%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
15395N/ARequires: %{name} = %{version}
15395N/A
15395N/A%description devel
15395N/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
15395N/Aautoconf
15395N/A%ifos solaris
15694N/A# Disable optimizations on x86 to workaround compiler bug 6382078.
15694N/A%ifarch sparc
15395N/ACFLAGS="$RPM_OPT_FLAGS" \
15395N/A%else
15395N/ACFLAGS="$RPM_OPT_FLAGS -xO0" \
15395N/A%endif
15395N/A%endif
15395N/A./configure --prefix=%{_prefix} \
15395N/A --sysconfdir=%{_sysconfdir}
15395N/Amake
15395N/A
15395N/A%install
15395N/Amake install DESTDIR=$RPM_BUILD_ROOT \
15395N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
15395N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
15395N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
15395N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
15395N/A
15395N/A%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-, root, root)
%{_libdir}/python?.?/vendor-packages/*
%files devel
%defattr(-, root, root)
%doc examples
%doc AUTHORS NEWS README MAPPING ChangeLog
%{_bindir}/*
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/pycairo/*
%{_datadir}/pycairo/*
%changelog -n pycairo
* 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.