]>
Commit | Line | Data |
---|---|---|
3fdae5bf | 1 | %define kdeappsver 21.08.3 |
e1bcad54 | 2 | %define qtver 5.9.0 |
c356ff18 WF |
3 | %define kaname spectacle |
4 | ||
5 | Summary: Spectacle | |
6 | Summary(pl.UTF-8): Spectacle | |
7 | Name: ka5-%{kaname} | |
3fdae5bf | 8 | Version: 21.08.3 |
633cb083 | 9 | Release: 1 |
c356ff18 WF |
10 | License: GPL |
11 | Group: X11/Applications/Editors | |
36e6c32e | 12 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
3fdae5bf | 13 | # Source0-md5: c6da10190953ff8f0272d3abfc48c01b |
c356ff18 | 14 | URL: http://www.kde.org/ |
e1bcad54 WF |
15 | BuildRequires: Qt5Concurrent-devel |
16 | BuildRequires: Qt5Core-devel | |
17 | BuildRequires: Qt5DBus-devel | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5PrintSupport-devel | |
21 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Widgets-devel | |
24 | BuildRequires: Qt5X11Extras-devel >= 5.6.0 | |
25 | BuildRequires: gettext-devel | |
26 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
27 | BuildRequires: kf5-kconfig-devel >= 5.29.0 | |
28 | BuildRequires: kf5-kcoreaddons-devel >= 5.29.0 | |
29 | BuildRequires: kf5-kdbusaddons-devel >= 5.29.0 | |
30 | BuildRequires: kf5-kdeclarative-devel >= 5.29.0 | |
31 | BuildRequires: kf5-kdoctools-devel >= 5.29.0 | |
32 | BuildRequires: kf5-ki18n-devel >= 5.29.0 | |
33 | BuildRequires: kf5-kio-devel >= 5.29.0 | |
34 | BuildRequires: kf5-knewstuff-devel >= 5.29.0 | |
35 | BuildRequires: kf5-knotifications-devel >= 5.29.0 | |
440979ac | 36 | BuildRequires: kf5-kwayland-devel |
e1bcad54 WF |
37 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.29.0 |
38 | BuildRequires: kf5-kwindowsystem-devel >= 5.29.0 | |
39 | BuildRequires: kf5-kxmlgui-devel >= 5.29.0 | |
1e4ebbfc | 40 | BuildRequires: ninja |
e1bcad54 | 41 | BuildRequires: qt5-build >= 5.6.0 |
c356ff18 WF |
42 | BuildRequires: shared-mime-info |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Spectacle is a simple application for taking screenshots. It is | |
47 | capable of capturing images of either the whole desktop or just a | |
48 | single window. The images can then be saved in a variety of formats. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Spectacle to prosta aplikacja do robienia zrzutów ekranu. Potrafi | |
52 | przechwytywać obraz całego pulpitu lub tylko pojedynczego okna. Obrazy | |
53 | mogą być następnie zapisane w wielu formatach. | |
54 | ||
55 | %prep | |
56 | %setup -q -n %{kaname}-%{version} | |
57 | ||
58 | %build | |
59 | install -d build | |
60 | cd build | |
1e4ebbfc WF |
61 | %cmake -G Ninja \ |
62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
c356ff18 WF |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
64 | .. | |
1e4ebbfc | 65 | %ninja_build |
c356ff18 WF |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
1e4ebbfc | 69 | %ninja_install -C build |
c356ff18 WF |
70 | |
71 | %find_lang %{kaname} --all-name --with-kde | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
c356ff18 WF |
76 | %files -f %{kaname}.lang |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_bindir}/spectacle | |
79 | %{_desktopdir}/org.kde.spectacle.desktop | |
80 | %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml | |
81 | %{_datadir}/dbus-1/services/org.kde.Spectacle.service | |
82 | %{_iconsdir}/hicolor/16x16/apps/spectacle.png | |
83 | %{_iconsdir}/hicolor/22x22/apps/spectacle.png | |
84 | %{_iconsdir}/hicolor/32x32/apps/spectacle.png | |
85 | %{_iconsdir}/hicolor/48x48/apps/spectacle.png | |
86 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svgz | |
c356ff18 WF |
87 | %{_datadir}/knotifications5/spectacle.notifyrc |
88 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml | |
36e6c32e | 89 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts |
b6e1e9a5 WF |
90 | %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py |
91 | %{_datadir}/kconf_update/spectacle_clipboard.upd | |
36e6c32e WF |
92 | %{_datadir}/kconf_update/spectacle_shortcuts.upd |
93 | %dir %{_datadir}/kglobalaccel | |
94 | %{_datadir}/kglobalaccel/org.kde.spectacle.desktop | |
95 | %{_datadir}/qlogging-categories5/spectacle.categories | |
96 | %{_datadir}/kconf_update/spectacle_newConfig.upd | |
97 | %{systemduserunitdir}/app-org.kde.spectacle.service | |
633cb083 WF |
98 | %{_mandir}/ca/man1/spectacle.1* |
99 | %{_mandir}/de/man1/spectacle.1* | |
100 | %{_mandir}/es/man1/spectacle.1* | |
101 | %{_mandir}/it/man1/spectacle.1* | |
102 | %{_mandir}/man1/spectacle.1* | |
103 | %{_mandir}/nl/man1/spectacle.1* | |
104 | %{_mandir}/sv/man1/spectacle.1* | |
105 | %{_mandir}/uk/man1/spectacle.1* |