]>
Commit | Line | Data |
---|---|---|
6c6f0e66 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
2c50cc46 | 4 | %define kdeappsver 24.01.95 |
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} | |
2c50cc46 WF |
11 | Version: 24.01.95 |
12 | Release: 0.1 | |
c356ff18 WF |
13 | License: GPL |
14 | Group: X11/Applications/Editors | |
2c50cc46 WF |
15 | Source0: https://download.kde.org/unstable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
16 | # Source0-md5: 42fb733e1bc5722f87d33772420f3fda | |
c356ff18 | 17 | URL: http://www.kde.org/ |
2c50cc46 WF |
18 | BuildRequires: Qt6Concurrent-devel |
19 | BuildRequires: Qt6Core-devel | |
20 | BuildRequires: Qt6DBus-devel | |
21 | BuildRequires: Qt6Gui-devel >= 5.11.1 | |
22 | BuildRequires: Qt6Network-devel >= 5.11.1 | |
23 | BuildRequires: Qt6PrintSupport-devel | |
24 | BuildRequires: Qt6Qml-devel >= 5.11.1 | |
25 | BuildRequires: Qt6Quick-devel | |
26 | BuildRequires: Qt6Widgets-devel | |
e1bcad54 | 27 | BuildRequires: gettext-devel |
7b069887 | 28 | BuildRequires: kColorPicker-devel |
2c50cc46 WF |
29 | BuildRequires: kf6-extra-cmake-modules >= 5.53.0 |
30 | BuildRequires: kf6-kconfig-devel >= 5.29.0 | |
31 | BuildRequires: kf6-kcoreaddons-devel >= 5.29.0 | |
32 | BuildRequires: kf6-kdbusaddons-devel >= 5.29.0 | |
33 | BuildRequires: kf6-kdeclarative-devel >= 5.29.0 | |
34 | BuildRequires: kf6-kdoctools-devel >= 5.29.0 | |
35 | BuildRequires: kf6-ki18n-devel >= 5.29.0 | |
36 | BuildRequires: kf6-kio-devel >= 5.29.0 | |
37 | BuildRequires: kf6-knewstuff-devel >= 5.29.0 | |
38 | BuildRequires: kf6-knotifications-devel >= 5.29.0 | |
39 | BuildRequires: kf6-kwidgetsaddons-devel >= 5.29.0 | |
40 | BuildRequires: kf6-kwindowsystem-devel >= 5.29.0 | |
41 | BuildRequires: kf6-kxmlgui-devel >= 5.29.0 | |
5694acc8 | 42 | BuildRequires: kp5-kpipewire-devel |
2c50cc46 | 43 | BuildRequires: kp5-kwayland-devel |
1e4ebbfc | 44 | BuildRequires: ninja |
2c50cc46 | 45 | BuildRequires: qt6-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 | |
5694acc8 KM |
57 | przechwytywać obraz całego pulpitu lub tylko pojedynczego okna. Obrazy |
58 | mogą być następnie zapisane w wielu formatach. | |
c356ff18 WF |
59 | |
60 | %prep | |
61 | %setup -q -n %{kaname}-%{version} | |
62 | ||
63 | %build | |
5846a05a WF |
64 | %cmake -B build \ |
65 | -G Ninja \ | |
6c6f0e66 | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1e4ebbfc | 67 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
5846a05a WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
69 | %ninja_build -C build | |
c356ff18 | 70 | |
6c6f0e66 | 71 | %if %{with tests} |
5846a05a | 72 | ctest --test-dir build |
6c6f0e66 WF |
73 | %endif |
74 | ||
75 | ||
c356ff18 WF |
76 | %install |
77 | rm -rf $RPM_BUILD_ROOT | |
1e4ebbfc | 78 | %ninja_install -C build |
c356ff18 | 79 | |
131389c6 KM |
80 | # not supported by glibc yet |
81 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
82 | ||
c356ff18 WF |
83 | %find_lang %{kaname} --all-name --with-kde |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
c356ff18 WF |
88 | %files -f %{kaname}.lang |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_bindir}/spectacle | |
2c50cc46 WF |
91 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-24.02.0-change_placeholder_format |
92 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-24.02.0-keep_old_filename_templates | |
93 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-24.02.0-keep_old_save_location | |
94 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-24.02.0-rename_settings | |
95 | %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-24.02.0-video_format | |
96 | %{_datadir}/dbus-1/services/org.kde.spectacle.service | |
c356ff18 WF |
97 | %{_desktopdir}/org.kde.spectacle.desktop |
98 | %{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml | |
99 | %{_datadir}/dbus-1/services/org.kde.Spectacle.service | |
2c50cc46 WF |
100 | %{_datadir}/kconf_update/spectacle.upd |
101 | %{_datadir}/knotifications6/spectacle.notifyrc | |
c356ff18 | 102 | %{_datadir}/metainfo/org.kde.spectacle.appdata.xml |
36e6c32e WF |
103 | %dir %{_datadir}/kglobalaccel |
104 | %{_datadir}/kglobalaccel/org.kde.spectacle.desktop | |
2c50cc46 | 105 | %{_datadir}/qlogging-categories6/spectacle.categories |
36e6c32e | 106 | %{systemduserunitdir}/app-org.kde.spectacle.service |
633cb083 WF |
107 | %{_mandir}/ca/man1/spectacle.1* |
108 | %{_mandir}/de/man1/spectacle.1* | |
109 | %{_mandir}/es/man1/spectacle.1* | |
110 | %{_mandir}/it/man1/spectacle.1* | |
111 | %{_mandir}/man1/spectacle.1* | |
112 | %{_mandir}/nl/man1/spectacle.1* | |
113 | %{_mandir}/sv/man1/spectacle.1* | |
2c50cc46 | 114 | %{_mandir}/tr/man1/spectacle.1* |
633cb083 | 115 | %{_mandir}/uk/man1/spectacle.1* |
2be5f49d | 116 | %{_iconsdir}/hicolor/scalable/apps/spectacle.svg |