3 %bcond_with tests # build with tests
4 %define kdeappsver 22.08.1
6 %define kaname spectacle
9 Summary(pl.UTF-8): Spectacle
14 Group: X11/Applications/Editors
15 Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
16 # Source0-md5: d7bafa2691ee8e51bd7cac5754da3d95
17 URL: http://www.kde.org/
18 BuildRequires: Qt5Concurrent-devel
19 BuildRequires: Qt5Core-devel
20 BuildRequires: Qt5DBus-devel
21 BuildRequires: Qt5Gui-devel >= 5.11.1
22 BuildRequires: Qt5Network-devel >= 5.11.1
23 BuildRequires: Qt5PrintSupport-devel
24 BuildRequires: Qt5Qml-devel >= 5.11.1
25 BuildRequires: Qt5Quick-devel
26 BuildRequires: Qt5Widgets-devel
27 BuildRequires: Qt5X11Extras-devel >= 5.6.0
28 BuildRequires: gettext-devel
29 BuildRequires: kf5-extra-cmake-modules >= 5.53.0
30 BuildRequires: kf5-kconfig-devel >= 5.29.0
31 BuildRequires: kf5-kcoreaddons-devel >= 5.29.0
32 BuildRequires: kf5-kdbusaddons-devel >= 5.29.0
33 BuildRequires: kf5-kdeclarative-devel >= 5.29.0
34 BuildRequires: kf5-kdoctools-devel >= 5.29.0
35 BuildRequires: kf5-ki18n-devel >= 5.29.0
36 BuildRequires: kf5-kio-devel >= 5.29.0
37 BuildRequires: kf5-knewstuff-devel >= 5.29.0
38 BuildRequires: kf5-knotifications-devel >= 5.29.0
39 BuildRequires: kf5-kwayland-devel
40 BuildRequires: kf5-kwidgetsaddons-devel >= 5.29.0
41 BuildRequires: kf5-kwindowsystem-devel >= 5.29.0
42 BuildRequires: kf5-kxmlgui-devel >= 5.29.0
44 BuildRequires: qt5-build >= 5.6.0
45 BuildRequires: shared-mime-info
46 BuildRequires: xcb-util-cursor-devel
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Spectacle is a simple application for taking screenshots. It is
51 capable of capturing images of either the whole desktop or just a
52 single window. The images can then be saved in a variety of formats.
54 %description -l pl.UTF-8
55 Spectacle to prosta aplikacja do robienia zrzutów ekranu. Potrafi
56 przechwytywać obraz całego pulpitu lub tylko pojedynczego okna.
57 Obrazy mogą być następnie zapisane w wielu formatach.
60 %setup -q -n %{kaname}-%{version}
66 %{!?with_tests:-DBUILD_TESTING=OFF} \
67 -DHTML_INSTALL_DIR=%{_kdedocdir} \
68 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
78 rm -rf $RPM_BUILD_ROOT
79 %ninja_install -C build
81 %find_lang %{kaname} --all-name --with-kde
84 rm -rf $RPM_BUILD_ROOT
86 %files -f %{kaname}.lang
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/spectacle
89 %{_desktopdir}/org.kde.spectacle.desktop
90 %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml
91 %{_datadir}/dbus-1/services/org.kde.Spectacle.service
92 %{_datadir}/knotifications5/spectacle.notifyrc
93 %{_datadir}/metainfo/org.kde.spectacle.appdata.xml
94 %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts
95 %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion
96 %{_datadir}/kconf_update/spectacle_rememberregion.upd
97 %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py
98 %{_datadir}/kconf_update/spectacle_clipboard.upd
99 %{_datadir}/kconf_update/spectacle_shortcuts.upd
100 %dir %{_datadir}/kglobalaccel
101 %{_datadir}/kglobalaccel/org.kde.spectacle.desktop
102 %{_datadir}/qlogging-categories5/spectacle.categories
103 %{_datadir}/kconf_update/spectacle_newConfig.upd
104 %{systemduserunitdir}/app-org.kde.spectacle.service
105 %{_mandir}/ca/man1/spectacle.1*
106 %{_mandir}/de/man1/spectacle.1*
107 %{_mandir}/es/man1/spectacle.1*
108 %{_mandir}/it/man1/spectacle.1*
109 %{_mandir}/man1/spectacle.1*
110 %{_mandir}/nl/man1/spectacle.1*
111 %{_mandir}/sv/man1/spectacle.1*
112 %{_mandir}/uk/man1/spectacle.1*
113 %{_iconsdir}/hicolor/scalable/apps/spectacle.svg