From 7f9c821f8017dce9c49b9d4eb1b567949c541017 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:53:15 +0100 Subject: [PATCH] rename from libksane5 and add provides/obsoletes [release 20.08.1-2mamba;Wed Sep 09 2020] --- libksane.spec | 234 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 208 insertions(+), 26 deletions(-) diff --git a/libksane.spec b/libksane.spec index 616e275..fcdb30d 100644 --- a/libksane.spec +++ b/libksane.spec @@ -1,24 +1,30 @@ Name: libksane -Version: 15.04.3 -Release: 1mamba +Version: 20.08.1 +Release: 2mamba Summary: SANE Library interface for KDE Group: Graphical Desktop/Libraries/KDE Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.kde.org -Source: http://download.kde.org/stable/applications/%{version}/src/libksane-%{version}.tar.xz +Source: http://download.kde.org/stable/release-service/%{version}/src/libksane-%{version}.tar.xz License: GPL -BuildRequires: cmake ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: kdelibs-devel -BuildRequires: kde-runtime-devel +BuildRequires: ldconfig BuildRequires: libgcc -BuildRequires: libqt4-devel +BuildRequires: libki18n-devel +BuildRequires: libktextwidgets-devel +BuildRequires: libkwallet-devel +BuildRequires: libkwidgetsaddons-devel +BuildRequires: libqt5-devel BuildRequires: libsane-backends-devel +BuildRequires: libsonnet-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END +BuildRequires: cmake +Provides: libksane5 +Obsoletes: libksane5 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -30,66 +36,242 @@ The library documentation is available on header files. Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: libksane5-devel +Obsoletes: libksane5-devel %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. -This package contains static libraries and header files need for development. +%debug_package %prep %setup -q %build -%cmake_kde4 -d build +%cmake_kde5 -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build -install -d %{buildroot}%{_libdir}/pkgconfig -mv %{buildroot}%{_kde4_libdir}/pkgconfig/*.pc \ - %{buildroot}%{_libdir}/pkgconfig/ +%find_lang %{name}5_qt --with-qt --all-name || touch %{name}5_qt.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig -touch --no-create %{_kde4_icondir}/hicolor &>/dev/null +touch --no-create %{_kde5_icondir}/hicolor &>/dev/null exit 0 %posttrans /sbin/ldconfig -gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null +gtk-update-icon-cache %{_kde5_icondir}/hicolor &>/dev/null exit 0 %postun /sbin/ldconfig if [ $1 -eq 0 ]; then - touch --no-create %{_kde4_icondir}/hicolor &>/dev/null - gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null + touch --no-create %{_kde5_icondir}/hicolor &>/dev/null + gtk-update-icon-cache %{_kde5_icondir}/hicolor &>/dev/null fi exit 0 -%files +%files -f %{name}5_qt.lang %defattr(-,root,root) -%{_kde4_icondir}/hicolor/*/actions/black-white.png -%{_kde4_icondir}/hicolor/*/actions/color.png -%{_kde4_icondir}/hicolor/*/actions/gray-scale.png -%{_kde4_libdir}/libksane.so.* -%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO +%{_kde5_libdir}/libKF5Sane.so.* +%{_datadir}/icons/hicolor/16x16/actions/*.png +%doc AUTHORS COPYING COPYING.LIB %files devel %defattr(-,root,root) -%{_kde4_includedir}/libksane/*.h -%{_kde4_libdir}/cmake/KSane/KSaneConfig.cmake -%{_kde4_libdir}/libksane.so -%{_libdir}/pkgconfig/libksane.pc +%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 +%doc ChangeLog NEWS TODO %changelog +* Wed Sep 09 2020 Silvan Calarco 20.08.1-2mamba +- rename from libksane5 and add provides/obsoletes + +* Fri Sep 04 2020 Automatic Build System 20.08.1-1mamba +- automatic version update by autodist + +* Sat Aug 15 2020 Automatic Build System 20.08.0-1mamba +- automatic version update by autodist + +* Fri Jul 10 2020 Automatic Build System 20.04.3-1mamba +- automatic version update by autodist + +* Fri Jun 12 2020 Automatic Build System 20.04.2-1mamba +- automatic version update by autodist + +* Sat May 16 2020 Automatic Build System 20.04.1-1mamba +- automatic version update by autodist + +* Fri Apr 24 2020 Automatic Build System 20.04.0-1mamba +- automatic version update by autodist + +* Thu Mar 05 2020 Automatic Build System 19.12.3-1mamba +- automatic version update by autodist + +* Fri Feb 07 2020 Automatic Build System 19.12.2-1mamba +- automatic version update by autodist + +* Fri Jan 10 2020 Automatic Build System 19.12.1-1mamba +- automatic version update by autodist + +* Mon Dec 30 2019 Automatic Build System 19.12.0-1mamba +- automatic version update by autodist + +* Fri Nov 08 2019 Automatic Build System 19.08.3-1mamba +- automatic version update by autodist + +* Fri Oct 11 2019 Automatic Build System 19.08.2-1mamba +- automatic version update by autodist + +* Tue Sep 10 2019 Automatic Build System 19.08.1-1mamba +- automatic version update by autodist + +* Thu Aug 29 2019 Automatic Build System 19.08.0-1mamba +- automatic version update by autodist + +* Fri Jul 12 2019 Automatic Build System 19.04.3-1mamba +- automatic version update by autodist + +* Fri Jun 07 2019 Automatic Build System 19.04.2-1mamba +- automatic version update by autodist + +* Sat May 11 2019 Automatic Build System 19.04.1-1mamba +- automatic version update by autodist + +* Fri Apr 19 2019 Automatic Build System 19.04.0-1mamba +- automatic version update by autodist + +* Thu Mar 07 2019 Automatic Build System 18.12.3-1mamba +- automatic version update by autodist + +* Sat Feb 09 2019 Automatic Build System 18.12.2-1mamba +- automatic version update by autodist + +* Fri Jan 11 2019 Automatic Build System 18.12.1-1mamba +- automatic version update by autodist + +* Sat Dec 15 2018 Automatic Build System 18.12.0-1mamba +- automatic version update by autodist + +* Mon Nov 12 2018 Automatic Build System 18.08.3-1mamba +- automatic version update by autodist + +* Fri Oct 12 2018 Automatic Build System 18.08.2-1mamba +- automatic version update by autodist + +* Thu Sep 06 2018 Automatic Build System 18.08.1-1mamba +- automatic version update by autodist + +* Sat Aug 18 2018 Automatic Build System 18.08.0-1mamba +- automatic version update by autodist + +* Fri Jul 13 2018 Automatic Build System 18.04.3-1mamba +- automatic version update by autodist + +* Fri Jun 08 2018 Automatic Build System 18.04.2-1mamba +- automatic version update by autodist + +* Thu May 10 2018 Automatic Build System 18.04.1-1mamba +- automatic version update by autodist + +* Sun Apr 22 2018 Automatic Build System 18.04.0-1mamba +- automatic version update by autodist + +* Fri Mar 09 2018 Automatic Build System 17.12.3-1mamba +- automatic version update by autodist + +* Fri Feb 09 2018 Automatic Build System 17.12.2-1mamba +- automatic version update by autodist + +* Fri Jan 12 2018 Automatic Build System 17.12.1-1mamba +- automatic version update by autodist + +* Thu Dec 21 2017 Automatic Build System 17.12.0-1mamba +- automatic version update by autodist + +* Fri Nov 10 2017 Automatic Build System 17.08.3-1mamba +- automatic version update by autodist + +* Thu Oct 12 2017 Automatic Build System 17.08.2-1mamba +- automatic version update by autodist + +* Fri Sep 08 2017 Automatic Build System 17.08.1-1mamba +- automatic version update by autodist + +* Tue Aug 22 2017 Automatic Build System 17.08.0-1mamba +- automatic version update by autodist + +* Wed Aug 09 2017 Automatic Build System 17.04.3-1mamba +- automatic version update by autodist + +* Fri Mar 10 2017 Automatic Build System 16.12.3-1mamba +- automatic version update by autodist + +* Fri Feb 10 2017 Automatic Build System 16.12.2-1mamba +- automatic version update by autodist + +* Fri Jan 13 2017 Automatic Build System 16.12.1-1mamba +- automatic version update by autodist + +* Sun Dec 18 2016 Automatic Build System 16.12.0-1mamba +- automatic version update by autodist + +* Fri Nov 11 2016 Automatic Build System 16.08.3-1mamba +- automatic version update by autodist + +* Fri Oct 14 2016 Automatic Build System 16.08.2-1mamba +- automatic version update by autodist + +* Fri Sep 09 2016 Automatic Build System 16.08.1-1mamba +- automatic version update by autodist + +* Fri Aug 26 2016 Silvan Calarco 16.08.0-1mamba +- automatic version update by autodist + +* Wed Jul 13 2016 Automatic Build System 16.04.3-1mamba +- automatic version update by autodist + +* Wed Jun 15 2016 Automatic Build System 16.04.2-1mamba +- automatic version update by autodist + +* Mon May 16 2016 Automatic Build System 16.04.1-1mamba +- automatic version update by autodist + +* Tue Feb 16 2016 Automatic Build System 15.12.2-1mamba +- automatic version update by autodist + +* Tue Jan 12 2016 Automatic Build System 15.12.1-1mamba +- automatic version update by autodist + +* Fri Jan 01 2016 Silvan Calarco 15.12.0-2mamba +- renamed from libksane to libksane5 + +* Fri Dec 25 2015 Automatic Build System 15.12.0-1mamba +- automatic version update by autodist + +* Tue Oct 13 2015 Automatic Build System 15.08.2-1mamba +- automatic version update by autodist + +* Sun Sep 20 2015 Automatic Build System 15.08.1-1mamba +- automatic version update by autodist + +* Sun Aug 23 2015 Automatic Build System 15.08.0-1mamba +- automatic version update by autodist + * Thu Jul 02 2015 Automatic Build System 15.04.3-1mamba - automatic version update by autodist