kcolorpicker/kcolorpicker.spec

136 lines
3.8 KiB
RPMSpec

Name: kcolorpicker
Version: 0.3.1
Release: 2mamba
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
Patch0: kcolorpicker-0.3.1-rename-qt5-version.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt6-qtbase-devel
## 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}.
%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}.
%debug_package
%prep
%setup -q -c
mv kColorPicker-%{version} %{name}-qt5
cp -a %{name}-qt5 %{name}-qt6
cd %{name}-qt5
%patch 0 -p1 -b .rename-qt5-version
%build
cd %{name}-qt5
%cmake -d build
%make
cd ../../%{name}-qt6
%cmake -d build \
-DBUILD_WITH_QT6=ON
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C %{name}-qt5/build
%makeinstall -C %{name}-qt6/build
%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)
%{_libdir}/libkColorPicker-Qt5.so.*
%doc %{name}-qt5/LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/kColorPicker-Qt5
%dir %{_includedir}/kColorPicker-Qt5/kColorPicker
%{_includedir}/kColorPicker-Qt5/kColorPicker/*
%{_libdir}/libkColorPicker-Qt5.so
%dir %{_libdir}/cmake/kColorPicker-Qt5
%{_libdir}/cmake/kColorPicker-Qt5/kColorPicker*.cmake
%doc %{name}-qt5/README.md
%files -n lib%{name}-qt6
%defattr(-,root,root)
%{_libdir}/libkColorPicker.so.*
%doc %{name}-qt6/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-*.cmake
%{_libdir}/libkColorPicker.so
%changelog
* Sun Mar 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-2mamba
- remove compatibility cmake symlinks
* Sun Mar 03 2024 Automatic Build System <autodist@openmamba.org> 0.3.1-1mamba
- automatic version update by autodist
* 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
* Thu Aug 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.0-1mamba
- package created using the webbuild interface