]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeappsver 21.12.3 | |
5 | %define qtver 5.9.0 | |
6 | %define kaname spectacle | |
7 | ||
8 | Summary: Spectacle | |
9 | Summary(pl.UTF-8): Spectacle | |
10 | Name: ka5-%{kaname} | |
11 | Version: 21.12.3 | |
12 | Release: 1 | |
13 | License: GPL | |
14 | Group: X11/Applications/Editors | |
15 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
16 | # Source0-md5: 2cdab10013ce819e54d5e12a9bbcea8f | |
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 | |
43 | BuildRequires: ninja | |
44 | BuildRequires: qt5-build >= 5.6.0 | |
45 | BuildRequires: shared-mime-info | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | Spectacle is a simple application for taking screenshots. It is | |
50 | capable of capturing images of either the whole desktop or just a | |
51 | single window. The images can then be saved in a variety of formats. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Spectacle to prosta aplikacja do robienia zrzutów ekranu. Potrafi | |
55 | przechwytywać obraz całego pulpitu lub tylko pojedynczego okna. Obrazy | |
56 | mogą być następnie zapisane w wielu formatach. | |
57 | ||
58 | %prep | |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake -G Ninja \ | |
65 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
66 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
68 | .. | |
69 | %ninja_build | |
70 | ||
71 | %if %{with tests} | |
72 | ctest | |
73 | %endif | |
74 | ||
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | %ninja_install -C build | |
79 | ||
80 | %find_lang %{kaname} --all-name --with-kde | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files -f %{kaname}.lang | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_bindir}/spectacle | |
88 | %{_desktopdir}/org.kde.spectacle.desktop | |
89 | %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml | |
90 | %{_datadir}/dbus-1/services/org.kde.Spectacle.service | |
91 | %{_iconsdir}/hicolor/16x16/apps/spectacle.png | |
92 | %{_iconsdir}/hicolor/22x22/apps/spectacle.png | |
93 | %{_iconsdir}/hicolor/32x32/apps/spectacle.png | |
94 | %{_iconsdir}/hicolor/48x48/apps/spectacle.png | |
95 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svgz | |
96 | %{_datadir}/knotifications5/spectacle.notifyrc | |
97 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml | |
98 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts | |
99 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion | |
100 | %{_datadir}/kconf_update/spectacle_rememberregion.upd | |
101 | %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py | |
102 | %{_datadir}/kconf_update/spectacle_clipboard.upd | |
103 | %{_datadir}/kconf_update/spectacle_shortcuts.upd | |
104 | %dir %{_datadir}/kglobalaccel | |
105 | %{_datadir}/kglobalaccel/org.kde.spectacle.desktop | |
106 | %{_datadir}/qlogging-categories5/spectacle.categories | |
107 | %{_datadir}/kconf_update/spectacle_newConfig.upd | |
108 | %{systemduserunitdir}/app-org.kde.spectacle.service | |
109 | %{_mandir}/ca/man1/spectacle.1* | |
110 | %{_mandir}/de/man1/spectacle.1* | |
111 | %{_mandir}/es/man1/spectacle.1* | |
112 | %{_mandir}/it/man1/spectacle.1* | |
113 | %{_mandir}/man1/spectacle.1* | |
114 | %{_mandir}/nl/man1/spectacle.1* | |
115 | %{_mandir}/sv/man1/spectacle.1* | |
116 | %{_mandir}/uk/man1/spectacle.1* |