]>
Commit | Line | Data |
---|---|---|
6c6f0e66 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ce6cabd1 | 4 | %define kdeappsver 23.08.5 |
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} | |
ce6cabd1 | 11 | Version: 23.08.5 |
56f763f8 | 12 | Release: 1 |
c356ff18 WF |
13 | License: GPL |
14 | Group: X11/Applications/Editors | |
56f763f8 | 15 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ce6cabd1 | 16 | # Source0-md5: 4c3170aee95f0ab9e9cede52d2406fe1 |
c356ff18 | 17 | URL: http://www.kde.org/ |
56f763f8 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 | |
e1bcad54 | 28 | BuildRequires: gettext-devel |
7b069887 | 29 | BuildRequires: kColorPicker-devel |
56f763f8 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 | |
40 | BuildRequires: kf5-kwayland-devel | |
41 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.29.0 | |
42 | BuildRequires: kf5-kwindowsystem-devel >= 5.29.0 | |
43 | BuildRequires: kf5-kxmlgui-devel >= 5.29.0 | |
5694acc8 | 44 | BuildRequires: kp5-kpipewire-devel |
1e4ebbfc | 45 | BuildRequires: ninja |
56f763f8 | 46 | BuildRequires: qt5-build >= 5.6.0 |
c356ff18 | 47 | BuildRequires: shared-mime-info |
3c309499 | 48 | BuildRequires: xcb-util-cursor-devel |
c356ff18 WF |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | Spectacle is a simple application for taking screenshots. It is | |
53 | capable of capturing images of either the whole desktop or just a | |
54 | single window. The images can then be saved in a variety of formats. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Spectacle to prosta aplikacja do robienia zrzutów ekranu. Potrafi | |
5694acc8 KM |
58 | przechwytywać obraz całego pulpitu lub tylko pojedynczego okna. Obrazy |
59 | mogą być następnie zapisane w wielu formatach. | |
c356ff18 WF |
60 | |
61 | %prep | |
62 | %setup -q -n %{kaname}-%{version} | |
63 | ||
64 | %build | |
5846a05a WF |
65 | %cmake -B build \ |
66 | -G Ninja \ | |
6c6f0e66 | 67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1e4ebbfc | 68 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
5846a05a WF |
69 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
70 | %ninja_build -C build | |
c356ff18 | 71 | |
6c6f0e66 | 72 | %if %{with tests} |
5846a05a | 73 | ctest --test-dir build |
6c6f0e66 WF |
74 | %endif |
75 | ||
76 | ||
c356ff18 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
1e4ebbfc | 79 | %ninja_install -C build |
c356ff18 | 80 | |
131389c6 KM |
81 | # not supported by glibc yet |
82 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
83 | ||
c356ff18 WF |
84 | %find_lang %{kaname} --all-name --with-kde |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
c356ff18 WF |
89 | %files -f %{kaname}.lang |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_bindir}/spectacle | |
92 | %{_desktopdir}/org.kde.spectacle.desktop | |
93 | %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml | |
94 | %{_datadir}/dbus-1/services/org.kde.Spectacle.service | |
56f763f8 | 95 | %{_datadir}/knotifications5/spectacle.notifyrc |
c356ff18 | 96 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml |
56f763f8 WF |
97 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts |
98 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion | |
99 | %{_datadir}/kconf_update/spectacle_rememberregion.upd | |
100 | %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py | |
101 | %{_datadir}/kconf_update/spectacle_clipboard.upd | |
102 | %{_datadir}/kconf_update/spectacle_shortcuts.upd | |
36e6c32e WF |
103 | %dir %{_datadir}/kglobalaccel |
104 | %{_datadir}/kglobalaccel/org.kde.spectacle.desktop | |
56f763f8 WF |
105 | %{_datadir}/qlogging-categories5/spectacle.categories |
106 | %{_datadir}/kconf_update/spectacle_newConfig.upd | |
36e6c32e | 107 | %{systemduserunitdir}/app-org.kde.spectacle.service |
633cb083 WF |
108 | %{_mandir}/ca/man1/spectacle.1* |
109 | %{_mandir}/de/man1/spectacle.1* | |
110 | %{_mandir}/es/man1/spectacle.1* | |
111 | %{_mandir}/it/man1/spectacle.1* | |
112 | %{_mandir}/man1/spectacle.1* | |
113 | %{_mandir}/nl/man1/spectacle.1* | |
114 | %{_mandir}/sv/man1/spectacle.1* | |
115 | %{_mandir}/uk/man1/spectacle.1* | |
2be5f49d | 116 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svg |