]> git.pld-linux.org Git - packages/gi-docgen.git/blame - gi-docgen.spec
- added main patch (fix execution via egg entry_point)
[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
8Version: 2021.2
9Release: 1
10License: Apache v2.0 or GPL v3+
11Group: Development/Tools
12#Source0Download: https://gitlab.gnome.org/ebassi/gi-docgen/-/tags
13Source0: https://gitlab.gnome.org/ebassi/gi-docgen/-/archive/%{version}/%{name}-%{version}.tar.bz2
14# Source0-md5: d8c01aacbaefe8df4ffc9f8c67e51f21
0a042c66 15Patch0: %{name}-main.patch
bfbc6f98
JB
16URL: https://gitlab.gnome.org/ebassi/gi-docgen
17BuildRequires: python3-modules >= 1:3.6
18BuildRequires: python3-setuptools
0a042c66
JB
19BuildRequires: rpm-pythonprov
20BuildRequires: rpmbuild(macros) >= 1.714
bfbc6f98
JB
21BuildRequires: sed >= 4.0
22%if %{with doc}
23BuildRequires: python3-Sphinx
24BuildRequires: python3-jinja2
25BuildRequires: python3-markdown
26BuildRequires: python3-markupsafe
27BuildRequires: python3-pygments
28BuildRequires: python3-sphinx_rtd_theme
29BuildRequires: python3-toml
30BuildRequires: python3-typogrify
31%endif
32BuildArch: noarch
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36GI-Docgen is a document generator for GObject-based libraries. GObject
37is the base type system of the GNOME project. GI-Docgen reuses the
38introspection data generated by GObject-based libraries to generate
39the API reference of these libraries, as well as other ancillary
40documentation.
41
42%description -l pl.UTF-8
43GI-Docgen to generator dokumentacji do bibliotek opartych na
44bibliotece GObject. GObject to bazowy system typów projektu GNOME.
45GI-Docgen wykorzystuje dane introspekcji wygenerowane przez biblioteki
46oparte na GObject w celu wygenerowania dokumentacji API bibliotek, a
47także innej, dodatkowej dokumentacji.
48
49%package doc
50Summary: Documentation for GI-Docgen tool
51Summary(pl.UTF-8): Dokumentacja do narzędzia GI-Docgen
52Group: Documentation
53
54%description doc
55Documentation for GI-Docgen tool.
56
57%description doc -l pl.UTF-8
58Dokumentacja do narzędzia GI-Docgen.
59
60%prep
61%setup -q
0a042c66 62%patch0 -p1
bfbc6f98
JB
63
64%{__sed} -i -e '/^ *wheel$/d' setup.cfg
65
66%build
67%py3_build
68
69%if %{with doc}
70%{__make} -C docs
71%endif
72
73%install
74rm -rf $RPM_BUILD_ROOT
75
76%py3_install
77
0a042c66
JB
78install -d $RPM_BUILD_ROOT%{_npkgconfigdir}
79cat >$RPM_BUILD_ROOT%{_npkgconfigdir}/gi-docgen.pc <<EOF
80prefix=%{_prefix}
81bindir=%{_bindir}
82
83Name: gi-docgen
84Description: Documentation tool for GObject-based libraries
85Version: %{version}
86EOF
87
bfbc6f98
JB
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%files
92%defattr(644,root,root,755)
93%doc README.md
94%attr(755,root,root) %{_bindir}/gi-docgen
95%{py3_sitescriptdir}/gidocgen
96%{py3_sitescriptdir}/gi_docgen-%{version}-py*.egg-info
0a042c66 97%{_npkgconfigdir}/gi-docgen.pc
bfbc6f98
JB
98
99%files doc
100%defattr(644,root,root,755)
101%doc docs/_build/{_static,tools,*.html,*.js}
This page took 0.13016 seconds and 4 git commands to generate.