]>
Commit | Line | Data |
---|---|---|
6c6f0e66 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7f3802a4 WF |
4 | %define kdeappsver 22.04.3 |
5 | %define qtver 5.15.2 | |
c356ff18 WF |
6 | %define kaname spectacle |
7 | ||
8 | Summary: Spectacle | |
9 | Summary(pl.UTF-8): Spectacle | |
10 | Name: ka5-%{kaname} | |
7f3802a4 | 11 | Version: 22.04.3 |
633cb083 | 12 | Release: 1 |
c356ff18 WF |
13 | License: GPL |
14 | Group: X11/Applications/Editors | |
3be08c3f | 15 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
7f3802a4 | 16 | # Source0-md5: 08cbda71de0b978d75322325c76c8e46 |
c356ff18 | 17 | URL: http://www.kde.org/ |
e1bcad54 WF |
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 | |
440979ac | 39 | BuildRequires: kf5-kwayland-devel |
e1bcad54 WF |
40 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.29.0 |
41 | BuildRequires: kf5-kwindowsystem-devel >= 5.29.0 | |
42 | BuildRequires: kf5-kxmlgui-devel >= 5.29.0 | |
1e4ebbfc | 43 | BuildRequires: ninja |
e1bcad54 | 44 | BuildRequires: qt5-build >= 5.6.0 |
c356ff18 | 45 | BuildRequires: shared-mime-info |
3c309499 | 46 | BuildRequires: xcb-util-cursor-devel |
c356ff18 WF |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
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. | |
53 | ||
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. Obrazy | |
57 | mogą być następnie zapisane w wielu formatach. | |
58 | ||
59 | %prep | |
60 | %setup -q -n %{kaname}-%{version} | |
61 | ||
62 | %build | |
63 | install -d build | |
64 | cd build | |
1e4ebbfc | 65 | %cmake -G Ninja \ |
6c6f0e66 | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1e4ebbfc | 67 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
c356ff18 WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
69 | .. | |
1e4ebbfc | 70 | %ninja_build |
c356ff18 | 71 | |
6c6f0e66 WF |
72 | %if %{with tests} |
73 | ctest | |
74 | %endif | |
75 | ||
76 | ||
c356ff18 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
1e4ebbfc | 79 | %ninja_install -C build |
c356ff18 WF |
80 | |
81 | %find_lang %{kaname} --all-name --with-kde | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
c356ff18 WF |
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 | %{_iconsdir}/hicolor/16x16/apps/spectacle.png | |
93 | %{_iconsdir}/hicolor/22x22/apps/spectacle.png | |
94 | %{_iconsdir}/hicolor/32x32/apps/spectacle.png | |
95 | %{_iconsdir}/hicolor/48x48/apps/spectacle.png | |
96 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svgz | |
c356ff18 WF |
97 | %{_datadir}/knotifications5/spectacle.notifyrc |
98 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml | |
36e6c32e | 99 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts |
b2aade84 WF |
100 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion |
101 | %{_datadir}/kconf_update/spectacle_rememberregion.upd | |
b6e1e9a5 WF |
102 | %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py |
103 | %{_datadir}/kconf_update/spectacle_clipboard.upd | |
36e6c32e WF |
104 | %{_datadir}/kconf_update/spectacle_shortcuts.upd |
105 | %dir %{_datadir}/kglobalaccel | |
106 | %{_datadir}/kglobalaccel/org.kde.spectacle.desktop | |
107 | %{_datadir}/qlogging-categories5/spectacle.categories | |
108 | %{_datadir}/kconf_update/spectacle_newConfig.upd | |
109 | %{systemduserunitdir}/app-org.kde.spectacle.service | |
633cb083 WF |
110 | %{_mandir}/ca/man1/spectacle.1* |
111 | %{_mandir}/de/man1/spectacle.1* | |
112 | %{_mandir}/es/man1/spectacle.1* | |
113 | %{_mandir}/it/man1/spectacle.1* | |
114 | %{_mandir}/man1/spectacle.1* | |
115 | %{_mandir}/nl/man1/spectacle.1* | |
116 | %{_mandir}/sv/man1/spectacle.1* | |
117 | %{_mandir}/uk/man1/spectacle.1* |