python-gi-docgen/python-gi-docgen.spec

81 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-gi-docgen
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%define pythons python3
Name: python-gi-docgen
Version: 2022.2
Release: 0
Summary: Documentation tool for GObject-based libraries
License: Apache-2.0 AND GPL-3.0-or-later AND CC0-1.0
URL: https://gitlab.gnome.org/ebassi/gi-docgen
Source: https://files.pythonhosted.org/packages/source/g/gi-docgen/gi-docgen-%{version}.tar.gz
Accepting request 940788 from GNOME:Next - Add 114.patch: gir: Do not qualify type names that are already qualified. - Specify python-Markdown version to at least 3.2.0, because permalink_class options in TOC used by gi-docgen was introduced on 3.2.0: https://github.com/Python-Markdown/markdown/commit/1f3ec538a2acf25607253fc7c7a992950463931d - Update to version 2021.8: + Allow `id` fragments to link across namespace boundaries + Support links to have custom text + Decrease the max font size + Improve output for properties and signals + Save last search in the history + Don't crash on unlabelled array elements + Move type functions near constructors + Switch to Solarized for syntax highlighting + Use the C type for callback types in search results + Generate proper cross-reference links + Parse and use new gobject-introspection property attributes + Properly identify (type, gpointer) types + List the interface implementations in a namespace + List the class descendants in a namespace - Update to version 2021.7: + Add a "check" sub-command + Allow defining multiple content directories + Detect gtk-doc code blocks for JavaScript + Multiple changes to the basic template + Add in-page content navigation + Filter hidden data from indices + Allow defining hidden symbols matching a regular expression + Handle (attribute element-type) annotation for GListModel + Fix class method linking + Fix links to callback type arguments + Fix argument listing in class methods + Don't grab the 's' key when the sidebar is hidden + Index the extra content files for search + Fix gtk-doc sigil handling in code blocks + Re-instate gtk-doc `()` function detection - Switch to building only default flavour of python3. - Initial package, version 2021.2 OBS-URL: https://build.opensuse.org/request/show/940788 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gi-docgen?expand=0&rev=7
2021-12-17 22:39:11 +01:00
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module Markdown}
BuildRequires: %{python_module MarkupSafe}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module typogrify}
# /SECTION
BuildRequires: fdupes
Requires: python-Jinja2
Requires: python-Markdown > 3.2.0
Requires: python-MarkupSafe
Requires: python-Pygments
Requires: python-toml
Requires: python-typogrify
Suggests: python-coverage
Suggests: python-green
Obsoletes: python38-gi-docgen < %{version}
BuildArch: noarch
%python_subpackages
%description
Documentation tool for GObject-based libraries
%prep
Accepting request 940788 from GNOME:Next - Add 114.patch: gir: Do not qualify type names that are already qualified. - Specify python-Markdown version to at least 3.2.0, because permalink_class options in TOC used by gi-docgen was introduced on 3.2.0: https://github.com/Python-Markdown/markdown/commit/1f3ec538a2acf25607253fc7c7a992950463931d - Update to version 2021.8: + Allow `id` fragments to link across namespace boundaries + Support links to have custom text + Decrease the max font size + Improve output for properties and signals + Save last search in the history + Don't crash on unlabelled array elements + Move type functions near constructors + Switch to Solarized for syntax highlighting + Use the C type for callback types in search results + Generate proper cross-reference links + Parse and use new gobject-introspection property attributes + Properly identify (type, gpointer) types + List the interface implementations in a namespace + List the class descendants in a namespace - Update to version 2021.7: + Add a "check" sub-command + Allow defining multiple content directories + Detect gtk-doc code blocks for JavaScript + Multiple changes to the basic template + Add in-page content navigation + Filter hidden data from indices + Allow defining hidden symbols matching a regular expression + Handle (attribute element-type) annotation for GListModel + Fix class method linking + Fix links to callback type arguments + Fix argument listing in class methods + Don't grab the 's' key when the sidebar is hidden + Index the extra content files for search + Fix gtk-doc sigil handling in code blocks + Re-instate gtk-doc `()` function detection - Switch to building only default flavour of python3. - Initial package, version 2021.2 OBS-URL: https://build.opensuse.org/request/show/940788 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gi-docgen?expand=0&rev=7
2021-12-17 22:39:11 +01:00
%autosetup -n gi-docgen-%{version} -p1
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gi-docgen
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative gi-docgen
%postun
%python_uninstall_alternative gi-docgen
%files %{python_files}
%doc README.md
%license LICENSES LICENSES/Apache-2.0.txt LICENSES/GPL-3.0-or-later.txt
%python_alternative %{_bindir}/gi-docgen
%{python_sitelib}/*
%{_mandir}/man1/gi-docgen.1%{?ext_man}
%{_datadir}/pkgconfig/gi-docgen.pc
%changelog