Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c585f89ff9
!45 Update to version 0.3.94
From: @wang--ge 
Reviewed-by: @wu-leilei 
Signed-off-by: @wu-leilei
2023-10-08 06:44:16 +00:00
wang--ge
0556a2b1ec update to version 0.3.94 2023-10-08 11:01:10 +08:00
openeuler-ci-bot
68216e5024
!43 Remove deprecated support for add-ons
From: @wk333 
Reviewed-by: @wu-leilei 
Signed-off-by: @wu-leilei
2023-08-28 06:54:04 +00:00
wk333
33018e2e33 Remove deprecated support for add-ons 2023-08-28 11:32:45 +08:00
openeuler-ci-bot
931ca4cc9f
!36 Make sure the output from custom_getpass() is serialized after stdout
From: @dog-life 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-07-17 06:58:04 +00:00
shechenglong
19cafe5ccc Make sure the output from custom_getpass() is serialized after stdout
Signed-off-by: shechenglong <shechenglong@xfusion.com>
2023-07-17 14:04:45 +08:00
openeuler-ci-bot
b79dbc758e
!28 Add Packit support for initial-setup
From: @xu_lei_123 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-30 09:32:47 +00:00
xu_lei_123
d6a6717fe9 Add Packit support for initial-setup 2022-12-30 16:46:28 +08:00
openeuler-ci-bot
0bac0e4cd5
!25 Adapt to category title translation fix in Anaconda
From: @xu_lei_123 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-30 08:31:29 +00:00
xu_lei_123
4ab8f7b4b4 Adapt to category title translation fix in Anaconda 2022-12-30 13:40:31 +08:00
6 changed files with 55 additions and 76 deletions

View File

@ -1,36 +0,0 @@
From 9c8ba1568f48079626d7cce2912420ba30064ef3 Mon Sep 17 00:00:00 2001
From: Vendula Poncova <vponcova@redhat.com>
Date: Fri, 12 Feb 2021 10:14:50 +0100
Subject: [PATCH] Drop python-nose from the dependencies (#1916799)
The initial setup doesn't use it.
Resolves: rhbz#1916799
---
initial-setup.spec | 1 -
setup.py | 1 -
2 files changed, 2 deletions(-)
diff --git a/initial-setup.spec b/initial-setup.spec
index 37bd5bf..2d75b6c 100644
--- a/initial-setup.spec
+++ b/initial-setup.spec
@@ -20,7 +20,6 @@ Group: System Environment/Base
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: python3-setuptools
-BuildRequires: python3-nose
BuildRequires: systemd-units
BuildRequires: gtk3-devel
BuildRequires: glade-devel
diff --git a/setup.py b/setup.py
index 73cc025..9ab4ff9 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,6 @@ setup(
"": ["*.glade"]
},
data_files = data_files,
- setup_requires= ['nose>=1.0'],
test_suite = "initial_setup",
long_description=read('README.rst'),
classifiers=[

19
anaconda-template.json Normal file
View File

@ -0,0 +1,19 @@
{
"_comment_": [
"This is a comment",
"with multiple lines."
],
"_default_": {
"file": "default-help.xml",
"anchor": ""
},
"installation-summary": {
"file": "anaconda-help.xml",
"anchor": ""
},
"user-configuration": {
"file": "anaconda-help.xml",
"anchor": "creating-a-user-account"
}
}

View File

@ -1,11 +0,0 @@
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")

View File

@ -1,21 +1,21 @@
Name: initial-setup Name: initial-setup
Version: 0.3.83 Version: 0.3.94
Release: 1 Release: 1
Summary: Initialize system configuration for a newly installed computer Summary: Initialize system configuration for a newly installed computer
License: GPLv2+ License: GPLv2+
URL: https://github.com/rhinstaller/initial-setup URL: https://github.com/rhinstaller/initial-setup
Source0: https://github.com/rhinstaller/initial-setup/archive/r0.3.83-1.tar.gz Source0: https://github.com/rhinstaller/initial-setup/archive/r%{version}-1.tar.gz
Patch0001: Drop-python-nose-from-the-dependencies.patch Source1: anaconda-template.json
Patch9001: initial-setup-add-support-openeuler.patch
%define debug_package %{nil} %define debug_package %{nil}
BuildRequires: gettext python3-devel python3-setuptools systemd-units BuildRequires: gettext python3-devel python3-setuptools systemd-units
BuildRequires: gtk3-devel glade-devel anaconda >= 29.13 intltool BuildRequires: gtk3-devel glade-devel anaconda >= 36.7 intltool
Requires: python3 anaconda-tui >= 29.13 systemd >= 235 python3-libreport util-linux Requires: python3 anaconda-tui >= 36.7 systemd >= 235 python3-libreport util-linux
Requires: gtk3 anaconda-gui >= 29.13 firstboot(windowmanager) xorg-x11-xinit Requires: gtk3 anaconda-gui >= 36.7 firstboot(windowmanager) xorg-x11-xinit
Requires: xorg-x11-server-Xorg Requires: xorg-x11-server-Xorg
Requires: python3-simpleline >= 1.4
Requires: isocut
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
@ -29,38 +29,26 @@ The initial-setup application run during the first start of a newly installed co
makes it possible to configure the computer according to the needs of the user. makes it possible to configure the computer according to the needs of the user.
%prep %prep
%autosetup -n initial-setup-r0.3.83-1 -p1 %autosetup -n initial-setup-r%{version}-1 -p1
rm -rf *.egg-info rm -rf *.egg-info
#Source0 is not a git project, generate empty changlog
touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' > ChangeLog
sed -i 's/\/root\/anaconda-ks.cfg/\/etc\/isocut\/anaconda-ks.cfg/g' initial_setup/__init__.py
%build %build
%make_build %make_build
%check
make test
%install %install
%make_install %make_install
install -d -m 0755 %{buildroot}%{_datadir}/anaconda/help
cp %{SOURCE1} %{buildroot}%{_datadir}/anaconda/help/anaconda-tui.json
cp %{SOURCE1} %{buildroot}%{_datadir}/anaconda/help/anaconda-gui.json
%clean %clean
rm -rf %{buildroot} 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 %post
%systemd_post %{name}.service %systemd_post %{name}.service
@ -71,6 +59,7 @@ fi
%systemd_postun %{name}.service %systemd_postun %{name}.service
%files %files
#-f %{name}.lang
%doc README.rst COPYING %doc README.rst COPYING
%{python3_sitelib}/{initial_setup*,initial_setup/gui/*} %{python3_sitelib}/{initial_setup*,initial_setup/gui/*}
%{_libexecdir}/%{name}/{run-initial-setup,firstboot-windowmanager,reconfiguration-mode-enabled} %{_libexecdir}/%{name}/{run-initial-setup,firstboot-windowmanager,reconfiguration-mode-enabled}
@ -79,9 +68,27 @@ fi
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d %dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/* %config %{_sysconfdir}/%{name}/conf.d/*
%{_datadir}/anaconda/help/*
%exclude %{_defaultdocdir}/%{name}/ChangeLog
%changelog %changelog
* Sat Oct 07 2023 Ge Wang <wang__ge@126.com> - 0.3.94-1
- Update to version 0.3.94
* Mon Aug 28 2023 wangkai <13474090681@163.com> - 0.3.83-5
- Remove deprecated support for add-ons
- Remove old failing pre scriptlet
- Fix rpm version
* Mon Jul 17 2023 shechenglong<shechenglong@xfusion.com> - 0.3.83-4
- Make sure the output from custom_getpass() is serialized after stdout
* Fri Dec 30 2022 xulei<xulei@xfusion.com> - 0.3.83-3
- Add Packit support for initial-setup
* Fri Dec 30 2022 xulei<xulei@xfusion.com> - 0.3.83-2
- Adapt to category title translation fix in Anaconda
* Fri Apr 29 2022 yangping<yangping69@h-partners.com> - 0.3.83-1 * Fri Apr 29 2022 yangping<yangping69@h-partners.com> - 0.3.83-1
- Upgrade to 0.3.83 - Upgrade to 0.3.83

Binary file not shown.

BIN
r0.3.94-1.tar.gz Normal file

Binary file not shown.