From 6a8649fcdf3f7e23b4d929447901bb1dfb82460d Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 29 Mar 2024 18:57:20 +0100 Subject: [PATCH] automatic version update by autodist [release 24.02.1-1mamba;Sun Mar 24 2024] --- README.md | 2 -- libksane.spec | 97 +++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 71 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 158027c..81de358 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # libksane Libksane is a KDE interface for SANE library to control flat scanners. -This library is used by kipi-plugins, digiKam and others kipi host programs. -The library documentation is available on header files. diff --git a/libksane.spec b/libksane.spec index 7123cb5..cefcb69 100644 --- a/libksane.spec +++ b/libksane.spec @@ -1,5 +1,5 @@ Name: libksane -Version: 23.08.5 +Version: 24.02.1 Release: 1mamba Summary: SANE Library interface for KDE Group: Graphical Desktop/Libraries/KDE @@ -7,41 +7,56 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://kde.org/ -Source: http://download.kde.org/stable/release-service/%{version}/src/libksane-%{version}.tar.xz +Source: https://download.kde.org/%{stable_kde6}/release-service/%{version}/src/libksane-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc +BuildRequires: libglvnd-devel +BuildRequires: libkf6-ki18n-devel +BuildRequires: libkf6-ktextwidgets-devel +BuildRequires: libkf6-kwidgetsaddons-devel +BuildRequires: libkf6-sonnet-devel BuildRequires: libki18n-devel BuildRequires: libksanecore-devel +BuildRequires: libksanecore5-devel BuildRequires: libktextwidgets-devel BuildRequires: libkwallet-devel BuildRequires: libkwidgetsaddons-devel BuildRequires: libsonnet-devel BuildRequires: libstdc++6-devel BuildRequires: qt5-qtbase-devel +BuildRequires: qt6-qtbase-devel ## AUTOBUILDREQ-END BuildRequires: cmake BuildRequires: libksanecore-devel -Provides: libksane5 -Obsoletes: libksane5 < 21.04.0 %description Libksane is a KDE interface for SANE library to control flat scanners. -This library is used by kipi-plugins, digiKam and others kipi host programs. -The library documentation is available on header files. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -Provides: libksane5-devel -Obsoletes: libksane5-devel < 21.04.0 %description devel Libksane is a KDE interface for SANE library to control flat scanners. -This library is used by kipi-plugins, digiKam and others kipi host programs. -The library documentation is available on header files. +This package contains static libraries and header files needed for development. + +%package -n %{name}5 +Summary: SANE Library interface for KDE +Group: Graphical Desktop/Libraries/KDE + +%description -n %{name}5 +Libksane is a KDE interface for SANE library to control flat scanners. + +%package -n %{name}5-devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}5 = %{?epoch:%epoch:}%{version}-%{release} + +%description -n %{name}5-devel +Libksane is a KDE interface for SANE library to control flat scanners. This package contains static libraries and header files needed for development. %debug_package @@ -50,53 +65,83 @@ This package contains static libraries and header files needed for development. %setup -q %build -%cmake_kde5 -d build +%cmake_kf6 \ + -DQT_MAJOR_VERSION=6 + +%cmake_build + +%cmake -d build5 \ + -DQT_MAJOR_VERSION=5 + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall -C build +%makeinstall -C build5 -%find_lang %{name}5_qt --with-qt --all-name || touch %{name}5_qt.lang +%cmake_install + +%find_lang %{name} --with-qt --all-name || touch %{name}.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig -touch --no-create %{_kde5_icondir}/hicolor &>/dev/null +touch --no-create %{_kf6_icondir}/hicolor &>/dev/null exit 0 %posttrans /sbin/ldconfig -gtk-update-icon-cache %{_kde5_icondir}/hicolor &>/dev/null +gtk-update-icon-cache %{_kf6_icondir}/hicolor &>/dev/null exit 0 %postun /sbin/ldconfig if [ $1 -eq 0 ]; then - touch --no-create %{_kde5_icondir}/hicolor &>/dev/null - gtk-update-icon-cache %{_kde5_icondir}/hicolor &>/dev/null + touch --no-create %{_kf6_icondir}/hicolor &>/dev/null + gtk-update-icon-cache %{_kf6_icondir}/hicolor &>/dev/null fi exit 0 -%files -f %{name}5_qt.lang +%files -f %{name}.lang %defattr(-,root,root) -%{_kde5_libdir}/libKF5Sane.so.* -%{_datadir}/icons/hicolor/16x16/actions/*.png +%{_libdir}/libKSaneWidgets6.so.* %doc AUTHORS LICENSES %files devel %defattr(-,root,root) -%dir %{_kde5_includedir}/KSane -%{_kde5_includedir}/KSane/* -#%{_kde5_includedir}/ksane_version.h -%dir %{_kde5_libdir}/cmake/KF5Sane -%{_kde5_libdir}/cmake/KF5Sane/*.cmake -%{_kde5_libdir}/libKF5Sane.so +%dir %{_includedir}/KSaneWidgets6 +%{_includedir}/KSaneWidgets6/* +%dir %{_libdir}/cmake/KSaneWidgets6 +%{_libdir}/cmake/KSaneWidgets6/KSaneWidgets6*.cmake +%{_libdir}/libKSaneWidgets6.so %doc TODO +%files -n %{name}5 -f %{name}.lang +%defattr(-,root,root) +%{_kf6_libdir}/libKF5Sane.so.* +%{_datadir}/icons/hicolor/16x16/actions/*.png +%doc AUTHORS LICENSES + +%files -n %{name}5-devel +%defattr(-,root,root) +%dir %{_kde5_includedir}/KSane +%{_kde5_includedir}/KSane/* +%dir %{_kf6_libdir}/cmake/KF5Sane +%{_kf6_libdir}/cmake/KF5Sane/*.cmake +%{_kf6_libdir}/libKF5Sane.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 + +* Fri Mar 01 2024 Automatic Build System 24.02.0-1mamba +- automatic version update by autodist + * Fri Feb 16 2024 Automatic Build System 23.08.5-1mamba - automatic version update by autodist