+#
+# Conditional build:
+%bcond_with tests # build with tests
# TODO:
# - runtime Requires if any
# - python3 version
# - .pyo etc
-%define kdeframever 5.62
-%define qtver 5.9.0
+%define kdeframever 5.104
+%define qtver 5.15.2
%define kfname kapidox
Summary: Kapidox
Name: kf5-%{kfname}
-Version: 5.62.0
-Release: 1
+Version: 5.104.0
+Release: 2
License: LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 389fbadf7e25573556891de7f9c052f1
+Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 2bec17db148bc7b90ac25a6021e7ae1f
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= 5.2.0
BuildRequires: Qt5DBus-devel >= 5.2.0
BuildRequires: xz
Requires: graphviz
Requires: kf5-dirs
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define qt5dir %{_libdir}/qt5
%setup -q -n %{kfname}-%{version}
%build
-install -d build
-cd build
-%cmake -G Ninja \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- ..
-%ninja_build
+%py3_build
%install
rm -rf $RPM_BUILD_ROOT
-%ninja_install -C build
+%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/depdiagram-generate
-%attr(755,root,root) %{_bindir}/depdiagram-generate-all
-%attr(755,root,root) %{_bindir}/depdiagram-prepare
-%attr(755,root,root) %{_bindir}/kapidox_generate
-#%%attr(755,root,root) %{_bindir}/kgenapidox
-#%%attr(755,root,root) %{_bindir}/kgenframeworksapidox
-%{py_sitedir}/kapidox
-%{py_sitedir}/kapidox-*.egg-info
-%{_mandir}/man1/depdiagram-generate-all.1*
-%{_mandir}/man1/depdiagram-generate.1*
-%{_mandir}/man1/depdiagram-prepare.1*
-#%%{_mandir}/man1/kgenapidox.1*
-#%%{_mandir}/man1/kgenframeworksapidox.1*
+%attr(755,root,root) %{_bindir}/depdiagram_generate_all
+%attr(755,root,root) %{_bindir}/kapidox-depdiagram-generate
+%attr(755,root,root) %{_bindir}/kapidox-depdiagram-prepare
+%attr(755,root,root) %{_bindir}/kapidox-generate
+%{py3_sitescriptdir}/kapidox/
+%{py3_sitescriptdir}/kapidox-*.egg-info