3 %bcond_with tests # build with tests
4 %define kdeframever 5.95
8 Summary: Helper library to speed up start of applications on KDE workspaces
14 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5: b5eb535da2743085e18ea74213b39cd6
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5DBus-devel >= %{qtver}
19 BuildRequires: Qt5Gui-devel >= %{qtver}
20 BuildRequires: cmake >= 3.5
21 BuildRequires: kf5-extra-cmake-modules >= %{version}
22 BuildRequires: kf5-kconfig-devel >= %{version}
23 BuildRequires: kf5-kcrash-devel >= %{version}
24 BuildRequires: kf5-kdbusaddons-devel >= %{version}
25 BuildRequires: kf5-kdoctools-devel >= %{version}
26 BuildRequires: kf5-ki18n-devel >= %{version}
27 BuildRequires: kf5-kio-devel >= %{version}
28 BuildRequires: kf5-kservice-devel >= %{version}
29 BuildRequires: kf5-kwindowsystem-devel >= %{version}
30 BuildRequires: libcap-devel
31 BuildRequires: libxcb-devel
33 BuildRequires: rpmbuild(macros) >= 1.736
34 BuildRequires: tar >= 1:1.22
35 BuildRequires: xorg-lib-libX11-devel
37 Requires: Qt5Core >= %{qtver}
38 Requires: Qt5DBus >= %{qtver}
39 Requires: Qt5Gui >= %{qtver}
41 Requires: kf5-kconfig >= %{version}
42 Requires: kf5-kcrash >= %{version}
43 Requires: kf5-kdbusaddons >= %{version}
44 Requires: kf5-ki18n >= %{version}
45 Requires: kf5-kio >= %{version}
46 Requires: kf5-kservice >= %{version}
47 Requires: kf5-kwindowsystem >= %{version}
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define qt5dir %{_libdir}/qt5
53 kdeinit is a process launcher somewhat similar to the famous init used
56 It launches processes by forking and then loading a dynamic library
57 which should contain a 'kdemain(...)' function.
59 Using kdeinit to launch KDE applications makes starting a typical KDE
60 applications 2.5 times faster (100ms instead of 250ms on a P-III 500)
61 It reduces memory consumption by approx. 350Kb per application.
64 Summary: Header files for %{kfname} development
65 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
66 Group: X11/Development/Libraries
67 Requires: %{name} = %{version}-%{release}
70 Header files for %{kfname} development.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe dla programistów używających %{kfname}.
76 %setup -q -n %{kfname}-%{version}
82 %{!?with_tests:-DBUILD_TESTING=OFF} \
83 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
93 rm -rf $RPM_BUILD_ROOT
94 %ninja_install -C build
99 rm -rf $RPM_BUILD_ROOT
101 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
104 %files -f %{kfname}5.lang
105 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/kdeinit5
108 %attr(755,root,root) %{_bindir}/kdeinit5_shutdown
109 %attr(755,root,root) %{_bindir}/kdeinit5_wrapper
110 %attr(755,root,root) %{_bindir}/kshell5
111 %attr(755,root,root) %{_bindir}/kwrapper5
112 %attr(755,root,root) %{_libexecdir}/kf5/klauncher
113 %attr(755,root,root) %{_libexecdir}/kf5/start_kdeinit
114 %attr(755,root,root) %{_libexecdir}/kf5/start_kdeinit_wrapper
115 %attr(755,root,root) %{_libdir}/libkdeinit5_klauncher.so
116 %{_datadir}/dbus-1/interfaces/kf5_org.kde.KLauncher.xml
117 %{_datadir}/qlogging-categories5/kinit.categories
118 %{_mandir}/man8/kdeinit5.8*
119 %lang(ca) %{_mandir}/ca/man8/kdeinit5.8*
120 %lang(de) %{_mandir}/de/man8/kdeinit5.8*
121 %lang(es) %{_mandir}/es/man8/kdeinit5.8*
122 %lang(it) %{_mandir}/it/man8/kdeinit5.8*
123 %lang(nl) %{_mandir}/nl/man8/kdeinit5.8*
124 %lang(pt) %{_mandir}/pt/man8/kdeinit5.8*
125 %lang(pt_BR) %{_mandir}/pt_BR/man8/kdeinit5.8*
126 %lang(sv) %{_mandir}/sv/man8/kdeinit5.8*
127 %lang(uk) %{_mandir}/uk/man8/kdeinit5.8*
128 %lang(fr) %{_mandir}/fr/man8/kdeinit5.8*
129 %{_datadir}/qlogging-categories5/kinit.renamecategories
132 %defattr(644,root,root,755)
133 %{_libdir}/cmake/KF5Init