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:
parent
2105fb3395
commit
9873f03fa4
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
||||
36
pycairo.spec
36
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 <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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user