]> git.pld-linux.org Git - packages/gi-docgen.git/blame - gi-docgen.spec
- updated to 2023.1
[packages/gi-docgen.git] / gi-docgen.spec
CommitLineData
bfbc6f98
JB
1#
2# Conditional build:
3%bcond_without doc # Sphinx documentation
4
5Summary: Documentation tool for GObject-based libraries
6Summary(pl.UTF-8): Narzędzie do dokumentowania bibliotek opartych na GObject
7Name: gi-docgen
a34c692b 8Version: 2023.1
49ee3322 9Release: 1
bfbc6f98
JB
10License: Apache v2.0 or GPL v3+
11Group: Development/Tools
a34c692b
JB
12Source0: https://download.gnome.org/sources/gi-docgen/2023/%{name}-%{version}.tar.xz
13# Source0-md5: a856428dce31c1b63fd466f4bef0fd35
45031a47 14URL: https://gitlab.gnome.org/GNOME/gi-docgen
bfbc6f98
JB
15BuildRequires: python3-modules >= 1:3.6
16BuildRequires: python3-setuptools
0a042c66
JB
17BuildRequires: rpm-pythonprov
18BuildRequires: rpmbuild(macros) >= 1.714
bfbc6f98 19BuildRequires: sed >= 4.0
45031a47
JB
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
bfbc6f98
JB
22%if %{with doc}
23BuildRequires: python3-Sphinx
24BuildRequires: python3-jinja2
49ee3322 25BuildRequires: python3-markdown >= 3.2
bfbc6f98
JB
26BuildRequires: python3-markupsafe
27BuildRequires: python3-pygments
28BuildRequires: python3-sphinx_rtd_theme
a34c692b
JB
29%if "%{py3_ver}" != "3.11"
30BuildRequires: python3-tomli
31%endif
bfbc6f98
JB
32BuildRequires: python3-typogrify
33%endif
34BuildArch: noarch
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38GI-Docgen is a document generator for GObject-based libraries. GObject
39is the base type system of the GNOME project. GI-Docgen reuses the
40introspection data generated by GObject-based libraries to generate
41the API reference of these libraries, as well as other ancillary
42documentation.
43
44%description -l pl.UTF-8
45GI-Docgen to generator dokumentacji do bibliotek opartych na
46bibliotece GObject. GObject to bazowy system typów projektu GNOME.
47GI-Docgen wykorzystuje dane introspekcji wygenerowane przez biblioteki
48oparte na GObject w celu wygenerowania dokumentacji API bibliotek, a
49także innej, dodatkowej dokumentacji.
50
51%package doc
52Summary: Documentation for GI-Docgen tool
53Summary(pl.UTF-8): Dokumentacja do narzędzia GI-Docgen
54Group: Documentation
55
56%description doc
57Documentation for GI-Docgen tool.
58
59%description doc -l pl.UTF-8
60Dokumentacja do narzędzia GI-Docgen.
61
62%prep
63%setup -q
bfbc6f98
JB
64
65%build
66%py3_build
67
68%if %{with doc}
69%{__make} -C docs
70%endif
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%py3_install
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files
81%defattr(644,root,root,755)
82%doc README.md
83%attr(755,root,root) %{_bindir}/gi-docgen
84%{py3_sitescriptdir}/gidocgen
85%{py3_sitescriptdir}/gi_docgen-%{version}-py*.egg-info
0a042c66 86%{_npkgconfigdir}/gi-docgen.pc
45031a47 87%{_mandir}/man1/gi-docgen.1*
bfbc6f98 88
8c3394d4 89%if %{with doc}
bfbc6f98
JB
90%files doc
91%defattr(644,root,root,755)
92%doc docs/_build/{_static,tools,*.html,*.js}
8c3394d4 93%endif
This page took 0.149027 seconds and 4 git commands to generate.