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