]>
Commit | Line | Data |
---|---|---|
83ba299e | 1 | %define kdeplasmaver 5.24.0 |
5425c5c2 | 2 | %define qtver 5.9.0 |
ee6a34fe WF |
3 | %define kpname kinfocenter |
4 | Summary: kinfocenter | |
5 | Name: kp5-%{kpname} | |
83ba299e | 6 | Version: 5.24.0 |
fbac4f71 | 7 | Release: 1 |
ee6a34fe WF |
8 | License: GPL v2+/LGPL v2.1+ |
9 | Group: X11/Libraries | |
10 | Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz | |
83ba299e | 11 | # Source0-md5: f9a542276e05b3b4cb9fbd32c541a552 |
ee6a34fe | 12 | URL: http://www.kde.org/ |
2e3a7b7d | 13 | BuildRequires: OpenGL-GLU-devel |
1604f118 | 14 | BuildRequires: OpenGL-devel |
ee6a34fe WF |
15 | BuildRequires: Qt5Core-devel >= %{qtver} |
16 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
17 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
18 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
19 | BuildRequires: cmake >= 2.8.12 | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 | |
2e3a7b7d JR |
22 | BuildRequires: kf5-kcmutils-devel |
23 | BuildRequires: kf5-kdeclarative-devel | |
ee6a34fe WF |
24 | BuildRequires: kf5-kdelibs4support-devel |
25 | BuildRequires: kf5-kdoctools-devel | |
26 | BuildRequires: kf5-khtml-devel | |
01054dc2 | 27 | BuildRequires: libusb-devel |
62ccaaa2 | 28 | BuildRequires: ninja |
7a8e16aa | 29 | BuildRequires: pciutils-devel |
ee6a34fe WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xorg-lib-libX11-devel | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
5425c5c2 | 38 | A utility that provides information about a computer system. |
ee6a34fe WF |
39 | |
40 | %prep | |
41 | %setup -q -n %{kpname}-%{version} | |
42 | ||
43 | %build | |
44 | install -d build | |
45 | cd build | |
62ccaaa2 | 46 | %cmake -G Ninja \ |
ee6a34fe | 47 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
7a8e16aa | 48 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
ee6a34fe | 49 | .. |
62ccaaa2 | 50 | %ninja_build |
ee6a34fe WF |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
62ccaaa2 | 54 | %ninja_install -C build |
7a8e16aa | 55 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin} |
ee6a34fe WF |
56 | |
57 | %find_lang %{kpname} --all-name --with-kde | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files -f %{kpname}.lang | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_bindir}/kinfocenter | |
65 | /etc/xdg/menus/kinfocenter.menu | |
ee6a34fe WF |
66 | %{_desktopdir}/org.kde.kinfocenter.desktop |
67 | %{_datadir}/desktop-directories/kinfocenter.directory | |
6c709bb6 WF |
68 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo |
69 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents | |
70 | %dir %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui | |
ee6a34fe WF |
71 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml |
72 | %{_datadir}/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml | |
ee6a34fe | 73 | %{_datadir}/kservicetypes5/kinfocentercategory.desktop |
7a8e16aa WF |
74 | %{_datadir}/metainfo/org.kde.kinfocenter.appdata.xml |
75 | ||
7a8e16aa WF |
76 | %dir %{_datadir}/kpackage/kcms/kcm_nic |
77 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents | |
78 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents/ui | |
79 | %{_datadir}/kpackage/kcms/kcm_nic/contents/ui/main.qml | |
7a8e16aa WF |
80 | %dir %{_datadir}/kpackage/kcms/kcmsamba |
81 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents | |
1604f118 | 82 | |
79a0192d | 83 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter |
7c9ba413 | 84 | %dir %{_libdir}/qt5/qml/org/kde/kinfocenter/private |
1604f118 WF |
85 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/CommandOutputKCM.qml |
86 | %{_libdir}/qt5/qml/org/kde/kinfocenter/private/qmldir | |
87 | %{_datadir}/kinfocenter | |
88 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro | |
7c9ba413 | 89 | %dir %{_datadir}/kpackage/kcms/kcm_about-distro/contents |
1604f118 | 90 | %dir %{_datadir}/kpackage/kcms/kcm_cpu |
7c9ba413 | 91 | %dir %{_datadir}/kpackage/kcms/kcm_cpu/contents |
1604f118 | 92 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts |
7c9ba413 | 93 | %dir %{_datadir}/kpackage/kcms/kcm_interrupts/contents |
1604f118 | 94 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan |
7c9ba413 | 95 | %dir %{_datadir}/kpackage/kcms/kcm_vulkan/contents |
1604f118 | 96 | %dir %{_datadir}/kpackage/kcms/kcm_wayland |
7c9ba413 | 97 | %dir %{_datadir}/kpackage/kcms/kcm_wayland/contents |
83ba299e WF |
98 | |
99 | %{_libdir}/libKInfoCenterInternal.so | |
100 | %{_libdir}/qt5/plugins/plasma/kcms/kcm_about-distro.so | |
101 | %{_libdir}/qt5/plugins/plasma/kcms/kcm_energyinfo.so | |
102 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_cpu.so | |
103 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_devinfo.so | |
104 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_egl.so | |
105 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_glx.so | |
106 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_interrupts.so | |
107 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_nic.so | |
108 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_pci.so | |
109 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_samba.so | |
110 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_usb.so | |
111 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_vulkan.so | |
112 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_wayland.so | |
113 | %{_libdir}/qt5/plugins/plasma/kcms/kinfocenter/kcm_xserver.so | |
114 | %{_datadir}/kpackage/kcms/kcm_about-distro/contents/ui/main.qml | |
115 | %{_datadir}/kpackage/kcms/kcm_cpu/contents/ui/main.qml | |
116 | %{_datadir}/kpackage/kcms/kcm_egl/contents/ui/main.qml | |
117 | %{_datadir}/kpackage/kcms/kcm_glx/contents/ui/main.qml | |
118 | %{_datadir}/kpackage/kcms/kcm_interrupts/contents/ui/main.qml | |
119 | %{_datadir}/kpackage/kcms/kcm_pci/contents/ui/main.qml | |
120 | %{_datadir}/kpackage/kcms/kcm_vulkan/contents/ui/main.qml | |
121 | %{_datadir}/kpackage/kcms/kcm_wayland/contents/ui/main.qml | |
122 | %{_datadir}/kpackage/kcms/kcm_xserver/contents/ui/main.qml | |
123 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/ShareListItem.qml | |
124 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ui/main.qml |