]>
Commit | Line | Data |
---|---|---|
6c6f0e66 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
dec83719 | 4 | %define kdeappsver 22.12.3 |
7f3802a4 | 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} | |
dec83719 | 11 | Version: 22.12.3 |
2e4d8956 | 12 | Release: 2 |
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 |
dec83719 | 16 | # Source0-md5: 76955077bd4a14d1922202ffbdee1cbd |
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 | |
7b069887 | 29 | BuildRequires: kColorPicker-devel |
e1bcad54 WF |
30 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 |
31 | BuildRequires: kf5-kconfig-devel >= 5.29.0 | |
32 | BuildRequires: kf5-kcoreaddons-devel >= 5.29.0 | |
33 | BuildRequires: kf5-kdbusaddons-devel >= 5.29.0 | |
34 | BuildRequires: kf5-kdeclarative-devel >= 5.29.0 | |
35 | BuildRequires: kf5-kdoctools-devel >= 5.29.0 | |
36 | BuildRequires: kf5-ki18n-devel >= 5.29.0 | |
37 | BuildRequires: kf5-kio-devel >= 5.29.0 | |
38 | BuildRequires: kf5-knewstuff-devel >= 5.29.0 | |
39 | BuildRequires: kf5-knotifications-devel >= 5.29.0 | |
440979ac | 40 | BuildRequires: kf5-kwayland-devel |
e1bcad54 WF |
41 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.29.0 |
42 | BuildRequires: kf5-kwindowsystem-devel >= 5.29.0 | |
43 | BuildRequires: kf5-kxmlgui-devel >= 5.29.0 | |
1e4ebbfc | 44 | BuildRequires: ninja |
e1bcad54 | 45 | BuildRequires: qt5-build >= 5.6.0 |
c356ff18 | 46 | BuildRequires: shared-mime-info |
3c309499 | 47 | BuildRequires: xcb-util-cursor-devel |
c356ff18 WF |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | Spectacle is a simple application for taking screenshots. It is | |
52 | capable of capturing images of either the whole desktop or just a | |
53 | single window. The images can then be saved in a variety of formats. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Spectacle to prosta aplikacja do robienia zrzutów ekranu. Potrafi | |
2be5f49d WF |
57 | przechwytywać obraz całego pulpitu lub tylko pojedynczego okna. |
58 | Obrazy mogą być następnie zapisane w wielu formatach. | |
c356ff18 WF |
59 | |
60 | %prep | |
61 | %setup -q -n %{kaname}-%{version} | |
62 | ||
63 | %build | |
64 | install -d build | |
65 | cd build | |
1e4ebbfc | 66 | %cmake -G Ninja \ |
6c6f0e66 | 67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1e4ebbfc | 68 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
c356ff18 WF |
69 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
70 | .. | |
1e4ebbfc | 71 | %ninja_build |
c356ff18 | 72 | |
6c6f0e66 WF |
73 | %if %{with tests} |
74 | ctest | |
75 | %endif | |
76 | ||
77 | ||
c356ff18 WF |
78 | %install |
79 | rm -rf $RPM_BUILD_ROOT | |
1e4ebbfc | 80 | %ninja_install -C build |
c356ff18 | 81 | |
131389c6 KM |
82 | # not supported by glibc yet |
83 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
84 | ||
c356ff18 WF |
85 | %find_lang %{kaname} --all-name --with-kde |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
c356ff18 WF |
90 | %files -f %{kaname}.lang |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_bindir}/spectacle | |
93 | %{_desktopdir}/org.kde.spectacle.desktop | |
94 | %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml | |
95 | %{_datadir}/dbus-1/services/org.kde.Spectacle.service | |
c356ff18 WF |
96 | %{_datadir}/knotifications5/spectacle.notifyrc |
97 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml | |
36e6c32e | 98 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts |
b2aade84 WF |
99 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion |
100 | %{_datadir}/kconf_update/spectacle_rememberregion.upd | |
b6e1e9a5 WF |
101 | %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py |
102 | %{_datadir}/kconf_update/spectacle_clipboard.upd | |
36e6c32e WF |
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 | |
633cb083 WF |
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* | |
2be5f49d | 117 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svg |