]>
Commit | Line | Data |
---|---|---|
f0c7b36e | 1 | %define kdeframever 5.56 |
b2604984 | 2 | %define qtver 5.9.0 |
8ab2d178 | 3 | %define kfname kinit |
fd2e2af6 WF |
4 | |
5 | Summary: Helper library to speed up start of applications on KDE workspaces | |
8ab2d178 | 6 | Name: kf5-%{kfname} |
f0c7b36e | 7 | Version: 5.56.0 |
88466541 | 8 | Release: 1 |
fd2e2af6 WF |
9 | License: LGPL v2.1+ |
10 | Group: X11/Libraries | |
8ab2d178 | 11 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
f0c7b36e | 12 | # Source0-md5: 45b405b1a0305c903355ca42c744e1ae |
fd2e2af6 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: cmake >= 2.8.12 | |
15 | BuildRequires: gettext-devel | |
8ab2d178 AM |
16 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
17 | BuildRequires: kf5-kio-devel >= %{version} | |
fd2e2af6 | 18 | BuildRequires: libcap-devel |
f0c7b36e | 19 | BuildRequires: ninja |
fd2e2af6 WF |
20 | BuildRequires: rpmbuild(macros) >= 1.164 |
21 | BuildRequires: tar >= 1:1.22 | |
22 | BuildRequires: xorg-lib-libX11-devel | |
23 | BuildRequires: xz | |
4f49bfae | 24 | Requires: kf5-dirs |
fd2e2af6 WF |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %define qt5dir %{_libdir}/qt5 | |
28 | ||
29 | %description | |
30 | kdeinit is a process launcher somewhat similar to the famous init used | |
31 | for booting UNIX. | |
32 | ||
33 | It launches processes by forking and then loading a dynamic library | |
34 | which should contain a 'kdemain(...)' function. | |
35 | ||
36 | Using kdeinit to launch KDE applications makes starting a typical KDE | |
37 | applications 2.5 times faster (100ms instead of 250ms on a P-III 500) | |
38 | It reduces memory consumption by approx. 350Kb per application. | |
39 | ||
40 | %package devel | |
8ab2d178 AM |
41 | Summary: Header files for %{kfname} development |
42 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
fd2e2af6 WF |
43 | Group: X11/Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
8ab2d178 | 47 | Header files for %{kfname} development. |
fd2e2af6 WF |
48 | |
49 | %description devel -l pl.UTF-8 | |
8ab2d178 | 50 | Pliki nagłówkowe dla programistów używających %{kfname}. |
fd2e2af6 WF |
51 | |
52 | %prep | |
8ab2d178 | 53 | %setup -q -n %{kfname}-%{version} |
fd2e2af6 WF |
54 | |
55 | %build | |
56 | install -d build | |
57 | cd build | |
f0c7b36e | 58 | %cmake -G Ninja \ |
8ab2d178 | 59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
fd2e2af6 | 60 | ../ |
f0c7b36e | 61 | %ninja_build |
fd2e2af6 WF |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
f0c7b36e | 65 | %ninja_install -C build |
fd2e2af6 | 66 | |
8ab2d178 | 67 | %find_lang %{kfname}5 |
fd2e2af6 WF |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
8ab2d178 | 75 | %files -f %{kfname}5.lang |
fd2e2af6 WF |
76 | %defattr(644,root,root,755) |
77 | %doc README.md | |
b2604984 | 78 | /etc/xdg/kinit.categories |
fd2e2af6 WF |
79 | %attr(755,root,root) %{_bindir}/kdeinit5 |
80 | %attr(755,root,root) %{_bindir}/kdeinit5_shutdown | |
81 | %attr(755,root,root) %{_bindir}/kdeinit5_wrapper | |
82 | %attr(755,root,root) %{_bindir}/kshell5 | |
83 | %attr(755,root,root) %{_bindir}/kwrapper5 | |
c321323e AM |
84 | %attr(755,root,root) %{_libexecdir}/kf5/klauncher |
85 | %attr(755,root,root) %{_libexecdir}/kf5/start_kdeinit | |
86 | %attr(755,root,root) %{_libexecdir}/kf5/start_kdeinit_wrapper | |
fd2e2af6 WF |
87 | %attr(755,root,root) %{_libdir}/libkdeinit5_klauncher.so |
88 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.KLauncher.xml | |
89 | %{_mandir}/man8/kdeinit5.8* | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %{_libdir}/cmake/KF5Init |