|
|
|
|
|
|
|
Name: spectacle
|
|
|
|
Summary: Screenshot capture utility
|
|
|
|
Version: 16.12.2
|
|
|
|
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: 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: libappstream-glib
|
|
|
|
BuildRequires: libkscreen-qt5-devel
|
|
|
|
BuildRequires: kf5-libkipi-devel >= %{majmin_ver}
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
|
BuildRequires: pkgconfig(xcb-cursor)
|
|
|
|
BuildRequires: pkgconfig(xcb-image)
|
|
|
|
BuildRequires: pkgconfig(xcb-util)
|
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/org.kde.spectacle.appdata.xml ||:
|
|
|
|
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}/appdata/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
|
|
|
|
%lang(en) %{_kf5_docdir}/HTML/en/spectacle/
|
|
|
|
%{_kf5_datadir}/icons/hicolor/*/apps/spectacle.*
|
|
|
|
%{_kf5_datadir}/khotkeys/spectacle.khotkeys
|
|
|
|
%{_kf5_datadir}/knotifications5/spectacle.notifyrc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Feb 09 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.2-1
|
|
|
|
- 16.12.2
|
|
|
|
|
|
|
|
* Thu Jan 12 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.1-1
|
|
|
|
- 16.12.1
|
|
|
|
|
|
|
|
* Thu Jan 12 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.08.3-2
|
|
|
|
- update URL
|
|
|
|
|
|
|
|
* Mon Dec 05 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.3-1
|
|
|
|
- 16.08.3
|
|
|
|
|
|
|
|
* Thu Oct 13 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.2-1
|
|
|
|
- 16.08.2
|
|
|
|
|
|
|
|
* Wed Sep 07 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.1-1
|
|
|
|
- 16.08.1
|
|
|
|
|
|
|
|
* Sat Aug 13 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.0-1
|
|
|
|
- 16.08.0
|
|
|
|
|
|
|
|
* Sat Aug 06 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.07.90-1
|
|
|
|
- 16.07.90
|
|
|
|
|
|
|
|
* Sat Jul 30 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.07.80-1
|
|
|
|
- 16.07.80
|
|
|
|
|
|
|
|
* Sun Jul 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.04.3-1
|
|
|
|
- 16.04.3
|
|
|
|
|
|
|
|
* Sun Jun 12 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.04.2-1
|
|
|
|
- 16.04.2
|
|
|
|
|
|
|
|
* Sun May 08 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.04.1-1
|
|
|
|
- 16.04.1
|
|
|
|
|
|
|
|
* Tue Apr 26 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.04.0-2
|
|
|
|
- backport upstream fixes
|
|
|
|
|
|
|
|
* Fri Apr 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.04.0-1
|
|
|
|
- 16.04.0
|
|
|
|
|
|
|
|
* Thu Apr 14 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.03.80-1
|
|
|
|
- 16.03.80
|
|
|
|
|
|
|
|
* Sat Apr 09 2016 Rex Dieter <rdieter@fedoraproject.org> - 15.12.3-2
|
|
|
|
- update URL, rebuild (libkscreen-qt5)
|
|
|
|
|
|
|
|
* Tue Mar 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 15.12.3-1
|
|
|
|
- 15.12.3
|
|
|
|
|
|
|
|
* Mon Feb 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 15.12.2-1
|
|
|
|
- 15.12.2
|
|
|
|
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 15.12.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 10 2016 Rex Dieter <rdieter@fedoraproject.org> 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 <rdieter@fedoraproject.org> 15.12.1-1
|
|
|
|
- spectacle-15.12.1
|
|
|
|
|
|
|
|
|