%define _disable_source_fetch 0
%define debug_package %{nil}

Name:           kf6-kdoctools
Version:        6.24.0
Release:        1%{?dist}
Summary:        KDE Frameworks 6 - Documentation tools

License:        LGPL-2.1-or-later
URL:            https://invent.kde.org/frameworks/kdoctools
Source0:        https://download.kde.org/stable/frameworks/6.24/kdoctools-%{version}.tar.xz

BuildRequires:  extra-cmake-modules
BuildRequires:  kf6-rpm-macros
BuildRequires:  qt6-qtbase-devel
BuildRequires:  qt6-qtdeclarative-devel
BuildRequires:  cmake(KF6Archive)
BuildRequires:  cmake(KF6I18n)
BuildRequires:  libxslt-devel
BuildRequires:  libxml2-devel
BuildRequires:  docbook-style-xsl
BuildRequires:  docbook-dtds
BuildRequires:  gcc-c++
BuildRequires:  perl-generators
BuildRequires:  perl(URI::Escape)

%description
KDocTools provides tools for generating documentation in various formats.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       qt6-qtbase-devel

%description    devel
Development files for %{name}.

%prep
%autosetup -n kdoctools-%{version} -p1

%build
%cmake_kf6
%cmake_build

%install
%cmake_install
%find_lang kdoctools6 --all-name || :

%files -f kdoctools6.lang
%license LICENSES/*
%{_libdir}/libKF6DocTools.so.*
%{_bindir}/meinproc6
%{_bindir}/checkXML6
%{_datadir}/kf6/kdoctools/
%{_mandir}/man1/meinproc6.1*
%{_mandir}/man1/checkXML6.1*
%{_mandir}/man7/*.7*
%{_mandir}/*/man1/*.1*
%{_mandir}/*/man7/*.7*
%{_datadir}/doc/HTML/*/

%files devel
%{_includedir}/KF6/KDocTools/
%{_libdir}/libKF6DocTools.so
%{_libdir}/cmake/KF6DocTools/

%changelog
* Tue Mar 24 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 6.24.0-1
- Initial release of kf6-kdoctools 6.24.0
