]>
Commit | Line | Data |
---|---|---|
4448432b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4b44f804 | 4 | %define kdeplasmaver 5.27.7 |
dd843d5a | 5 | %define qtver 5.15.2 |
ee6a34fe WF |
6 | %define kpname kinfocenter |
7 | Summary: kinfocenter | |
8 | Name: kp5-%{kpname} | |
4b44f804 | 9 | Version: 5.27.7 |
657b2316 | 10 | Release: 1 |
ee6a34fe WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
a5db2259 | 13 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
4b44f804 | 14 | # Source0-md5: b3b25a757de32befe4c282ebc9b928c3 |
ee6a34fe | 15 | URL: http://www.kde.org/ |
2e3a7b7d | 16 | BuildRequires: OpenGL-GLU-devel |
1604f118 | 17 | BuildRequires: OpenGL-devel |
ee6a34fe WF |
18 | BuildRequires: Qt5Core-devel >= %{qtver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
4b44f804 | 22 | BuildRequires: cmake >= 3.16.0 |
ee6a34fe WF |
23 | BuildRequires: gettext-devel |
24 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 | |
2e3a7b7d JR |
25 | BuildRequires: kf5-kcmutils-devel |
26 | BuildRequires: kf5-kdeclarative-devel | |
ee6a34fe WF |
27 | BuildRequires: kf5-kdelibs4support-devel |
28 | BuildRequires: kf5-kdoctools-devel | |
29 | BuildRequires: kf5-khtml-devel | |
01054dc2 | 30 | BuildRequires: libusb-devel |
62ccaaa2 | 31 | BuildRequires: ninja |
7a8e16aa | 32 | BuildRequires: pciutils-devel |
ee6a34fe WF |
33 | BuildRequires: qt5-build >= %{qtver} |
34 | BuildRequires: rpmbuild(macros) >= 1.164 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xorg-lib-libX11-devel | |
37 | BuildRequires: xz | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
5425c5c2 | 41 | A utility that provides information about a computer system. |
ee6a34fe WF |
42 | |
43 | %prep | |
44 | %setup -q -n %{kpname}-%{version} | |
45 | ||
46 | %build | |
4b44f804 WF |
47 | %cmake -B build \ |
48 | -G Ninja \ | |
4448432b | 49 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ee6a34fe | 50 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
4b44f804 WF |
51 | -DHTML_INSTALL_DIR=%{_kdedocdir} |
52 | %ninja_build -C build | |
ee6a34fe | 53 | |
4448432b WF |
54 | %if %{with tests} |
55 | ctest | |
56 | %endif | |
57 | ||
ee6a34fe WF |
58 | %install |
59 | rm -rf $RPM_BUILD_ROOT | |
62ccaaa2 | 60 | %ninja_install -C build |
7a8e16aa | 61 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin} |
ee6a34fe WF |
62 | |
63 | %find_lang %{kpname} --all-name --with-kde | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files -f %{kpname}.lang | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_bindir}/kinfocenter | |
71 | /etc/xdg/menus/kinfocenter.menu | |
ee6a34fe WF |
72 | %{_desktopdir}/org.kde.kinfocenter.desktop |
73 | %{_datadir}/desktop-directories/kinfocenter.directory | |
6c709bb6 WF |
74 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo |
75 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents | |
76 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui | |
ee6a34fe WF |
77 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml |
78 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml | |
7a8e16aa WF |
79 | %{_datadir}/metainfo/org.kde.kinfocenter.appdata.xml |
80 | ||
7a8e16aa WF |
81 | %dir %{_datadir}/kpackage/kcms/kcm_nic |
82 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents | |
83 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents/ui | |
84 | %{_datadir}/kpackage/kcms/kcm_nic/contents/ui/main.qml | |
1604f118 | 85 | |
79a0192d | 86 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter |
7c9ba413 | 87 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter/private |
1604f118 WF |
88 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/CommandOutputKCM.qml |
89 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/qmldir | |
90 | %{_datadir}/kinfocenter | |
91 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro | |
7c9ba413 | 92 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro/contents |
166e3b6e | 93 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro/contents/ui |
1604f118 | 94 | %dir %{_datadir}/kpackage/kcms/kcm_cpu |
7c9ba413 | 95 | %dir %{_datadir}/kpackage/kcms/kcm_cpu/contents |
166e3b6e JR |
96 | %dir %{_datadir}/kpackage/kcms/kcm_cpu/contents/ui |
97 | %dir %{_datadir}/kpackage/kcms/kcm_egl | |
98 | %dir %{_datadir}/kpackage/kcms/kcm_egl/contents | |
99 | %dir %{_datadir}/kpackage/kcms/kcm_egl/contents/ui | |
100 | %dir %{_datadir}/kpackage/kcms/kcm_glx | |
101 | %dir %{_datadir}/kpackage/kcms/kcm_glx/contents | |
102 | %dir %{_datadir}/kpackage/kcms/kcm_glx/contents/ui | |
1604f118 | 103 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts |
7c9ba413 | 104 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts/contents |
166e3b6e JR |
105 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts/contents/ui |
106 | %dir %{_datadir}/kpackage/kcms/kcm_pci | |
107 | %dir %{_datadir}/kpackage/kcms/kcm_pci/contents | |
108 | %dir %{_datadir}/kpackage/kcms/kcm_pci/contents/ui | |
1604f118 | 109 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan |
7c9ba413 | 110 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan/contents |
166e3b6e | 111 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan/contents/ui |
1604f118 | 112 | %dir %{_datadir}/kpackage/kcms/kcm_wayland |
7c9ba413 | 113 | %dir %{_datadir}/kpackage/kcms/kcm_wayland/contents |
166e3b6e JR |
114 | %dir %{_datadir}/kpackage/kcms/kcm_wayland/contents/ui |
115 | %dir %{_datadir}/kpackage/kcms/kcm_xserver | |
116 | %dir %{_datadir}/kpackage/kcms/kcm_xserver/contents | |
117 | %dir %{_datadir}/kpackage/kcms/kcm_xserver/contents/ui | |
118 | %dir %{_datadir}/kpackage/kcms/kcmsamba | |
119 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents | |
120 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents/ui | |
83ba299e | 121 | |
a5db2259 WF |
122 | %attr(755,root,root) %{_libdir}/libKInfoCenterInternal.so |
123 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kcm_about-distro.so | |
124 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kcm_energyinfo.so | |
166e3b6e | 125 | %dir %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter |
a5db2259 WF |
126 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_cpu.so |
127 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_devinfo.so | |
128 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_egl.so | |
129 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_glx.so | |
130 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_interrupts.so | |
131 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_nic.so | |
132 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_pci.so | |
133 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_samba.so | |
134 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_usb.so | |
135 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_vulkan.so | |
136 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_wayland.so | |
137 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_xserver.so | |
83ba299e WF |
138 | %{_datadir}/kpackage/kcms/kcm_about-distro/contents/ui/main.qml |
139 | %{_datadir}/kpackage/kcms/kcm_cpu/contents/ui/main.qml | |
140 | %{_datadir}/kpackage/kcms/kcm_egl/contents/ui/main.qml | |
141 | %{_datadir}/kpackage/kcms/kcm_glx/contents/ui/main.qml | |
142 | %{_datadir}/kpackage/kcms/kcm_interrupts/contents/ui/main.qml | |
143 | %{_datadir}/kpackage/kcms/kcm_pci/contents/ui/main.qml | |
144 | %{_datadir}/kpackage/kcms/kcm_vulkan/contents/ui/main.qml | |
145 | %{_datadir}/kpackage/kcms/kcm_wayland/contents/ui/main.qml | |
146 | %{_datadir}/kpackage/kcms/kcm_xserver/contents/ui/main.qml | |
147 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/ShareListItem.qml | |
148 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/main.qml | |
a5db2259 WF |
149 | |
150 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_firmware_security.so | |
151 | %attr(755,root,root) %{_prefix}/libexec/kauth/kinfocenter-dmidecode-helper | |
152 | %{_desktopdir}/kcm_about-distro.desktop | |
153 | %{_datadir}/dbus-1/system-services/org.kde.kinfocenter.dmidecode.service | |
154 | %{_datadir}/dbus-1/system.d/org.kde.kinfocenter.dmidecode.conf | |
d7c9ba83 KM |
155 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security |
156 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents | |
157 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/code | |
a5db2259 | 158 | %attr(755,root,root) %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/code/fwupdmgr.sh |
d7c9ba83 | 159 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/ui |
a5db2259 WF |
160 | %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/ui/main.qml |
161 | %{_datadir}/polkit-1/actions/org.kde.kinfocenter.dmidecode.policy | |
9cd9a9d0 WF |
162 | |
163 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_kwinsupportinfo.so | |
05bf663d KM |
164 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo |
165 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents | |
166 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents/ui | |
9cd9a9d0 | 167 | %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents/ui/main.qml |
d0412a5a WF |
168 | |
169 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_opencl.so | |
a8b6f768 KM |
170 | %dir %{_datadir}/kpackage/kcms/kcm_opencl |
171 | %dir %{_datadir}/kpackage/kcms/kcm_opencl/contents | |
172 | %dir %{_datadir}/kpackage/kcms/kcm_opencl/contents/ui | |
d0412a5a | 173 | %{_datadir}/kpackage/kcms/kcm_opencl/contents/ui/main.qml |