]>
Commit | Line | Data |
---|---|---|
d6e74f6c | 1 | %define kdeplasmaver 5.22.0 |
5425c5c2 | 2 | %define qtver 5.9.0 |
ee6a34fe WF |
3 | %define kpname kinfocenter |
4 | Summary: kinfocenter | |
5 | Name: kp5-%{kpname} | |
d6e74f6c WF |
6 | Version: 5.22.0 |
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 | |
d6e74f6c | 11 | # Source0-md5: 3852790b3c4884c535f7555a7580dc60 |
ee6a34fe | 12 | URL: http://www.kde.org/ |
2e3a7b7d JR |
13 | BuildRequires: OpenGL-devel |
14 | BuildRequires: OpenGL-GLU-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 | |
62ccaaa2 | 27 | BuildRequires: ninja |
7a8e16aa | 28 | BuildRequires: pciutils-devel |
ee6a34fe WF |
29 | BuildRequires: qt5-build >= %{qtver} |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xorg-lib-libX11-devel | |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
5425c5c2 | 37 | A utility that provides information about a computer system. |
ee6a34fe WF |
38 | |
39 | %prep | |
40 | %setup -q -n %{kpname}-%{version} | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
62ccaaa2 | 45 | %cmake -G Ninja \ |
ee6a34fe | 46 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
7a8e16aa | 47 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
ee6a34fe | 48 | .. |
62ccaaa2 | 49 | %ninja_build |
ee6a34fe WF |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
62ccaaa2 | 53 | %ninja_install -C build |
7a8e16aa | 54 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin} |
ee6a34fe WF |
55 | |
56 | %find_lang %{kpname} --all-name --with-kde | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files -f %{kpname}.lang | |
62 | %defattr(644,root,root,755) | |
63 | %attr(755,root,root) %{_bindir}/kinfocenter | |
64 | /etc/xdg/menus/kinfocenter.menu | |
65 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_about_distro.so | |
66 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_devinfo.so | |
67 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_info.so | |
68 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_memory.so | |
ee6a34fe WF |
69 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_opengl.so |
70 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_pci.so | |
ee6a34fe WF |
71 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_usb.so |
72 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_view1394.so | |
73 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcms/kcm_energyinfo.so | |
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 | |
81 | %{_datadir}/kpackage/kcms/kcm_energyinfo/metadata.desktop | |
ee6a34fe WF |
82 | %{_datadir}/kservices5/about-distro.desktop |
83 | %{_datadir}/kservices5/deviceinfocategory.desktop | |
84 | %{_datadir}/kservices5/devinfo.desktop | |
85 | %{_datadir}/kservices5/dma.desktop | |
86 | %{_datadir}/kservices5/graphicalinfocategory.desktop | |
87 | %{_datadir}/kservices5/interrupts.desktop | |
88 | %{_datadir}/kservices5/ioports.desktop | |
89 | %{_datadir}/kservices5/kcm_energyinfo.desktop | |
ee6a34fe WF |
90 | %{_datadir}/kservices5/kcm_memory.desktop |
91 | %{_datadir}/kservices5/kcm_pci.desktop | |
92 | %{_datadir}/kservices5/kcmusb.desktop | |
93 | %{_datadir}/kservices5/kcmview1394.desktop | |
94 | %{_datadir}/kservices5/lostfoundcategory.desktop | |
95 | %{_datadir}/kservices5/networkinfocategory.desktop | |
ee6a34fe | 96 | %{_datadir}/kservices5/opengl.desktop |
ee6a34fe WF |
97 | %{_datadir}/kservices5/smbstatus.desktop |
98 | %{_datadir}/kservices5/wayland.desktop | |
99 | %{_datadir}/kservices5/xserver.desktop | |
100 | %{_datadir}/kservicetypes5/kinfocentercategory.desktop | |
6c709bb6 | 101 | %{_datadir}/kpackage/kcms/kcm_energyinfo/metadata.json |
7a8e16aa WF |
102 | %{_datadir}/metainfo/org.kde.kinfocenter.appdata.xml |
103 | ||
104 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcms/kcm_nic.so | |
105 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcms/kcm_samba.so | |
106 | %dir %{_datadir}/kpackage/kcms/kcm_nic | |
107 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents | |
108 | %dir %{_datadir}/kpackage/kcms/kcm_nic/contents/ui | |
109 | %{_datadir}/kpackage/kcms/kcm_nic/contents/ui/main.qml | |
110 | %{_datadir}/kpackage/kcms/kcm_nic/metadata.desktop | |
111 | %{_datadir}/kpackage/kcms/kcm_nic/metadata.json | |
112 | %dir %{_datadir}/kpackage/kcms/kcmsamba | |
113 | %dir %{_datadir}/kpackage/kcms/kcmsamba/contents | |
114 | %{_datadir}/kpackage/kcms/kcmsamba/contents/ShareListItem.qml | |
115 | %{_datadir}/kpackage/kcms/kcmsamba/contents/main.qml | |
116 | %{_datadir}/kpackage/kcms/kcmsamba/metadata.desktop | |
117 | %{_datadir}/kpackage/kcms/kcmsamba/metadata.json | |
118 | %{_datadir}/kservices5/basicinformation.desktop | |
119 | %{_datadir}/kservices5/detailedinformation.desktop | |
120 | %{_datadir}/kservices5/kcm_nic.desktop |