]>
Commit | Line | Data |
---|---|---|
7c8fcf35 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
16d42e4e | 4 | # TODO: |
16d42e4e WF |
5 | # - runtime Requires if any |
6 | # - python3 version | |
7 | # - .pyo etc | |
6ec08eba | 8 | %define kdeframever 5.111 |
f04a3d44 | 9 | %define qtver 5.15.2 |
a8d70c71 | 10 | %define kfname kapidox |
16d42e4e | 11 | Summary: Kapidox |
e31350bc | 12 | Name: kf5-%{kfname} |
6ec08eba | 13 | Version: 5.111.0 |
1077defd | 14 | Release: 1 |
16d42e4e WF |
15 | License: LGPL v2.1+ |
16 | Group: X11/Libraries | |
3e313e9a | 17 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
6ec08eba | 18 | # Source0-md5: 925c310d987dd65128771121634358d0 |
16d42e4e WF |
19 | URL: http://www.kde.org/ |
20 | BuildRequires: Qt5Core-devel >= 5.2.0 | |
21 | BuildRequires: Qt5DBus-devel >= 5.2.0 | |
22 | BuildRequires: Qt5Gui-devel >= 5.3.1 | |
23 | BuildRequires: Qt5Test-devel | |
24 | BuildRequires: Qt5Widgets-devel >= 5.2.0 | |
25 | BuildRequires: Qt5X11Extras-devel >= 5.2.0 | |
1bf6acf1 | 26 | BuildRequires: cmake >= 3.16 |
d0e6394a WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
28 | BuildRequires: ninja | |
16d42e4e WF |
29 | BuildRequires: rpm-pythonprov |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: sphinx-pdg | |
f1b4dd5a WF |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
16d42e4e | 34 | Requires: graphviz |
ce7ccf67 | 35 | Requires: kf5-dirs |
7f64ea36 | 36 | BuildArch: noarch |
16d42e4e WF |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %define qt5dir %{_libdir}/qt5 | |
40 | ||
41 | %description | |
42 | This framework contains scripts and data for building API | |
43 | documentation (dox) in a standard format and style. | |
44 | ||
45 | The Doxygen tool is used to do the actual documentation extraction and | |
46 | formatting, but this framework provides a wrapper script to make | |
47 | generating the documentation more convenient (including reading | |
48 | settings from the target framework or other module) and a standard | |
49 | template for the generated documentation. | |
50 | ||
51 | %prep | |
e31350bc | 52 | %setup -q -n %{kfname}-%{version} |
16d42e4e WF |
53 | |
54 | %build | |
7f64ea36 | 55 | %py3_build |
16d42e4e WF |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
7f64ea36 | 59 | %py3_install |
d5d605b0 | 60 | |
16d42e4e WF |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
41c4c8c2 WF |
66 | %attr(755,root,root) %{_bindir}/depdiagram_generate_all |
67 | %attr(755,root,root) %{_bindir}/kapidox-depdiagram-generate | |
68 | %attr(755,root,root) %{_bindir}/kapidox-depdiagram-prepare | |
69 | %attr(755,root,root) %{_bindir}/kapidox-generate | |
297351eb KM |
70 | %{py3_sitescriptdir}/kapidox/ |
71 | %{py3_sitescriptdir}/kapidox-*.egg-info |