]>
Commit | Line | Data |
---|---|---|
bfbc6f98 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Sphinx documentation | |
4 | ||
5 | Summary: Documentation tool for GObject-based libraries | |
6 | Summary(pl.UTF-8): Narzędzie do dokumentowania bibliotek opartych na GObject | |
7 | Name: gi-docgen | |
a34c692b | 8 | Version: 2023.1 |
49ee3322 | 9 | Release: 1 |
bfbc6f98 JB |
10 | License: Apache v2.0 or GPL v3+ |
11 | Group: Development/Tools | |
a34c692b JB |
12 | Source0: https://download.gnome.org/sources/gi-docgen/2023/%{name}-%{version}.tar.xz |
13 | # Source0-md5: a856428dce31c1b63fd466f4bef0fd35 | |
45031a47 | 14 | URL: https://gitlab.gnome.org/GNOME/gi-docgen |
bfbc6f98 JB |
15 | BuildRequires: python3-modules >= 1:3.6 |
16 | BuildRequires: python3-setuptools | |
0a042c66 JB |
17 | BuildRequires: rpm-pythonprov |
18 | BuildRequires: rpmbuild(macros) >= 1.714 | |
bfbc6f98 | 19 | BuildRequires: sed >= 4.0 |
45031a47 JB |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
bfbc6f98 JB |
22 | %if %{with doc} |
23 | BuildRequires: python3-Sphinx | |
24 | BuildRequires: python3-jinja2 | |
49ee3322 | 25 | BuildRequires: python3-markdown >= 3.2 |
bfbc6f98 JB |
26 | BuildRequires: python3-markupsafe |
27 | BuildRequires: python3-pygments | |
28 | BuildRequires: python3-sphinx_rtd_theme | |
a34c692b JB |
29 | %if "%{py3_ver}" != "3.11" |
30 | BuildRequires: python3-tomli | |
31 | %endif | |
bfbc6f98 JB |
32 | BuildRequires: python3-typogrify |
33 | %endif | |
34 | BuildArch: noarch | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | GI-Docgen is a document generator for GObject-based libraries. GObject | |
39 | is the base type system of the GNOME project. GI-Docgen reuses the | |
40 | introspection data generated by GObject-based libraries to generate | |
41 | the API reference of these libraries, as well as other ancillary | |
42 | documentation. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | GI-Docgen to generator dokumentacji do bibliotek opartych na | |
46 | bibliotece GObject. GObject to bazowy system typów projektu GNOME. | |
47 | GI-Docgen wykorzystuje dane introspekcji wygenerowane przez biblioteki | |
48 | oparte na GObject w celu wygenerowania dokumentacji API bibliotek, a | |
49 | także innej, dodatkowej dokumentacji. | |
50 | ||
51 | %package doc | |
52 | Summary: Documentation for GI-Docgen tool | |
53 | Summary(pl.UTF-8): Dokumentacja do narzędzia GI-Docgen | |
54 | Group: Documentation | |
55 | ||
56 | %description doc | |
57 | Documentation for GI-Docgen tool. | |
58 | ||
59 | %description doc -l pl.UTF-8 | |
60 | Dokumentacja 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 | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %py3_install | |
76 | ||
77 | %clean | |
78 | rm -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 |