Enable Python 3 support
This commit is contained in:
parent
0e76331d29
commit
83bbe62035
35
pycairo.spec
35
pycairo.spec
@ -12,6 +12,8 @@ BuildRequires: pkgconfig
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pytest
|
||||
BuildRequires: python-xpyb-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%description
|
||||
Python bindings for the cairo library.
|
||||
@ -28,6 +30,13 @@ Provides: pycairo%{?_isa} = %{version}-%{release}
|
||||
%description -n python2-cairo
|
||||
Python 2 bindings for the cairo library.
|
||||
|
||||
%package -n python3-cairo
|
||||
Summary: Python 3 bindings for the cairo library
|
||||
%{?python_provide:%python_provide python3-cairo}
|
||||
|
||||
%description -n python3-cairo
|
||||
Python 3 bindings for the cairo library.
|
||||
|
||||
%package -n python2-cairo-devel
|
||||
Summary: Libraries and headers for pycairo
|
||||
Requires: python2-cairo%{?_isa} = %{version}-%{release}
|
||||
@ -41,27 +50,50 @@ Provides: pycairo-devel%{?_isa} = %{version}-%{release}
|
||||
This package contains files required to build wrappers for cairo add-on
|
||||
libraries so that they interoperate with pycairo.
|
||||
|
||||
%package -n python3-cairo-devel
|
||||
Summary: Libraries and headers for py3cairo
|
||||
Requires: python3-cairo%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-devel
|
||||
|
||||
%description -n python3-cairo-devel
|
||||
This package contains files required to build wrappers for cairo add-on
|
||||
libraries so that they interoperate with py3cairo.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%py2_build -- --enable-xpyb
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python2-cairo
|
||||
%license COPYING*
|
||||
%{python2_sitearch}/cairo/
|
||||
%{python2_sitearch}/pycairo*.egg-info
|
||||
|
||||
%files -n python3-cairo
|
||||
%license COPYING*
|
||||
%{python3_sitearch}/cairo/
|
||||
%{python3_sitearch}/pycairo*.egg-info
|
||||
|
||||
%files -n python2-cairo-devel
|
||||
%{_includedir}/pycairo/
|
||||
%dir %{_includedir}/pycairo
|
||||
%{_includedir}/pycairo/pycairo.h
|
||||
%{_libdir}/pkgconfig/pycairo.pc
|
||||
|
||||
%files -n python3-cairo-devel
|
||||
%dir %{_includedir}/pycairo
|
||||
%{_includedir}/pycairo/py3cairo.h
|
||||
%{_libdir}/pkgconfig/py3cairo.pc
|
||||
|
||||
%changelog
|
||||
* Thu Sep 14 2017 Kalev Lember <klember@redhat.com> - 1.15.2-1
|
||||
- Update to 1.15.2
|
||||
@ -69,6 +101,7 @@ libraries so that they interoperate with pycairo.
|
||||
- Switch to distutils build system
|
||||
- Tighten subpackage deps with the _isa macro
|
||||
- Rename Python 2 package to python2-cairo
|
||||
- Enable Python 3 support
|
||||
|
||||
* 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