[packages/gi-docgen] - new

qboosh qboosh at pld-linux.org
Fri Mar 12 18:50:02 CET 2021


commit bfbc6f984d19f1c2ec9419498b80dc8d6c99f7ea
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 12 18:51:00 2021 +0100

    - new

 gi-docgen.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
---
diff --git a/gi-docgen.spec b/gi-docgen.spec
new file mode 100644
index 0000000..fdf6d86
--- /dev/null
+++ b/gi-docgen.spec
@@ -0,0 +1,86 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+
+Summary:	Documentation tool for GObject-based libraries
+Summary(pl.UTF-8):	Narzędzie do dokumentowania bibliotek opartych na GObject
+Name:		gi-docgen
+Version:	2021.2
+Release:	1
+License:	Apache v2.0 or GPL v3+
+Group:		Development/Tools
+#Source0Download: https://gitlab.gnome.org/ebassi/gi-docgen/-/tags
+Source0:	https://gitlab.gnome.org/ebassi/gi-docgen/-/archive/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	d8c01aacbaefe8df4ffc9f8c67e51f21
+URL:		https://gitlab.gnome.org/ebassi/gi-docgen
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+BuildRequires:	sed >= 4.0
+%if %{with doc}
+BuildRequires:	python3-Sphinx
+BuildRequires:	python3-jinja2
+BuildRequires:	python3-markdown
+BuildRequires:	python3-markupsafe
+BuildRequires:	python3-pygments
+BuildRequires:	python3-sphinx_rtd_theme
+BuildRequires:	python3-toml
+BuildRequires:	python3-typogrify
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GI-Docgen is a document generator for GObject-based libraries. GObject
+is the base type system of the GNOME project. GI-Docgen reuses the
+introspection data generated by GObject-based libraries to generate
+the API reference of these libraries, as well as other ancillary
+documentation.
+
+%description -l pl.UTF-8
+GI-Docgen to generator dokumentacji do bibliotek opartych na
+bibliotece GObject. GObject to bazowy system typów projektu GNOME.
+GI-Docgen wykorzystuje dane introspekcji wygenerowane przez biblioteki
+oparte na GObject w celu wygenerowania dokumentacji API bibliotek, a
+także innej, dodatkowej dokumentacji.
+
+%package doc
+Summary:	Documentation for GI-Docgen tool
+Summary(pl.UTF-8):	Dokumentacja do narzędzia GI-Docgen
+Group:		Documentation
+
+%description doc
+Documentation for GI-Docgen tool.
+
+%description doc -l pl.UTF-8
+Dokumentacja do narzędzia GI-Docgen.
+
+%prep
+%setup -q
+
+%{__sed} -i -e '/^ *wheel$/d' setup.cfg
+
+%build
+%py3_build
+
+%if %{with doc}
+%{__make} -C docs
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/gi-docgen
+%{py3_sitescriptdir}/gidocgen
+%{py3_sitescriptdir}/gi_docgen-%{version}-py*.egg-info
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/_build/{_static,tools,*.html,*.js}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gi-docgen.git/commitdiff/bfbc6f984d19f1c2ec9419498b80dc8d6c99f7ea



More information about the pld-cvs-commit mailing list