]>
Commit | Line | Data |
---|---|---|
e385fa98 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
c1c21da4 | 4 | %define kdeframever 5.116 |
6c4bf8bb | 5 | %define qtver 5.15.2 |
e291011e | 6 | %define kfname knotifications |
c5e4b27f WF |
7 | |
8 | Summary: Desktop notifications | |
e291011e | 9 | Name: kf5-%{kfname} |
c1c21da4 | 10 | Version: 5.116.0 |
462f0827 | 11 | Release: 1 |
c5e4b27f WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
462f0827 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
c1c21da4 | 15 | # Source0-md5: cd9e8826cbc7d2dee444f8ceb9605453 |
c5e4b27f | 16 | URL: http://www.kde.org/ |
462f0827 WF |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
19 | BuildRequires: Qt5Quick-devel >= %{qtver} | |
20 | BuildRequires: Qt5Speech-devel >= %{qtver} | |
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 |
462f0827 | 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 |
462f0827 WF |
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 | ||
462f0827 | 48 | %define qt5dir %{_libdir}/qt5 |
c5e4b27f WF |
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} | |
462f0827 WF |
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 | |
b47892b9 WF |
72 | %cmake -B build \ |
73 | -G Ninja \ | |
e385fa98 | 74 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
b47892b9 WF |
75 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
76 | ||
77 | %ninja_build -C build | |
c5e4b27f | 78 | |
e385fa98 | 79 | %if %{with tests} |
b47892b9 | 80 | %ninja_build -C build test |
e385fa98 WF |
81 | %endif |
82 | ||
83 | ||
c5e4b27f WF |
84 | %install |
85 | rm -rf $RPM_BUILD_ROOT | |
bd07adae | 86 | %ninja_install -C build |
c5e4b27f | 87 | |
462f0827 | 88 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
c5e4b27f WF |
89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
462f0827 | 96 | %files -f %{kfname}5_qt.lang |
c5e4b27f WF |
97 | %defattr(644,root,root,755) |
98 | %doc README.md | |
462f0827 WF |
99 | %ghost %{_libdir}/libKF5Notifications.so.5 |
100 | %attr(755,root,root) %{_libdir}/libKF5Notifications.so.*.* | |
101 | %dir %{_libdir}/qt5/qml/org/kde/notification | |
102 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/notification/libknotificationqmlplugin.so | |
103 | %{_libdir}/qt5/qml/org/kde/notification/qmldir | |
104 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierItem.xml | |
105 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierWatcher.xml | |
106 | %{_datadir}/qlogging-categories5/knotifications.categories | |
107 | %{_datadir}/qlogging-categories5/knotifications.renamecategories | |
c5e4b27f WF |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
462f0827 WF |
111 | %{_includedir}/KF5/KNotifications |
112 | %{_libdir}/cmake/KF5Notifications | |
113 | %{_libdir}/libKF5Notifications.so | |
114 | %{qt5dir}/mkspecs/modules/qt_KNotifications.pri |