2019-05-19 16:52:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pycairo
|
|
|
|
#
|
2021-07-17 07:01:29 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-05-19 16:52:28 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-16 09:37:19 +00:00
|
|
|
%define skip_python2 1
|
2019-05-19 16:52:28 +00:00
|
|
|
%define oldpython python
|
|
|
|
Name: python-pycairo
|
2021-07-17 07:01:29 +00:00
|
|
|
Version: 1.20.1
|
2019-05-19 16:52:28 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Bindings for Cairo
|
|
|
|
License: LGPL-2.1-or-later OR MPL-1.1
|
2019-10-07 09:08:28 +00:00
|
|
|
URL: https://github.com/pygobject/pycairo
|
2019-05-19 16:52:28 +00:00
|
|
|
Source: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2020-03-16 09:47:23 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-12-03 16:51:03 +00:00
|
|
|
BuildRequires: cairo-devel >= 1.15.10
|
2019-05-19 16:52:28 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-05-21 16:29:43 +00:00
|
|
|
Provides: python-cairo = %{version}
|
|
|
|
Obsoletes: python-cairo < %{version}
|
2019-05-19 16:52:28 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pycairo is a Python module providing bindings for the cairo graphics library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the Cairo Python bindings
|
2019-10-07 09:08:28 +00:00
|
|
|
Requires: python-devel
|
2019-05-19 16:52:28 +00:00
|
|
|
Requires: python-pycairo = %{version}
|
|
|
|
Requires: python-pycairo-common-devel = %{version}
|
2019-05-21 16:29:43 +00:00
|
|
|
Provides: python-cairo-devel = %{version}
|
|
|
|
Obsoletes: python-cairo-devel < %{version}
|
2019-05-19 16:52:28 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Pycairo is a Python module providing bindings for the cairo graphics library.
|
|
|
|
|
|
|
|
This package provides the development files needed to build
|
2020-12-03 16:51:03 +00:00
|
|
|
packages that depend on Pycairo.
|
2019-05-19 16:52:28 +00:00
|
|
|
|
2019-05-21 20:23:40 +00:00
|
|
|
%package -n python-pycairo-common-devel
|
2019-05-19 16:52:28 +00:00
|
|
|
Summary: Headers for the Cairo Python bindings
|
2019-10-07 09:08:28 +00:00
|
|
|
Requires: cairo-devel
|
2019-05-19 16:52:28 +00:00
|
|
|
Provides: %{python_module cairo-common-devel = %{version}}
|
2019-10-07 09:08:28 +00:00
|
|
|
Provides: %{python_module pycairo-common-devel = %{version}}
|
2019-05-19 16:52:28 +00:00
|
|
|
Obsoletes: %{python_module cairo-common-devel < %{version}}
|
2021-08-12 11:49:08 +00:00
|
|
|
Provides: %{python_module cairo-devel = %{version}}
|
|
|
|
Obsoletes: %{python_module cairo-devel < %{version}}
|
2019-05-21 20:23:40 +00:00
|
|
|
Provides: python-cairo-common-devel = %{version}
|
|
|
|
Obsoletes: python-cairo-common-devel < %{version}
|
2019-05-19 16:52:28 +00:00
|
|
|
|
2019-05-21 20:23:40 +00:00
|
|
|
%description -n python-pycairo-common-devel
|
2019-05-19 16:52:28 +00:00
|
|
|
Pycairo is a Python module providing bindings for the cairo graphics library.
|
|
|
|
|
|
|
|
This package provides the headers and development files needed to build
|
2020-12-03 16:51:03 +00:00
|
|
|
packages that depend on Pycairo.
|
2019-05-19 16:52:28 +00:00
|
|
|
|
|
|
|
%prep
|
2019-10-07 09:08:28 +00:00
|
|
|
%setup -q -n pycairo-%{version}
|
2019-05-19 16:52:28 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
|
|
|
|
%check
|
2020-12-03 16:51:03 +00:00
|
|
|
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
|
2019-05-19 16:52:28 +00:00
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc NEWS docs
|
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
%{python_sitearch}/cairo/
|
2020-12-03 16:51:03 +00:00
|
|
|
%exclude %{python_sitearch}/cairo/include
|
2019-05-19 16:52:28 +00:00
|
|
|
%{python_sitearch}/pycairo-*.egg-info
|
|
|
|
|
|
|
|
%files %{python_files devel}
|
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
2020-12-03 16:51:03 +00:00
|
|
|
%{python_sitearch}/cairo/include
|
2019-05-19 16:52:28 +00:00
|
|
|
|
2019-05-21 20:23:40 +00:00
|
|
|
%files -n python-pycairo-common-devel
|
2019-05-19 16:52:28 +00:00
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
%{_includedir}/pycairo/
|
2020-12-03 16:51:03 +00:00
|
|
|
%{_libdir}/pkgconfig/py3cairo.pc
|
2019-05-19 16:52:28 +00:00
|
|
|
|
|
|
|
%changelog
|