]>
Commit | Line | Data |
---|---|---|
4448432b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
93a57ed8 | 4 | %define kdeplasmaver 5.26.2 |
dd843d5a | 5 | %define qtver 5.15.2 |
ee6a34fe WF |
6 | %define kpname kinfocenter |
7 | Summary: kinfocenter | |
8 | Name: kp5-%{kpname} | |
93a57ed8 | 9 | Version: 5.26.2 |
284bb0cb | 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 |
93a57ed8 | 14 | # Source0-md5: bd48d3da937d148c46c8559d8dc49c5d |
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} | |
22 | BuildRequires: cmake >= 2.8.12 | |
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 | |
47 | install -d build | |
48 | cd build | |
62ccaaa2 | 49 | %cmake -G Ninja \ |
4448432b | 50 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ee6a34fe | 51 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
7a8e16aa | 52 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
ee6a34fe | 53 | .. |
62ccaaa2 | 54 | %ninja_build |
ee6a34fe | 55 | |
4448432b WF |
56 | %if %{with tests} |
57 | ctest | |
58 | %endif | |
59 | ||
ee6a34fe WF |
60 | %install |
61 | rm -rf $RPM_BUILD_ROOT | |
62ccaaa2 | 62 | %ninja_install -C build |
7a8e16aa | 63 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin} |
ee6a34fe WF |
64 | |
65 | %find_lang %{kpname} --all-name --with-kde | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files -f %{kpname}.lang | |
71 | %defattr(644,root,root,755) | |
72 | %attr(755,root,root) %{_bindir}/kinfocenter | |
73 | /etc/xdg/menus/kinfocenter.menu | |
ee6a34fe WF |
74 | %{_desktopdir}/org.kde.kinfocenter.desktop |
75 | %{_datadir}/desktop-directories/kinfocenter.directory | |
6c709bb6 WF |
76 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo |
77 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents | |
78 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui | |
ee6a34fe WF |
79 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml |
80 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml | |
7a8e16aa WF |
81 | %{_datadir}/metainfo/org.kde.kinfocenter.appdata.xml |
82 | ||
7a8e16aa WF |
83 | %dir %{_datadir}/kpackage/kcms/kcm_nic |
84 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents | |
85 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents/ui | |
86 | %{_datadir}/kpackage/kcms/kcm_nic/contents/ui/main.qml | |
1604f118 | 87 | |
79a0192d | 88 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter |
7c9ba413 | 89 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter/private |
1604f118 WF |
90 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/CommandOutputKCM.qml |
91 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/qmldir | |
92 | %{_datadir}/kinfocenter | |
93 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro | |
7c9ba413 | 94 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro/contents |
166e3b6e | 95 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro/contents/ui |
1604f118 | 96 | %dir %{_datadir}/kpackage/kcms/kcm_cpu |
7c9ba413 | 97 | %dir %{_datadir}/kpackage/kcms/kcm_cpu/contents |
166e3b6e JR |
98 | %dir %{_datadir}/kpackage/kcms/kcm_cpu/contents/ui |
99 | %dir %{_datadir}/kpackage/kcms/kcm_egl | |
100 | %dir %{_datadir}/kpackage/kcms/kcm_egl/contents | |
101 | %dir %{_datadir}/kpackage/kcms/kcm_egl/contents/ui | |
102 | %dir %{_datadir}/kpackage/kcms/kcm_glx | |
103 | %dir %{_datadir}/kpackage/kcms/kcm_glx/contents | |
104 | %dir %{_datadir}/kpackage/kcms/kcm_glx/contents/ui | |
1604f118 | 105 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts |
7c9ba413 | 106 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts/contents |
166e3b6e JR |
107 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts/contents/ui |
108 | %dir %{_datadir}/kpackage/kcms/kcm_pci | |
109 | %dir %{_datadir}/kpackage/kcms/kcm_pci/contents | |
110 | %dir %{_datadir}/kpackage/kcms/kcm_pci/contents/ui | |
1604f118 | 111 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan |
7c9ba413 | 112 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan/contents |
166e3b6e | 113 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan/contents/ui |
1604f118 | 114 | %dir %{_datadir}/kpackage/kcms/kcm_wayland |
7c9ba413 | 115 | %dir %{_datadir}/kpackage/kcms/kcm_wayland/contents |
166e3b6e JR |
116 | %dir %{_datadir}/kpackage/kcms/kcm_wayland/contents/ui |
117 | %dir %{_datadir}/kpackage/kcms/kcm_xserver | |
118 | %dir %{_datadir}/kpackage/kcms/kcm_xserver/contents | |
119 | %dir %{_datadir}/kpackage/kcms/kcm_xserver/contents/ui | |
120 | %dir %{_datadir}/kpackage/kcms/kcmsamba | |
121 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents | |
122 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents/ui | |
83ba299e | 123 | |
a5db2259 WF |
124 | %attr(755,root,root) %{_libdir}/libKInfoCenterInternal.so |
125 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kcm_about-distro.so | |
126 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kcm_energyinfo.so | |
166e3b6e | 127 | %dir %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter |
a5db2259 WF |
128 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_cpu.so |
129 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_devinfo.so | |
130 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_egl.so | |
131 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_glx.so | |
132 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_interrupts.so | |
133 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_nic.so | |
134 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_pci.so | |
135 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_samba.so | |
136 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_usb.so | |
137 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_vulkan.so | |
138 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_wayland.so | |
139 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_xserver.so | |
83ba299e WF |
140 | %{_datadir}/kpackage/kcms/kcm_about-distro/contents/ui/main.qml |
141 | %{_datadir}/kpackage/kcms/kcm_cpu/contents/ui/main.qml | |
142 | %{_datadir}/kpackage/kcms/kcm_egl/contents/ui/main.qml | |
143 | %{_datadir}/kpackage/kcms/kcm_glx/contents/ui/main.qml | |
144 | %{_datadir}/kpackage/kcms/kcm_interrupts/contents/ui/main.qml | |
145 | %{_datadir}/kpackage/kcms/kcm_pci/contents/ui/main.qml | |
146 | %{_datadir}/kpackage/kcms/kcm_vulkan/contents/ui/main.qml | |
147 | %{_datadir}/kpackage/kcms/kcm_wayland/contents/ui/main.qml | |
148 | %{_datadir}/kpackage/kcms/kcm_xserver/contents/ui/main.qml | |
149 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/ShareListItem.qml | |
150 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/main.qml | |
a5db2259 WF |
151 | |
152 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_firmware_security.so | |
153 | %attr(755,root,root) %{_prefix}/libexec/kauth/kinfocenter-dmidecode-helper | |
154 | %{_desktopdir}/kcm_about-distro.desktop | |
155 | %{_datadir}/dbus-1/system-services/org.kde.kinfocenter.dmidecode.service | |
156 | %{_datadir}/dbus-1/system.d/org.kde.kinfocenter.dmidecode.conf | |
d7c9ba83 KM |
157 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security |
158 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents | |
159 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/code | |
a5db2259 | 160 | %attr(755,root,root) %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/code/fwupdmgr.sh |
d7c9ba83 | 161 | %dir %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/ui |
a5db2259 WF |
162 | %{_datadir}/kpackage/kcms/kcm_firmware_security/contents/ui/main.qml |
163 | %{_datadir}/polkit-1/actions/org.kde.kinfocenter.dmidecode.policy | |
9cd9a9d0 WF |
164 | |
165 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_kwinsupportinfo.so | |
05bf663d KM |
166 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo |
167 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents | |
168 | %dir %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents/ui | |
9cd9a9d0 | 169 | %{_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents/ui/main.qml |