%global framework libksane Name: kf5-libksane Summary: SANE Library interface for KDE Version: 16.12.3 Release: 1%{?dist} License: LGPLv2+ URL: https://quickgit.kde.org/?p=%{framework}.git %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{framework}-%{version}.tar.xz BuildRequires: extra-cmake-modules BuildRequires: gettext BuildRequires: kf5-kconfig-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kwallet-devel BuildRequires: kf5-kwidgetsaddons-devel BuildRequires: kf5-ktextwidgets-devel BuildRequires: kf5-rpm-macros BuildRequires: pkgconfig(libraw) >= 0.15 BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(sane-backends) Requires: kf5-filesystem %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -n %{framework}-%{version} %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %post /sbin/ldconfig touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || : %posttrans gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || : %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || : gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || : fi %files %doc AUTHORS %license COPYING.LIB %{_kf5_libdir}/libKF5Sane.so.5* %{_kf5_datadir}/icons/hicolor/*/actions/* %files devel %{_kf5_includedir}/KSane/ %{_kf5_includedir}/ksane_version.h %{_kf5_libdir}/libKF5Sane.so %{_kf5_libdir}/cmake/KF5Sane/ %changelog * Thu Mar 09 2017 Rex Dieter - 16.12.3-1 - 16.12.3 * Thu Feb 09 2017 Rex Dieter - 16.12.2-1 - 16.12.2 * Wed Jan 11 2017 Rex Dieter - 16.12.1-1 - 16.12.1 * Mon Dec 05 2016 Rex Dieter - 16.08.3-1 - 16.08.3 * Thu Oct 13 2016 Rex Dieter - 16.08.2-1 - 16.08.2 * Wed Sep 07 2016 Rex Dieter - 16.08.1-1 - 16.08.1 * Sat Aug 13 2016 Rex Dieter - 16.08.0-1 - 16.08.0 * Sat Aug 06 2016 Rex Dieter - 16.07.90-1 - 16.07.90 * Sat Jul 30 2016 Rex Dieter - 16.07.80-1 - 16.07.80 * Sun Jul 10 2016 Rex Dieter - 16.04.3-1 - 16.04.3 * Sun Jun 12 2016 Rex Dieter - 16.04.2-1 - 16.04.2 * Sun May 08 2016 Rex Dieter - 16.04.1-1 - 16.04.1 * Fri Apr 15 2016 Rex Dieter - 16.04.0-1 - 16.04.0 * Wed Mar 30 2016 Rex Dieter - 16.03.80-1 - 16.03.80 * Tue Mar 29 2016 Rex Dieter - 15.12.3-1 - 15.12.3 * Fri Feb 05 2016 Rex Dieter 15.12.1-1 - 15.12.1 * Wed Dec 30 2015 Rex Dieter 15.12.0-1 - 15.12.0, first try