From 9873f03fa4f6568a44a9fbf87625140a1cb66c3d Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 14 Sep 2017 21:44:31 +0200 Subject: [PATCH] Update to 1.15.2 - Switch to new upstream at https://github.com/pygobject/pycairo - Switch to distutils build system --- .gitignore | 1 + pycairo.spec | 36 +++++++++++++----------------------- sources | 2 +- 3 files changed, 15 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 04e2660..7b8d9d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ pycairo-1.8.8.tar.gz /py2cairo-1.8.10.tar.gz /py2cairo-1.10.0.tar.bz2 +/pycairo-1.15.2.tar.gz diff --git a/pycairo.spec b/pycairo.spec index 0e02a65..0a9dcd0 100644 --- a/pycairo.spec +++ b/pycairo.spec @@ -1,24 +1,19 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: pycairo -Version: 1.10.0 -Release: 8%{?dist} +Version: 1.15.2 +Release: 1%{?dist} License: MPLv1.1 or LGPLv2 Group: Development/Languages Summary: Python bindings for the cairo library URL: http://cairographics.org/pycairo -Source: http://cairographics.org/releases/py2cairo-%{version}.tar.bz2 +Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz -BuildRequires: autoconf -BuildRequires: automake BuildRequires: cairo-devel -BuildRequires: libtool -BuildRequires: libxcb-devel BuildRequires: pkgconfig BuildRequires: pytest BuildRequires: python-devel BuildRequires: python-xpyb-devel -BuildRequires: lyx-fonts Requires: python-xpyb %description @@ -37,37 +32,32 @@ 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} -# fix broken tarball -touch ChangeLog -# we install examples into docdir, so remove executable bit -find examples -type f | xargs chmod -x +%setup -q %build -# fix broken tarball -autoreconf -i -%configure --enable-xcb --enable-xpyb -make %{?_smp_mflags} +%py2_build -- --enable-xpyb %install -make DESTDIR=$RPM_BUILD_ROOT install -find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f +%py2_install %check -cd test -PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch} py.test +%{__python2} setup.py test %files %license COPYING* -%doc AUTHORS NEWS README -%doc examples doc/faq.rst doc/overview.rst doc/README %{python_sitearch}/cairo/ +%{python_sitearch}/pycairo*.egg-info %files devel %{_includedir}/pycairo/ %{_libdir}/pkgconfig/pycairo.pc %changelog +* Thu Sep 14 2017 Kalev Lember - 1.15.2-1 +- Update to 1.15.2 +- Switch to new upstream at https://github.com/pygobject/pycairo +- Switch to distutils build system + * Thu Aug 03 2017 Fedora Release Engineering - 1.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index b2fdf23..a081f64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -20337132c4ab06c1146ad384d55372c5 py2cairo-1.10.0.tar.bz2 +SHA512 (pycairo-1.15.2.tar.gz) = ce0ee0b1775eac75eaee9eddcd9dda21d99a6327bac55e0d2e15ce3a8a1869e4d44c59eada1725ba3cdda16fac4ce33a7c350ffdae3892dac85c5e70033e3ee1