Name: spectacle Summary: Screenshot capture utility Version: 17.12.3 Release: 1%{?dist} License: GPLv2 URL: https://www.kde.org/applications/graphics/spectacle/ %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/%{name}-%{version}.tar.xz ## upstream patches %global majmin_ver %(echo %{version} | cut -d. -f1,2) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: kf5-kcoreaddons-devel BuildRequires: kf5-kdeclarative-devel BuildRequires: kf5-kwidgetsaddons-devel BuildRequires: kf5-kdbusaddons-devel BuildRequires: kf5-knotifications-devel BuildRequires: kf5-kconfig-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kio-devel BuildRequires: kf5-kxmlgui-devel BuildRequires: kf5-kwindowsystem-devel BuildRequires: kf5-kdoctools-devel BuildRequires: cmake(KF5Screen) BuildRequires: cmake(KF5Kipi) BuildRequires: kf5-libkipi-devel >= %{majmin_ver} BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: qt5-qtx11extras-devel BuildRequires: pkgconfig(xcb-cursor) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-util) BuildRequires: pkgconfig(xcb-xfixes) BuildRequires: cmake(KDEExperimentalPurpose) # f26+ upgrade path %if 0%{?fedora} > 25 Obsoletes: ksnapshot <= 15.08.3 %endif # translations moved here Conflicts: kde-l10n < 17.03 %description %{summary}. %prep %autosetup -p1 %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} %find_lang %{name} --all-name --with-html %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.spectacle.appdata.xml ||: desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.spectacle.desktop %files -f %{name}.lang %license COPYING %{_kf5_bindir}/spectacle %{_kf5_metainfodir}/org.kde.spectacle.appdata.xml %{_kf5_datadir}/applications/org.kde.spectacle.desktop %{_kf5_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml %{_kf5_datadir}/dbus-1/services/org.kde.Spectacle.service %{_kf5_datadir}/icons/hicolor/*/apps/spectacle.* %{_kf5_datadir}/khotkeys/spectacle.khotkeys %{_kf5_datadir}/knotifications5/spectacle.notifyrc %changelog * Tue Mar 06 2018 Rex Dieter - 17.12.3-1 - 17.12.3 * Thu Feb 08 2018 Rex Dieter - 17.12.2-1 - 17.12.2 * Thu Jan 18 2018 Igor Gnatenko - 17.12.1-2 - Remove obsolete scriptlets * Thu Jan 11 2018 Rex Dieter - 17.12.1-1 - 17.12.1 * Thu Dec 28 2017 Rex Dieter - 17.12.0-1 - 17.12.0 * Wed Nov 08 2017 Rex Dieter - 17.08.3-1 - 17.08.3 * Wed Oct 11 2017 Rex Dieter - 17.08.2-1 - 17.08.2 * Thu Sep 28 2017 Rex Dieter - 17.08.1-1 - 17.08.1 * Thu Aug 03 2017 Rex Dieter - 17.04.3-1 - 17.04.3 * Thu Aug 03 2017 Fedora Release Engineering - 17.04.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 17.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Rex Dieter - 17.04.2-1 - 17.04.2 * Thu May 11 2017 Rex Dieter - 17.04.1-1 - 17.04.1 * Fri May 05 2017 Rex Dieter - 17.04.0-1 - 17.04.0 * Thu Mar 09 2017 Rex Dieter - 16.12.3-1 - 16.12.3 * Mon Feb 20 2017 Rex Dieter - 16.12.2-2 - Obsoletes: ksnapshot (f26+) * Thu Feb 09 2017 Rex Dieter - 16.12.2-1 - 16.12.2 * Thu Jan 12 2017 Rex Dieter - 16.12.1-1 - 16.12.1 * Thu Jan 12 2017 Rex Dieter - 16.08.3-2 - update URL * 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 * Tue Apr 26 2016 Rex Dieter - 16.04.0-2 - backport upstream fixes * Fri Apr 15 2016 Rex Dieter - 16.04.0-1 - 16.04.0 * Thu Apr 14 2016 Rex Dieter - 16.03.80-1 - 16.03.80 * Sat Apr 09 2016 Rex Dieter - 15.12.3-2 - update URL, rebuild (libkscreen-qt5) * Tue Mar 15 2016 Rex Dieter - 15.12.3-1 - 15.12.3 * Mon Feb 15 2016 Rex Dieter - 15.12.2-1 - 15.12.2 * Fri Feb 05 2016 Fedora Release Engineering - 15.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 10 2016 Rex Dieter 15.12.0-2 - add icon scriptlets - License: GPLv2 - version: 15.12.0, so Source URL works (15.12.1 not publically available yet) * Sun Jan 10 2016 Rex Dieter 15.12.1-1 - spectacle-15.12.1