diff --git a/ksanecore.spec b/ksanecore.spec index 8065892..8ac9074 100644 --- a/ksanecore.spec +++ b/ksanecore.spec @@ -1,7 +1,7 @@ %define majver %(echo %version | cut -d. -f1-2) Name: ksanecore -Version: 23.08.5 +Version: 24.02.1 Release: 1mamba Summary: A library that provides a Qt interface for the SANE library for scanner hardware Group: System/Libraries @@ -14,9 +14,12 @@ License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc +BuildRequires: libglvnd-devel +BuildRequires: libkf6-ki18n-devel BuildRequires: libki18n-devel BuildRequires: libstdc++6-devel BuildRequires: qt5-qtbase-devel +BuildRequires: qt6-qtbase-devel BuildRequires: sane-backends-devel ## AUTOBUILDREQ-END BuildRequires: cmake @@ -43,17 +46,40 @@ 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}5 +Group: System/Libraries +Summary: A library that provides a Qt interface for the SANE library for scanner hardware. + +%description -n lib%{name}5 +KSaneCore is a library that provides a Qt interface for the SANE library for scanner hardware. +This package contains shared libraries for %{name}. + +%package -n lib%{name}5-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name}5 = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}5-devel +This package contains libraries and header files for developing applications that use %{name}. + + %debug_package %prep %setup -q %build -%cmake_kf6 +%cmake_kf6 \ + -DQT_MAJOR_VERSION=6 + %cmake_build +%cmake -d build5 +%make + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build5 %cmake_install %find_lang %{name} --with-qt --with-man --with-html --all-name || touch %{name}.lang @@ -62,15 +88,32 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig - %postun -n lib%{name} -p /sbin/ldconfig +%post -n lib%{name}5 -p /sbin/ldconfig +%postun -n lib%{name}5 -p /sbin/ldconfig + %files -n lib%{name} -f %{name}.lang %defattr(-,root,root) -%{_libdir}/libKSaneCore.so.* +%{_libdir}/libKSaneCore6.so.* +%doc LICENSES %files -n lib%{name}-devel %defattr(-,root,root) + +%dir %{_includedir}/KSaneCore6 +%{_includedir}/KSaneCore6/* +%dir %{_libdir}/cmake/KSaneCore6 +%{_libdir}/cmake/KSaneCore6/KSaneCore6*.cmake +%{_libdir}/libKSaneCore6.so + +%files -n lib%{name}5 -f %{name}.lang +%defattr(-,root,root) +%{_libdir}/libKSaneCore.so.* +%doc LICENSES + +%files -n lib%{name}5-devel +%defattr(-,root,root) %dir %{_includedir}/KSaneCore %{_includedir}/KSaneCore/* %dir %{_libdir}/cmake/KSaneCore @@ -78,6 +121,15 @@ This package contains libraries and header files for developing applications tha %{_libdir}/libKSaneCore.so %changelog +* Sun Mar 24 2024 Automatic Build System 24.02.1-1mamba +- automatic version update by autodist + +* Fri Mar 15 2024 Silvan Calarco 24.02.0-2mamba +- rebuilt with qt5 subpackages + +* Wed Feb 28 2024 Automatic Build System 24.02.0-1mamba +- automatic version update by autodist + * Thu Feb 15 2024 Automatic Build System 23.08.5-1mamba - automatic version update by autodist