#7 DO NOT MERGE: Split python2-cairo to a separate component
Closed 2 years ago by churchyard. Opened 2 years ago by churchyard.
rpms/ churchyard/pycairo python2-cairo  into  master

python2-cairo.spec pycairo.spec
file renamed
+18 -49
@@ -1,44 +1,32 @@ 

- Name: pycairo

+ Name: python2-cairo

  Version: 1.18.2

- Release: 6%{?dist}

- Summary: Python bindings for the cairo library

+ Release: 7%{?dist}

+ Summary: Python 2 bindings for the cairo library

  

  License: MPLv1.1 or LGPLv2

  URL: http://cairographics.org/pycairo

  Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz

  

+ # This package has a FESCo exception to use Python 2, for GIMP

+ # https://pagure.io/fesco/issue/2238

+ 

  BuildRequires: cairo-devel

  BuildRequires: gcc

  BuildRequires: pkgconfig

  BuildRequires: python2-devel

  BuildRequires: python2-setuptools

- BuildRequires: python3-devel

- BuildRequires: python3-pytest

- BuildRequires: python3-setuptools

- 

- %description

- Python bindings for the cairo library.

  

- %package -n python2-cairo

- Summary: Python 2 bindings for the cairo library

  %{?python_provide:%python_provide python2-cairo}

  # Renamed in F27

  Obsoletes: pycairo < 1.15.2

  Provides: pycairo = %{version}-%{release}

  Provides: pycairo%{?_isa} = %{version}-%{release}

  

- %description -n python2-cairo

+ %description

  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

+ %package devel

+ Summary: Libraries and headers for python2-cairo

  Requires: python2-cairo%{?_isa} = %{version}-%{release}

  Requires: python2-devel

  # Renamed in F27
@@ -46,54 +34,35 @@ 

  Provides: pycairo-devel = %{version}-%{release}

  Provides: pycairo-devel%{?_isa} = %{version}-%{release}

  

- %description -n python2-cairo-devel

+ %description devel

  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.

+ libraries so that they interoperate with python2-cairo.

  

  %prep

- %autosetup -p1

+ %autosetup -p1 -n pycairo-%{version}

  

  %build

  %py2_build

- %py3_build

  

  %install

  %py2_install

- %py3_install

  

- %check

- %{__python3} setup.py test

+ # No python2-pytest, no %%check

  

- %files -n python2-cairo

+ %files

  %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

+ %files devel

  %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

+ * Wed Nov  4 2020 Miro Hrončok <mhroncok@redhat.com> - 1.18.2-7

+ - Split python2-cairo to a separate component

+ 

  * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.2-6

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

  

Do not merge, this needs a separate component.

Use fedpkg request-repo python2-cairo --no-initial-commit --exception --monitor no-monitoring to request a repo to push this into. Once pushed, the source tarball needs to be uploaded again, because the lookaside cache is namespaced by component name.

Pull-Request has been closed by churchyard

2 years ago
Metadata