Package init
This commit is contained in:
parent
e9ad696c2c
commit
6c14fbea8b
BIN
initial-setup-0.3.62.tar.gz
Normal file
BIN
initial-setup-0.3.62.tar.gz
Normal file
Binary file not shown.
11
initial-setup-add-support-openeuler.patch
Normal file
11
initial-setup-add-support-openeuler.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -uNrp a/initial_setup/product.py b/initial_setup/product.py
|
||||
--- a/initial_setup/product.py 2018-07-27 20:51:58.000000000 +0800
|
||||
+++ b/initial_setup/product.py 2019-08-12 22:19:17.280000000 +0800
|
||||
@@ -7,7 +7,7 @@ import os
|
||||
import glob
|
||||
|
||||
RELEASE_STRING_FILE = "/etc/os-release"
|
||||
-LICENSE_FILE_GLOB = "/usr/share/redhat-release*/EULA*"
|
||||
+LICENSE_FILE_GLOB = "/usr/share/openeuler-release*/EULA*"
|
||||
|
||||
log = logging.getLogger("initial-setup")
|
||||
82
initial-setup.spec
Normal file
82
initial-setup.spec
Normal file
@ -0,0 +1,82 @@
|
||||
Name: initial-setup
|
||||
Version: 0.3.62
|
||||
Release: 4
|
||||
Summary: Initialize system configuration for a newly installed computer
|
||||
License: GPLv2+
|
||||
URL: https://fedoraproject.org/wiki/InitialSetup
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch9001: initial-setup-add-support-openeuler.patch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
BuildRequires: gettext python3-devel python3-setuptools python3-nose systemd-units
|
||||
BuildRequires: gtk3-devel glade-devel anaconda >= 29.13 intltool
|
||||
Requires: python3 anaconda-tui >= 29.13 systemd >= 235 libreport-python3 util-linux
|
||||
Requires: gtk3 anaconda-gui >= 29.13 firstboot(windowmanager) xorg-x11-xinit
|
||||
Requires: xorg-x11-server-Xorg
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
Conflicts: firstboot < 19.2
|
||||
|
||||
Provides: %{name}-gui = %{version}-%{release}
|
||||
Obsoletes: %{name}-gui < %{version}-%{release}
|
||||
|
||||
%description
|
||||
The initial-setup application run during the first start of a newly installed computer and
|
||||
makes it possible to configure the computer according to the needs of the user.
|
||||
|
||||
%prep
|
||||
%autosetup -n initial-setup-r0.3.62-1 -p1
|
||||
rm -rf *.egg-info
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
if [ $1 -gt 1 ] ; then
|
||||
IS_GRAPHICAL_AVAILABLE=0
|
||||
IS_TEXT_AVAILABLE=0
|
||||
systemctl is-enabled initial-setup-graphical.service && IS_GRAPHICAL_AVAILABLE=1
|
||||
systemctl is-enabled initial-setup-text.service && IS_TEXT_AVAILABLE=1
|
||||
if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then
|
||||
systemctl stop initial-setup-graphical.service
|
||||
systemctl disable initial-setup-graphical.service
|
||||
fi
|
||||
if [ $IS_TEXT_AVAILABLE -eq 1 ]; then
|
||||
systemctl stop initial-setup-text.service
|
||||
systemctl disable initial-setup-text.service
|
||||
fi
|
||||
fi
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%systemd_postun %{name}.service
|
||||
|
||||
%files
|
||||
%doc README.rst COPYING
|
||||
%{python3_sitelib}/{initial_setup*,initial_setup/gui/*}
|
||||
%{_libexecdir}/%{name}/{run-initial-setup,firstboot-windowmanager,reconfiguration-mode-enabled}
|
||||
%{_libexecdir}/%{name}/{initial-setup-graphical,initial-setup-text}
|
||||
%{_unitdir}/{initial-setup,initial-setup-reconfiguration}.service
|
||||
|
||||
%changelog
|
||||
* Tue Feb 18 2020 xuxijian<xuxijian@huawei.com> - 0.36.62-4
|
||||
- Package init
|
||||
|
||||
* Fri Nov 15 2019 tianfei<tianfei16@huawei.com> - 0.3.62-3
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user