- separate cffi-doc subpackage to break build loop leading to Sphinx OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cffi?expand=0&rev=32
53 lines
1.7 KiB
RPMSpec
53 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package python-cffi-doc
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-cffi-doc
|
|
Version: 1.9.1
|
|
Release: 0
|
|
Summary: Documentation for Foreign Function Interface in Python
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://cffi.readthedocs.org
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
|
|
BuildRequires: python3-Sphinx
|
|
Provides: %{python_module cffi-doc = %{version}}
|
|
Supplements: %{python_module cffi = %{version}}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Foreign Function Interface for Python calling C code. The aim of this project
|
|
is to provide a convenient and reliable way of calling C code from Python.
|
|
|
|
This package provides the HTML documentation for Python cffi module.
|
|
|
|
%prep
|
|
%setup -q -n cffi-%{version}
|
|
|
|
%build
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
%install
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE build/sphinx/html
|
|
|
|
%changelog
|