%if (0%{?fedora} && 0%{?fedora} < 40) || (0%{?rhel} && 0%{?rhel} < 10) %bcond qt5 1 %bcond qt6 0 %else %bcond qt5 0 %bcond qt6 1 %endif Name: qaccessibilityclient Summary: Accessibility client library for Qt5 and Qt6 Version: 0.6.0 Release: 2%{?dist} License: CC0-1.0 AND LGPL-2.1-only AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only) URL: https://cgit.kde.org/libkdeaccessibilityclient.git/ Source0: https://download.kde.org/stable/libqaccessibilityclient/libqaccessibilityclient-%{version}.tar.xz ## upstream patches BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: extra-cmake-modules %if %{with qt5} BuildRequires: cmake(Qt5) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Widgets) BuildRequires: kf5-rpm-macros %endif %if %{with qt6} BuildRequires: cmake(Qt6) BuildRequires: cmake(Qt6DBus) BuildRequires: cmake(Qt6Widgets) BuildRequires: kf6-rpm-macros %endif BuildRequires: pkgconfig(xkbcommon) %description %{summary}. %if %{with qt5} %package qt5 Summary: Accessibility client library for Qt5 Provides: libqaccessibilityclient = %{version}-%{release} Obsoletes: %{name} < %{version}-%{release} %description qt5 %{summary}. %package qt5-devel Summary: Development files for %{name}-qt5 Provides: libqaccessibilityclient-devel = %{version}-%{release} Obsoletes: %{name}-devel < %{version}-%{release} Requires: %{name}-qt5%{?_isa} = %{version}-%{release} Requires: qt5-qtbase-devel %description qt5-devel %{summary}. %files qt5 %doc AUTHORS README.md %license LICENSES/* %{_libdir}/libqaccessibilityclient-qt5.so.0* %{_datadir}/qlogging-categories5/libqaccessibilityclient.categories %files qt5-devel %{_includedir}/QAccessibilityClient/ %{_libdir}/cmake/QAccessibilityClient/ %{_libdir}/libqaccessibilityclient-qt5.so %endif %if %{with qt6} %package qt6 Summary: Accessibility client library for Qt6 Obsoletes: %{name} < %{version}-%{release} %description qt6 %{summary}. %package qt6-devel Summary: Development files for %{name}-qt6 Obsoletes: %{name}-devel < %{version}-%{release} Requires: %{name}-qt6%{?_isa} = %{version}-%{release} Requires: qt6-qtbase-devel %description qt6-devel %{summary}. %files qt6 %doc AUTHORS README.md %license LICENSES/* %{_libdir}/libqaccessibilityclient-qt6.so.0* %{_datadir}/qlogging-categories6/libqaccessibilityclient.categories %files qt6-devel %{_includedir}/QAccessibilityClient6/ %{_libdir}/cmake/QAccessibilityClient6/ %{_libdir}/libqaccessibilityclient-qt6.so %endif %prep %autosetup -n libqaccessibilityclient-%{version} -p1 %build %if %{with qt5} mkdir qt5 pushd qt5 %cmake_kf5 -S .. %cmake_build popd %endif %if %{with qt6} mkdir qt6 pushd qt6 %cmake_kf6 -S .. \ -DQT_MAJOR_VERSION=6 %cmake_build popd %endif %install %if %{with qt5} pushd qt5 %cmake_install popd %endif %if %{with qt6} pushd qt6 %cmake_install popd %endif %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Mar 1 2024 Marie Loise Nolden - 0.6.0-1 - 0.6.0 - Build Qt5 or Qt6 variants depending on the platform * Fri Jan 26 2024 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 6 2023 Steve Cossette - 0.5.0-1 - 0.5.0 * Fri Jul 21 2023 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Apr 01 2021 Rex Dieter - 0.4.1-1 - 0.4.1, Qt5 support * Wed Jan 27 2021 Fedora Release Engineering - 0.1.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.1.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.1.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.1.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue May 21 2019 Rex Dieter - 0.1.1-15 - cleanup, use %%make_build - drop Provides: libqaccessibilityclient - drop qt5 support (to be packaged separately) * Sat Feb 02 2019 Fedora Release Engineering - 0.1.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.1.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 16 2018 Than Ngo - - 0.1.1-12 - fixed FTBS * Fri Feb 09 2018 Fedora Release Engineering - 0.1.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 20 2017 Rex Dieter - 0.1.1-8 - pull in upstream fixes - initial support for Qt5 build (not enabled yet) - .spec cosmetics: update URL, use %%license * Sat Feb 11 2017 Fedora Release Engineering - 0.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.1.1-4 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 0.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 12 2014 Rex Dieter - 0.1.1-1 - 1.1.1 release - support QT4_BUILD option - fix dso patch - Provides: libqaccessibilityclient(-devel) * Sun Aug 04 2013 Fedora Release Engineering - 0.1.0-0.3.20121113git - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 13 2013 Rex Dieter 0.1.0-0.2.20121113git - fix changelog - -devel: +Requires: cmake qt4-devel - link QT_QTGUI_LIBRARY for undefined symbols - s/Url/URL/ - don't package accessibleapps * Sat Feb 02 2013 Rex Dieter 0.1.0-0.1.20121113git - adapt for fedora - fresh snapshot * Sat Nov 10 2012 alinm.elena@gmail.com - initial commit