%define cairo_version 1.10.2 ### Abstract ### Name: python-cairo Version: 1.10.0 Release: 1%{?dist} License: MPLv1.1 or LGPLv2 Group: Development/Languages Summary: Python bindings for the cairo library URL: http://cairographics.org/pycairo BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Source: http://cairographics.org/releases/py2cairo-%{version}.tar.bz2 # With version 1.8.10, the upstream pycairo project began releasing multiple # tarballs for different Python versions: py2cairo for Python 2, and pycairo # for Python 3. In order to provide a smooth upgrade path for users wishing # to stay on the Python 2 version, this package was renamed to python-cairo # and a python3-cairo package was introduced for Python 3. Provides: pycairo = %{version} Obsoletes: pycairo < 1.10.1 ### Build Dependencies ### BuildRequires: cairo-devel >= %{cairo_version} BuildRequires: pkgconfig BuildRequires: python-devel %description Python bindings for the cairo library. %package devel Summary: Libraries and headers for pycairo Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: cairo-devel Requires: pkgconfig Requires: python-devel %description devel This package contains files required to build wrappers for cairo add-on libraries so that they interoperate with pycairo. %prep %setup -q -n py2cairo-%{version} # Ensure that ./waf has created the cached unpacked version # of the wafadmin source tree. # This will be created to a subdirectory like # .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752 python ./waf --version %build # FIXME: we should be using the system version of waf (e.g. %{_bindir}/waf) # however it is not yet python 3 compatible but should be when 1.6.0 # is released - https://bugzilla.redhat.com/show_bug.cgi?id=637935 export CFLAGS="$RPM_OPT_FLAGS" python ./waf --prefix=%{_usr} \ --libdir=%{_libdir} \ configure python ./waf build -v # remove executable bits from examples find ./examples/ -type f -print0 | xargs -0 chmod -x %install rm -rf $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT python ./waf install # add executable bit to the .so libraries so we strip the debug info find $RPM_BUILD_ROOT -name '*.so' | xargs chmod +x find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING* INSTALL NEWS README %doc examples doc/faq.rst doc/overview.rst doc/README %{python_sitearch}/cairo/ %files devel %defattr(-,root,root,-) %{_includedir}/pycairo/ %{_libdir}/pkgconfig/pycairo.pc %changelog * Thu Aug 18 2011 John (J5) Palmieri - 1.10.0-1 - update to upstream 1.10.0 - change package name to python-cairo and get new review * Tue Feb 08 2011 Fedora Release Engineering - 1.8.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Sep 21 2010 Matthew Barnes - 1.8.10-1 - Update to 1.8.10 - Rename the package to python-cairo. * Wed Jul 21 2010 David Malcolm - 1.8.8-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Sep 18 2009 Matthew Barnes - 1.8.8-1 - Update to 1.8.8 * Sun Jul 26 2009 Fedora Release Engineering - 1.8.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 29 2009 Matthew Barnes - 1.8.6-1 - Update to 1.8.6 * Thu Feb 26 2009 Fedora Release Engineering - 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 16 2009 Matthew Barnes - 1.8.2-1 - Update to 1.8.2 * Tue Dec 16 2008 Matthew Barnes - 1.8.0-1 - Update to 1.8.0 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.4.12-5 - Rebuild for Python 2.6 * Fri Aug 29 2008 Tom "spot" Callaway - 1.4.12-4 - fix license tag * Wed May 07 2008 Matthew Barnes - 1.4.12-3 - Add more documentation files to the package (RH bug #445519). * Sun Feb 17 2008 Matthew Barnes - 1.4.12-2.fc9 - Rebuild with GCC 4.3 * Thu Dec 13 2007 Matthew Barnes - 1.4.12-1.fc9 - Update to 1.4.12 - Bump cairo requirement to 1.4.12. * Wed Oct 10 2007 Matthew Barnes - 1.4.0-2.fc7 - Rebuild * Thu Mar 15 2007 Matthew Barnes - 1.4.0-1.fc7 - Update to 1.4.0 * Mon Feb 05 2007 Matthew Barnes - 1.2.6-3.fc7 - Incorporate suggestions from package review (RH bug #226329). * Thu Dec 7 2006 Jeremy Katz - 1.2.6-2 - rebuild against python 2.5 * Tue Nov 28 2006 Matthew Barnes - 1.2.6-1.fc7 - Update to 1.2.6 - Clean up the spec file. * Sun Oct 15 2006 Matthew Barnes - 1.2.2-1 - Update to 1.2.2 * Wed Jul 12 2006 Jesse Keating - 1.2.0-1.1 - rebuild * Wed Jul 05 2006 John (J5) Palmieri - 1.2.0-1 - Update to upstream 1.2.0 * Mon Jul 3 2006 Jeremy Katz - 1.0.2-3 - require new enough cairo (#197457) * Mon Jun 05 2006 John (J5) Palmieri - 1.0.2-2 - add pkgconfig BR * Fri Feb 10 2006 Jesse Keating - 1.0.2-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.0.2-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Oct 26 2005 John (J5) Palmieri - 1.0.2-1 - Updated to latest and push into rawhide * Fri Dec 10 2004 Kristian Høgsberg - 0.1.3-1 - Add python-devel build requires. * Wed Nov 24 2004 - - Initial build.