]>
Commit | Line | Data |
---|---|---|
e385fa98 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
3573512f | 4 | %define kdeframever 5.101 |
6c4bf8bb | 5 | %define qtver 5.15.2 |
e291011e | 6 | %define kfname knotifications |
c5e4b27f WF |
7 | |
8 | Summary: Desktop notifications | |
e291011e | 9 | Name: kf5-%{kfname} |
3573512f | 10 | Version: 5.101.0 |
3fc642a1 | 11 | Release: 2 |
c5e4b27f WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
8be33d57 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
3573512f | 15 | # Source0-md5: 876831c19fe0e66d4b27de516ad6bd41 |
c5e4b27f | 16 | URL: http://www.kde.org/ |
6c4bf8bb | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
e291011e | 18 | BuildRequires: Qt5DBus-devel >= %{qtver} |
f0f80ff5 JP |
19 | BuildRequires: Qt5Quick-devel >= %{qtver} |
20 | BuildRequires: Qt5Speech-devel >= %{qtver} | |
e291011e AM |
21 | BuildRequires: Qt5Test-devel >= %{qtver} |
22 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
23 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
6c4bf8bb | 24 | BuildRequires: cmake >= 3.16 |
5788af9b | 25 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
c5e4b27f | 26 | BuildRequires: kf5-kconfig-devel >= %{version} |
c5e4b27f | 27 | BuildRequires: kf5-kcoreaddons-devel >= %{version} |
c5e4b27f | 28 | BuildRequires: kf5-kwindowsystem-devel >= %{version} |
f0f80ff5 JP |
29 | BuildRequires: libcanberra-devel |
30 | BuildRequires: libdbusmenu-qt5-devel | |
bd07adae | 31 | BuildRequires: ninja |
f0f80ff5 | 32 | BuildRequires: pkgconfig |
e291011e | 33 | BuildRequires: qt5-linguist >= %{qtver} |
3f72245a | 34 | BuildRequires: rpmbuild(macros) >= 1.736 |
bc7ea2e3 | 35 | BuildRequires: tar >= 1:1.22 |
f0f80ff5 | 36 | BuildRequires: xorg-lib-libX11-devel |
bc7ea2e3 | 37 | BuildRequires: xz |
f0f80ff5 JP |
38 | Requires: Qt5DBus >= %{qtver} |
39 | Requires: Qt5Speech >= %{qtver} | |
40 | Requires: Qt5Widgets >= %{qtver} | |
41 | Requires: Qt5X11Extras >= %{qtver} | |
a29cc837 | 42 | Requires: kf5-dirs |
f0f80ff5 JP |
43 | Requires: kf5-kconfig >= %{version} |
44 | Requires: kf5-kcoreaddons >= %{version} | |
45 | Requires: kf5-kwindowsystem >= %{version} | |
c5e4b27f WF |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %define qt5dir %{_libdir}/qt5 | |
49 | ||
50 | %description | |
51 | KNotification is used to notify the user of an event. It covers | |
52 | feedback and persistent events. | |
53 | ||
54 | %package devel | |
e291011e AM |
55 | Summary: Header files for %{kfname} development |
56 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
c5e4b27f WF |
57 | Group: X11/Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
f0f80ff5 JP |
59 | Requires: Qt5DBus-devel >= %{qtver} |
60 | Requires: Qt5Widgets-devel >= %{qtver} | |
c5e4b27f WF |
61 | |
62 | %description devel | |
e291011e | 63 | Header files for %{kfname} development. |
c5e4b27f WF |
64 | |
65 | %description devel -l pl.UTF-8 | |
e291011e | 66 | Pliki nagłówkowe dla programistów używających %{kfname}. |
c5e4b27f WF |
67 | |
68 | %prep | |
e291011e | 69 | %setup -q -n %{kfname}-%{version} |
c5e4b27f WF |
70 | |
71 | %build | |
72 | install -d build | |
73 | cd build | |
bd07adae | 74 | %cmake -G Ninja \ |
e385fa98 | 75 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
e291011e | 76 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
c5e4b27f | 77 | ../ |
bd07adae | 78 | %ninja_build |
c5e4b27f | 79 | |
e385fa98 WF |
80 | %if %{with tests} |
81 | ctest | |
82 | %endif | |
83 | ||
84 | ||
c5e4b27f WF |
85 | %install |
86 | rm -rf $RPM_BUILD_ROOT | |
bd07adae | 87 | %ninja_install -C build |
c5e4b27f | 88 | |
20d0cdb8 | 89 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
c5e4b27f WF |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
e291011e | 97 | %files -f %{kfname}5_qt.lang |
c5e4b27f WF |
98 | %defattr(644,root,root,755) |
99 | %doc README.md | |
e09306e0 | 100 | %ghost %{_libdir}/libKF5Notifications.so.5 |
1d33f120 | 101 | %attr(755,root,root) %{_libdir}/libKF5Notifications.so.*.* |
d5986a35 WF |
102 | %dir %{_libdir}/qt5/qml/org/kde/notification |
103 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/notification/libknotificationqmlplugin.so | |
104 | %{_libdir}/qt5/qml/org/kde/notification/qmldir | |
c5e4b27f WF |
105 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierItem.xml |
106 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierWatcher.xml | |
c5ea3183 | 107 | %{_datadir}/qlogging-categories5/knotifications.categories |
b7ac7551 | 108 | %{_datadir}/qlogging-categories5/knotifications.renamecategories |
c5e4b27f WF |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %{_includedir}/KF5/KNotifications | |
c5e4b27f | 113 | %{_libdir}/cmake/KF5Notifications |
e09306e0 | 114 | %{_libdir}/libKF5Notifications.so |
c5e4b27f | 115 | %{qt5dir}/mkspecs/modules/qt_KNotifications.pri |