2024-01-06 00:49:18 +01:00
|
|
|
Name: kcolorpicker
|
2024-01-27 18:17:44 +01:00
|
|
|
Version: 0.3.0
|
|
|
|
Release: 3mamba
|
2024-01-06 00:49:18 +01:00
|
|
|
Summary: Qt based Color Picker with popup menu
|
|
|
|
Group: Applications/Graphics
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/ksnip/kColorPicker
|
|
|
|
Source: https://github.com/ksnip/kColorPicker.git/v%{version}/kColorPicker-%{version}.tar.bz2
|
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-27 18:17:44 +01:00
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-06 00:49:18 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
2024-01-27 18:17:44 +01:00
|
|
|
BuildRequires: qt6-qtbase-devel
|
2024-01-06 00:49:18 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qt based Color Picker with popup menu.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-27 18:17:44 +01:00
|
|
|
%package -n lib%{name}-qt6
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}-qt6
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-qt6-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name}-qt6 = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-qt6-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 00:49:18 +01:00
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n kColorPicker-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build
|
|
|
|
%make
|
2024-01-27 18:17:44 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
%cmake -d build-qt6 \
|
|
|
|
-DBUILD_WITH_QT6=ON
|
|
|
|
|
|
|
|
%make
|
2024-01-06 00:49:18 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
2024-01-27 18:17:44 +01:00
|
|
|
%makeinstall -C build-qt6
|
|
|
|
|
|
|
|
# Symlinks for backwards compatibility
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/cmake/kColorPicker
|
|
|
|
ln -s ../kColorPicker-Qt5/kColorPicker-Qt5Config.cmake %{buildroot}%{_libdir}/cmake/kColorPicker/kColorPickerConfig.cmake
|
|
|
|
ln -s ../kColorPicker-Qt5/kColorPicker-Qt5Config-version.cmake %{buildroot}%{_libdir}/cmake/kColorPicker/kColorPickerConfig-version.cmake
|
|
|
|
ln -s ../kColorPicker-Qt5/kColorPicker-Qt5-targets.cmake %{buildroot}%{_libdir}/cmake/kColorPicker/
|
|
|
|
ln -s ../kColorPicker-Qt5/kColorPicker-Qt5-targets-noconfig.cmake %{buildroot}%{_libdir}/cmake/kColorPicker/
|
2024-01-06 00:49:18 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
2024-01-27 18:17:44 +01:00
|
|
|
%{_libdir}/libkColorPicker-Qt5.so.*
|
2024-01-06 00:49:18 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-27 18:17:44 +01:00
|
|
|
%dir %{_includedir}/kColorPicker-Qt5
|
|
|
|
%dir %{_includedir}/kColorPicker-Qt5/kColorPicker
|
|
|
|
%{_includedir}/kColorPicker-Qt5/kColorPicker/*
|
|
|
|
%{_libdir}/libkColorPicker-Qt5.so
|
2024-01-06 00:49:18 +01:00
|
|
|
%dir %{_libdir}/cmake/kColorPicker
|
|
|
|
%{_libdir}/cmake/kColorPicker/kColorPicker*.cmake
|
2024-01-27 18:17:44 +01:00
|
|
|
%dir %{_libdir}/cmake/kColorPicker-Qt5
|
|
|
|
%{_libdir}/cmake/kColorPicker-Qt5/kColorPicker*.cmake
|
2024-01-06 00:49:18 +01:00
|
|
|
%doc README.md
|
|
|
|
|
2024-01-27 18:17:44 +01:00
|
|
|
%files -n lib%{name}-qt6
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libkColorPicker-Qt6.so.*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-qt6-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/kColorPicker-Qt6/kColorPicker
|
|
|
|
%{_includedir}/kColorPicker-Qt6/kColorPicker/*
|
|
|
|
%dir %{_libdir}/cmake/kColorPicker-Qt6
|
|
|
|
%{_libdir}/cmake/kColorPicker-Qt6/kColorPicker-Qt6*.cmake
|
|
|
|
%{_libdir}/libkColorPicker-Qt6.so
|
|
|
|
|
2024-01-06 00:49:18 +01:00
|
|
|
%changelog
|
2024-01-27 18:17:44 +01:00
|
|
|
* Sat Jan 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-3mamba
|
|
|
|
- further fix of legacy symlinks
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-2mamba
|
|
|
|
- fixed legacy cmake symlinks
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Automatic Build System <autodist@openmamba.org> 0.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:49:18 +01:00
|
|
|
* Thu Aug 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.0-1mamba
|
|
|
|
- package created using the webbuild interface
|