init package
This commit is contained in:
parent
7f9b50a3bd
commit
f2e8c6e579
99
kf5-kinit.spec
Normal file
99
kf5-kinit.spec
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
%global framework kinit
|
||||||
|
%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||||
|
|
||||||
|
Name: kf5-%{framework}
|
||||||
|
Version: 5.55.0
|
||||||
|
Release: 1
|
||||||
|
Summary: KDE Frameworks 5 tier 3 solution for process launching
|
||||||
|
|
||||||
|
License: LGPLv2+ and BSD
|
||||||
|
URL: https://cgit.kde.org/%{framework}.git
|
||||||
|
|
||||||
|
%global versiondir %(echo %{version} | cut -d. -f1-2)
|
||||||
|
%global revision %(echo %{version} | cut -d. -f3)
|
||||||
|
%if %{revision} >= 50
|
||||||
|
%global stable unstable
|
||||||
|
%else
|
||||||
|
%global stable stable
|
||||||
|
%endif
|
||||||
|
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Source10: macros.kf5-kinit
|
||||||
|
|
||||||
|
## upstream patches
|
||||||
|
|
||||||
|
BuildRequires: extra-cmake-modules >= %{version}
|
||||||
|
BuildRequires: kf5-rpm-macros
|
||||||
|
BuildRequires: kf5-kconfig-devel >= %{version}
|
||||||
|
BuildRequires: kf5-kcrash-devel >= %{version}
|
||||||
|
BuildRequires: kf5-kdoctools-devel >= %{version}
|
||||||
|
BuildRequires: kf5-ki18n-devel >= %{version}
|
||||||
|
BuildRequires: kf5-kio-devel >= %{version}
|
||||||
|
BuildRequires: kf5-kservice-devel >= %{version}
|
||||||
|
BuildRequires: kf5-kwindowsystem-devel >= %{version}
|
||||||
|
|
||||||
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig(libcap)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: pkgconfig(xcb)
|
||||||
|
|
||||||
|
%description
|
||||||
|
kdeinit is a process launcher somewhat similar to the famous init used for
|
||||||
|
booting UNIX.
|
||||||
|
|
||||||
|
It launches processes by forking and then loading a dynamic library which should
|
||||||
|
contain a 'kdemain(...)' function.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{framework}-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir %{_target_platform}
|
||||||
|
pushd %{_target_platform}
|
||||||
|
%{cmake_kf5} ..
|
||||||
|
popd
|
||||||
|
|
||||||
|
make %{?_smp_mflags} -C %{_target_platform}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||||
|
|
||||||
|
%find_lang kinit5_qt --with-man --with-qt --all-name
|
||||||
|
|
||||||
|
# rpm macros
|
||||||
|
install -p -m644 -D %{SOURCE10} \
|
||||||
|
%{buildroot}%{rpm_macros_dir}/macros.%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files -f kinit5_qt.lang
|
||||||
|
%doc README.md
|
||||||
|
%license COPYING.LIB
|
||||||
|
%{_kf5_sysconfdir}/xdg/%{framework}.*
|
||||||
|
%{_kf5_bindir}/*
|
||||||
|
%{_kf5_libdir}/libkdeinit5_klauncher.so
|
||||||
|
%{_kf5_libexecdir}/*
|
||||||
|
%{_kf5_mandir}/man8/kdeinit5.8*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_kf5_libdir}/cmake/KF5Init/
|
||||||
|
%{_kf5_datadir}/dbus-1/interfaces/*.xml
|
||||||
|
%{rpm_macros_dir}/macros.%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
||||||
|
- Initial release for OpenEuler
|
||||||
4
kf5-kinit.yaml
Normal file
4
kf5-kinit.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: KDE/kinit
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
kinit-5.55.0.tar.xz
Normal file
BIN
kinit-5.55.0.tar.xz
Normal file
Binary file not shown.
4
macros.kf5-kinit
Normal file
4
macros.kf5-kinit
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
%kf5_kinit_requires \
|
||||||
|
Requires: kf5-kinit%{?_isa}\
|
||||||
|
%{nil}
|
||||||
Loading…
x
Reference in New Issue
Block a user