%global appname kColorPicker %global libname lib%{appname} Name: kcolorpicker Version: 0.3.0 Release: 4%{?dist} License: LGPL-3.0-or-later Summary: QToolButton control with color popup menu URL: https://github.com/ksnip/%{appname} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) %description QToolButton with color popup menu which lets you select a color. The popup features a color dialog button which can be used to add custom colors to the popup menu. %package qt5 Summary: QToolButton control with color popup menu (Qt5) Provides: kcolorpicker = %{version}-%{release} Obsoletes: %{name} < %{version}-%{release} %description qt5 %{summary}. %package qt5-devel Summary: Qt5 Development files for %{name} Provides: kcolorpicker-devel = %{version}-%{release} Obsoletes: %{name}-devel < %{version}-%{release} Requires: %{name}-qt5%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: qt5-qtbase-devel %description qt5-devel %{summary}. %package qt6 Summary: QToolButton control with color popup menu (Qt6) %description qt6 %{summary}. %package qt6-devel Summary: Qt6 Development files for %{name} Requires: %{name}-qt6%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: qt6-qtbase-devel %description qt6-devel %{summary}. %prep %autosetup -n %{appname}-%{version} -p1 %build mkdir qt5 pushd qt5 %cmake -G Ninja \ -S'..' \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTS:BOOL=OFF \ -DBUILD_EXAMPLE:BOOL=OFF %cmake_build popd mkdir qt6 pushd qt6 %cmake -G Ninja \ -S'..' \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTS:BOOL=OFF \ -DBUILD_EXAMPLE:BOOL=OFF \ -DBUILD_WITH_QT6:BOOL=ON %cmake_build popd %install pushd qt5 %cmake_install popd pushd qt6 %cmake_install popd %files qt5 %doc README.md %license LICENSE %{_libdir}/%{libname}-Qt5.so.0* %files qt5-devel %{_includedir}/%{appname}-Qt5/ %{_libdir}/cmake/%{appname}-Qt5/ %{_libdir}/%{libname}-Qt5.so %files qt6 %doc README.md %license LICENSE %{_libdir}/%{libname}-Qt6.so.0* %files qt6-devel %{_includedir}/%{appname}-Qt6/ %{_libdir}/cmake/%{appname}-Qt6/ %{_libdir}/%{libname}-Qt6.so %changelog * Thu Jul 18 2024 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Mar 02 2024 Marie Loise Nolden - 0.3.0-3 - rename qt5 versions * Wed Jan 24 2024 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Marie Loise Nolden - 0.3.0-1 - update to 0.3.0 * Sun Jan 21 2024 Fedora Release Engineering - 0.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 23 2022 Vitaly Zaitsev - 0.2.0-1 - Updated to version 0.2.0. * Thu Jan 20 2022 Fedora Release Engineering - 0.1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue May 25 2021 Vitaly Zaitsev - 0.1.6-1 - Updated to version 0.1.6. * Mon Feb 15 2021 Vitaly Zaitsev - 0.1.5-1 - Updated to version 0.1.5. * Tue Jan 26 2021 Fedora Release Engineering - 0.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Vitaly Zaitsev - 0.1.4-1 - Initial SPEC release.