Update to 1.15.2

- Switch to new upstream at https://github.com/pygobject/pycairo
- Switch to distutils build system
This commit is contained in:
Kalev Lember 2017-09-14 21:44:31 +02:00
parent 2105fb3395
commit 9873f03fa4
3 changed files with 15 additions and 24 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <klember@redhat.com> - 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 <releng@fedoraproject.org> - 1.10.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

View File

@ -1 +1 @@
20337132c4ab06c1146ad384d55372c5 py2cairo-1.10.0.tar.bz2
SHA512 (pycairo-1.15.2.tar.gz) = ce0ee0b1775eac75eaee9eddcd9dda21d99a6327bac55e0d2e15ce3a8a1869e4d44c59eada1725ba3cdda16fac4ce33a7c350ffdae3892dac85c5e70033e3ee1