Name: spectacle Summary: Screenshot capture utility Version: 15.12.0 Release: 3%{?dist} License: GPLv2 URL: http://projects.kde.org/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 BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: kf5-kcoreaddons-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: libkscreen-qt5-devel BuildRequires: kf5-libkipi-devel BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(xcb-cursor) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-util) BuildRequires: pkgconfig(xcb-xfixes) %description %{summary}. %prep %autosetup %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} %check desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.spectacle.desktop %post touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || : %posttrans gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || : %postun 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 %license COPYING %{_kf5_bindir}/spectacle %{_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 %lang(en) %{_kf5_docdir}/HTML/en/spectacle/ %{_kf5_datadir}/icons/hicolor/*/apps/spectacle.* %{_kf5_datadir}/khotkeys/spectacle.khotkeys %{_kf5_datadir}/knotifications5/spectacle.notifyrc %changelog * 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