!2 init package for openEuler
From: @tanyulong2021 Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
a9363f472b
BIN
kylin-user-guide-1.0.0.tar.gz
Normal file
BIN
kylin-user-guide-1.0.0.tar.gz
Normal file
Binary file not shown.
77
kylin-user-guide.spec
Normal file
77
kylin-user-guide.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
|
Name: kylin-user-guide
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A component of the ukui desktop environment that provides convenient text
|
||||||
|
License: GPL-2+
|
||||||
|
URL: http://www.ukui.org
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
BuildRequires: gsettings-qt-devel
|
||||||
|
BuildRequires: qt5-qtx11extras-devel
|
||||||
|
BuildRequires: kf5-kwindowsystem-devel
|
||||||
|
BuildRequires: qt5-qttools-devel
|
||||||
|
BuildRequires: qt5-qtwebkit-devel
|
||||||
|
BuildRequires: pkgconf
|
||||||
|
BuildRequires: libX11-devel
|
||||||
|
|
||||||
|
|
||||||
|
Requires: js-jquery
|
||||||
|
Requires: nodejs-requirejs
|
||||||
|
Requires: kylin-user-guide-common
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
A component of the ukui desktop environment that provides convenient text recording and flexible interface display
|
||||||
|
|
||||||
|
%package common
|
||||||
|
summary: common picture file
|
||||||
|
|
||||||
|
|
||||||
|
%description common
|
||||||
|
this packages contains the picture of application
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
cd %{_builddir}/%{name}-%{version}/build
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
mkdir -p %{buildroot}/usr/share/kylin-user-guide/web
|
||||||
|
cp -r %{_builddir}/%{name}-%{version}/src/web/*.html %{buildroot}/usr/share/kylin-user-guide/web
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/etc/xdg/autostart/
|
||||||
|
cp -r %{_builddir}/%{name}-%{version}/src/data/kylin-user-guide.desktop %{buildroot}/etc/xdg/autostart/
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/usr/share/kylin-user-guide/data
|
||||||
|
cp -r %{_builddir}/%{name}-%{version}/data/*png %{buildroot}/usr/share/kylin-user-guide/data
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/kylin-user-guide
|
||||||
|
%{_bindir}/user-guide-daemon
|
||||||
|
%{_datadir}/icons/hicolor/22x22/apps/kylin-user-guide.png
|
||||||
|
%{_datadir}/icons/hicolor/32x32/apps/kylin-user-guide.png
|
||||||
|
%{_datadir}/icons/hicolor/56x56/apps/kylin-user-guide.png
|
||||||
|
%{_datadir}/kylin-user-guide/web/*
|
||||||
|
%{_sysconfdir}/xdg/autostart/kylin-user-guide.desktop
|
||||||
|
|
||||||
|
%files common
|
||||||
|
%{_datadir}/kylin-user-guide/data/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Mar 15 2022 tanyulong <tanyulong@kylinos.cn> - 1.0.0-1
|
||||||
|
- init for openEuler
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user