From 3bff0d1a86fb93b9764345d627d8cd228b5a75db Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 1 Aug 2019 13:00:26 -0400 Subject: [PATCH] import initial-setup-0.3.62.1-1.el8 --- .gitignore | 1 + .initial-setup.metadata | 1 + SPECS/initial-setup.spec | 477 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 479 insertions(+) create mode 100644 .gitignore create mode 100644 .initial-setup.metadata create mode 100644 SPECS/initial-setup.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33e35a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/initial-setup-0.3.62.1.tar.gz diff --git a/.initial-setup.metadata b/.initial-setup.metadata new file mode 100644 index 0000000..972f4ef --- /dev/null +++ b/.initial-setup.metadata @@ -0,0 +1 @@ +1da52ef19fe287bdf4abe9bed681069cae3ad0d9 SOURCES/initial-setup-0.3.62.1.tar.gz diff --git a/SPECS/initial-setup.spec b/SPECS/initial-setup.spec new file mode 100644 index 0000000..0e51b09 --- /dev/null +++ b/SPECS/initial-setup.spec @@ -0,0 +1,477 @@ +Summary: Initial system configuration utility +Name: initial-setup +URL: https://fedoraproject.org/wiki/InitialSetup +Version: 0.3.62.1 +Release: 1%{?dist} + +# This is a Red Hat maintained package which is specific to +# our distribution. +# +# The source is thus available only from within this SRPM +# or via direct git checkout: +# git clone https://github.com/rhinstaller/initial-setup +Source0: %{name}-%{version}.tar.gz + +%define debug_package %{nil} +%define anacondaver 29.13 + +License: GPLv2+ +Group: System Environment/Base +BuildRequires: gettext +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose +BuildRequires: systemd-units +BuildRequires: gtk3-devel +BuildRequires: glade-devel +BuildRequires: anaconda >= %{anacondaver} +BuildRequires: intltool + +Requires: %{__python3} +Requires: anaconda-tui >= %{anacondaver} +Requires: systemd >= 235 +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +Requires: libreport-python3 +Requires: util-linux +Conflicts: firstboot < 19.2 + +%description +The initial-setup utility runs after installation. It guides the user through +a series of steps that allows for easier configuration of the machine. + +%package gui +Summary: Graphical user interface for the initial-setup utility +Requires: gtk3 +Requires: anaconda-gui >= %{anacondaver} +Requires: firstboot(windowmanager) +Requires: xorg-x11-xinit +Requires: xorg-x11-server-Xorg +Requires: %{name} = %{version}-%{release} + +%description gui +The initial-setup-gui package contains a graphical user interface for the +initial-setup utility. + +%prep +%setup -q + +# remove upstream egg-info +rm -rf *.egg-info + +%build +make + +%check +make test + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%find_lang %{name} + +%clean +rm -rf %{buildroot} + +%pre +# There is a possibility that an initial setup service might be running +# during package upgrade, which can together with an old version +# of initial setup (<= 0.3.36) cause the rpm transaction to deadlock. +# So turn of and disable any Initial Setup services if the pre +# scriptlet is running during upgrade or package removal to prevent +# the deadlock. + +# upgrade or package removal only +if [ $1 -gt 1 ] ; then + IS_GRAPHICAL="initial-setup-graphical.service" + IS_TEXT="initial-setup-text.service" + IS_GRAPHICAL_AVAILABLE=0 + IS_TEXT_AVAILABLE=0 + # check if the Initial Setup unit is enabled and the executable is available + systemctl is-enabled $IS_GRAPHICAL && IS_GRAPHICAL_AVAILABLE=1 + systemctl is-enabled $IS_TEXT && IS_TEXT_AVAILABLE=1 + if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then + systemctl stop $IS_GRAPHICAL + systemctl disable $IS_GRAPHICAL + fi + if [ $IS_TEXT_AVAILABLE -eq 1 ]; then + systemctl stop $IS_TEXT + systemctl disable $IS_TEXT + fi +fi + +%post +%systemd_post initial-setup.service + +%preun +%systemd_preun initial-setup.service + +%postun +%systemd_postun initial-setup.service + +%pre gui +# There is a possibility that an initial setup service might be running +# during package upgrade, which can together with an old version +# of initial setup (<= 0.3.36) cause the rpm transaction to deadlock. +# So turn off and disable any Initial Setup services if the pre +# scriptlet is running during upgrade or package removal to prevent +# the deadlock. + +# upgrade or package removal only +if [ $1 -gt 1 ] ; then + IS_GRAPHICAL="initial-setup-graphical.service" + IS_TEXT="initial-setup-text.service" + IS_GRAPHICAL_AVAILABLE=0 + IS_TEXT_AVAILABLE=0 + # check if the Initial Setup unit is enabled and the executable is available + systemctl is-enabled $IS_GRAPHICAL && IS_GRAPHICAL_AVAILABLE=1 + systemctl is-enabled $IS_TEXT && IS_TEXT_AVAILABLE=1 + if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then + systemctl stop $IS_GRAPHICAL + systemctl disable $IS_GRAPHICAL + fi + if [ $IS_TEXT_AVAILABLE -eq 1 ]; then + systemctl stop $IS_TEXT + systemctl disable $IS_TEXT + fi +fi + +%files -f %{name}.lang +%doc README.rst +%license COPYING +%{python3_sitelib}/initial_setup* +%exclude %{python3_sitelib}/initial_setup/gui +%{_libexecdir}/%{name}/run-initial-setup +%{_libexecdir}/%{name}/firstboot-windowmanager +%{_libexecdir}/%{name}/initial-setup-text +%{_libexecdir}/%{name}/reconfiguration-mode-enabled +%{_unitdir}/initial-setup.service +%{_unitdir}/initial-setup-reconfiguration.service + +%ifarch s390 s390x +%{_sysconfdir}/profile.d/initial-setup.sh +%{_sysconfdir}/profile.d/initial-setup.csh +%endif + +%files gui +%{_libexecdir}/%{name}/initial-setup-graphical +%{python3_sitelib}/initial_setup/gui/* + +%changelog +* Mon Dec 10 2018 Martin Kolman - 0.3.62.1-1 +- Update Zanata config for RHEL8 (mkolman) + Resolves: rhbz#1608303 +* Thu Sep 20 2018 Tomas Orsava - 0.3.62-2 +- Require the Python interpreter directly instead of using the package name +- Related: rhbz#1619153 + +* Fri Jul 27 2018 Martin Kolman - 0.3.62-1 +- Make EULA spoke name compatible with three column hub (mkolman) +- Blacklist the ptmx console from multi-tty use (mkolman) +- Add support for showing an EULA spoke (mkolman) +- Add explicit dependency on X server for the GUI sub-package (mkolman) + +* Wed May 09 2018 Martin Kolman - 0.3.61-1 +- Fix the users module import (#1575650) (mkolman) + +* Fri May 04 2018 Martin Kolman - 0.3.60-1 +- Fix name of the Zanata Python client package (mkolman) +- Use the Anaconda default for DBUS module timeout (mkolman) + +* Mon Apr 23 2018 Martin Kolman - 0.3.59-1 +- Fix version number in setup.py (mkolman) + +* Thu Apr 19 2018 Martin Kolman - 0.3.58-1 +- Run only the supported kickstart modules (#1566621) (vponcova) + +* Tue Apr 10 2018 Martin Kolman - 0.3.57-1 +- Adapt to a new Simpleline input handling (jkonecny) + +* Mon Mar 19 2018 Martin Kolman - 0.3.56-1 +- Adjust to Hub behavior change (mkolman) +- Apply the Anaconda modularization changes (vponcova) + +* Mon Mar 05 2018 Martin Kolman - 0.3.55-1 +- Handle kickstart commands provided by DBUS modules (mkolman) +- Adapt to changes in starting Boss (mkolman) + +* Wed Feb 28 2018 Martin Kolman - 0.3.54-1 +- Start and stop Boss (mkolman) +- New version 0.3.53 (mkolman) +- Add common function for finding bugreport URL (riehecky) + +* Fri Jan 19 2018 Martin Kolman - 0.3.53-1 +- Fix imports after Anaconda refactoring (jkonecny) +- Return correct code at startup script success/failure (mkolman) + +* Wed Nov 29 2017 Martin Kolman - 0.3.52-1 +- Use getty-pre.target to prevent getty from running (mkolman) + +* Thu Oct 05 2017 Martin Kolman - 0.3.51-1 +- Don't print directory changes when outputting the changelog (mkolman) +- Automate release creation (mkolman) +- Don't include merges in the spec file changelog (mkolman) +- Update initial-setup-reconfiguration.service too, add another (mvebu) serial console (pbrobinson) +- Add some more serial console options for ARM (pbrobinson) + +* Mon Sep 11 2017 Martin Kolman - 0.3.50-1 +- Use constant+offset when turning systemd console logging on/off (mkolman) +- Add some more serial console options (pbrobinson) + +* Wed Aug 30 2017 Martin Kolman - 0.3.49-1 +- Use new Simpleline package (jkonecny) +- Remove unused import (jkonecny) +- add yet another ARM serial console (sjenning) + +* Wed Jul 12 2017 Martin Kolman - 0.3.48-1 +- Fix Anaconda threading import name (#1469776) (mkolman) + +* Fri Jun 02 2017 Martin Kolman - 0.3.47-1 +- Adapt to anaconda_log module name change (mkolman) + +* Wed May 24 2017 Martin Kolman - 0.3.46-2 +- Drop Anaconda version bump for now (mkolman) + +* Wed May 24 2017 Martin Kolman - 0.3.46-1 +- Add support for password entry from arbitrary consoles (#1438046) (mkolman) + +* Wed May 17 2017 Martin Kolman - 0.3.45-1 +- Remove stdin & stdout definition from unit files (#1438046) (mkolman) + +* Mon May 15 2017 Martin Kolman - 0.3.44-1 +- Run the Initial Setup TUI on all usable consoles (#1438046) (mkolman) + +* Wed Sep 21 2016 Martin Kolman - 0.3.43-1 +- Initialize SAM on startup (#1375721) (mkolman) +- Log unhandled exceptions to Journal (mkolman) +- Suppress logging to stdout when TUI is started by s390 startup scripts (mkolman) +- Fix path to TUI executable in the s390 startup scripts (#1366776) (mkolman) +- Canonicalize symlinks returned by readlink (mkolman) + +* Fri Aug 05 2016 Martin Kolman - 0.3.42-1 +- Fix a typo (mkolman) +- Don't run the GUI on text-only systems (#1360343) (mkolman) + +* Wed Jun 08 2016 Martin Kolman - 0.3.41-1 +- Fix reconfiguration service name (mkolman) +- Fix installation path for the reconfiguration-mode-enabled script (mkolman) +- Use the environs flag when setting the environment (mkolman) +- Some typo fixes and logging improvements (mkolman) +- Add a systemd service that enables Initial Setup if /.unconfigured exists (#1257624) (mkolman) +- Adapt to addon execute() signature change (mkolman) +- Replace hardcoded python3 call by a variable (mkolman) +- Nicer systemctl calls (mkolman) +- Use systemd-cat also for the run-initial-setup script (mkolman) +- Remove a redundant Requires: line (mkolman) +- Fix a typo (mkolman) +- Run correct systemd scriptlets (mkolman) +- Use systemd-cat for logging to the journal (mkolman) + +* Thu Mar 24 2016 Martin Kolman - 0.3.40-1 +- Use blank title for the Initial Setup window (mkolman) +- Start the window manager correctly (#1160891) (mkolman) +- Fix some rpmlint warnings (mkolman) + +* Tue Feb 16 2016 Martin Kolman - 0.3.39-1 +- Disable the correct service on successful completion (#1298725) (mkolman) + +* Tue Dec 01 2015 Martin Kolman - 0.3.38-1 +- Make Initial Setup startup more robust (mkolman) +- Move the s390 profile scripts to a subfolder (mkolman) +- Improve log messages for kickstart parsing error (mkolman) + +* Wed Sep 30 2015 Martin Kolman - 0.3.37-1 +- Stop any Initial Setup services before upgrading package (#1244394) (mkolman) +- Replace systemd_postun_with_restart with systemd_postun (#1244394) (mkolman) +- Fix 'bumpver' make target (vtrefny) +- Add archive target to Makefile (vtrefny) + +* Mon Aug 31 2015 Martin Kolman - 0.3.36-1 +- Setup the locale before starting the UI (dshea) +- Run the TUI service before hvc0.service (#1209731) (mkolman) +- Don't create /etc/sysconfig/initial-setup on s390 (#1181209) (mkolman) +- Use systemd service status for run detection on S390 console (#1181209) (mkolman) +- Read the kickstart from previous IS run, if available (#1110439) (mkolman) +- Add support for externally triggered reconfig mode (#1110439) (mkolman) +- Log the reason if GUI import fails (#1229747) (mkolman) + +* Thu Jul 30 2015 Martin Kolman - 0.3.35-1 +- Fix a typo in Makefile (#1244558) (mkolman) + +* Thu Jul 30 2015 Martin Kolman - 0.3.34-1 +- Switch Initial Setup to Python 3 (#1244558) (mkolman) + +* Thu Apr 23 2015 Martin Kolman - 0.3.33-1 +- Improve the Makefile (mkolman) +- Remove old GUI testing code from the Makefile (mkolman) +- Update upstream URL (#1213101) (mkolman) +- Update upstream Git repository URL (mkolman) + +* Tue Mar 31 2015 Martin Kolman - 0.3.32-1 +- Point out the err in case that ks parsing failed (#1145130) (fabiand) +- Switch to Zanata for translations (mkolman) + +* Wed Mar 04 2015 Martin Kolman - 0.3.31-1 +- Use kwin_x11 for kde/plasma spin (#1197135) (rdieter) + +* Fri Feb 13 2015 Martin Kolman - 0.3.29-1 +- Split scriptlets for the gui subpackage (mkolman) +- Use /usr/bin/python2 in scripts (mkolman) + +* Thu Feb 05 2015 Martin Kolman - 0.3.28-1 +- Fix breakage caused by README file rename (mkolman) + +* Thu Feb 05 2015 Martin Kolman - 0.3.27-1 +- Remove unneeded dependencies (mkolman) +- Add the rst suffix to the README file (mkolman) +- Update the link to the upstream source code repository (mkolman) +- Add AnacondaKSHandler no-member error to pylint-false-positives. (mulhern) +- Mark strings for translation when module is loaded. (mulhern) +- Fix easy pylint errors. (mulhern) +- Add pylint testing infrastructure. (mulhern) + +* Mon Nov 3 2014 Martin Kolman - 0.3.26-1 +- Explicitly require the main package in the GUI sub package (#1078917) (mkolman) + +* Thu Oct 23 2014 Martin Kolman - 0.3.25-1 +- Add syslog logging support (#1145122) (mkolman) + +* Fri Oct 10 2014 Martin Kolman - 0.3.24-1 +- Fix Initial Setup to correctly support the Anaconda built-in Help (#1072033) (mkolman) +- Populate README (#1110178) (master-log) (mkolman) +- Remove the --disable-overwrite parameter for the Transifex client (mkolman) + +* Fri Aug 08 2014 Martin Kolman - 0.3.23-1 +- Adapt to class changes in Anaconda (vpodzime) + +* Fri Jul 04 2014 Martin Kolman - 0.3.22-1 +- Update the initial-setup hub for the new HubWindow API (dshea) + +* Sat May 31 2014 Peter Robinson 0.3.21-2 +- Only the GUI needs a window manager + +* Wed May 28 2014 Martin Kolman - 0.3.21-1 +- Adapt to python-nose API change (mkolman) + +* Thu May 22 2014 Martin Kolman - 0.3.20-1 +- Adapt Initial Setup to the new way Anaconda handles root path (#1099581) (vpodzime) + +* Tue May 06 2014 Martin Kolman - 0.3.19-1 +- Bump required Anaconda version due to TUI category handling change (mkolman) +- Override Hub collect methods also in TUI hub (mkolman) +- Translation update + +* Mon Apr 28 2014 Martin Kolman - 0.3.18-1 +- Remove debugging code that was left in the tarball by mistake (#1091470) (mkolman) +- Translation update + +* Fri Apr 11 2014 Martin Kolman - 0.3.17-1 +- Set initial-setup translation domain for the hub (#1040240) (mkolman) + +* Thu Apr 03 2014 Martin Kolman - 0.3.16-1 +- initial-setup-gui requires the initial-setup package (vpodzime) + +* Wed Mar 19 2014 Martin Kolman - 0.3.15-1 +- Import the product module (#1077390) (vpodzime) + +* Tue Feb 11 2014 Vratislav Podzimek - 0.3.14-1 +- Try to quit plymouth before running our X server instance (#1058329) +- Get rid of the empty debuginfo package (#1062738) + +* Wed Feb 05 2014 Vratislav Podzimek - 0.3.13-1 +- Make Initial Setup an arch specific package (#1057590) (vpodzime) + +* Thu Nov 28 2013 Vratislav Podzimek - 0.3.12-1 +- Adapt to changes in anaconda tui spoke categories (#1035462) (vpodzime) +- Ignore the SIGINT (#1035590) (vpodzime) + +* Wed Nov 20 2013 Vratislav Podzimek - 0.3.11-1 +- Fix how spokes are collected for the I-S main hub (vpodzime) +- Override distribution text in spokes (#1028370) (vpodzime) +- Get rid of the useless modules directory (vpodzime) +- Split GUI code into a separate package (#999464) (vpodzime) +- Fallback to text UI if GUI is not available (vpodzime) + +* Tue Nov 05 2013 Vratislav Podzimek - 0.3.10-1 +- Do not try to kill unexisting process (vpodzime) +- Add some logging to our shell scripts (vpodzime) + +* Thu Sep 26 2013 Vratislav Podzimek - 0.3.9-1 +- Yet another serial console in ARMs (#1007163) (vpodzime) +- Fix the base mask of initial_setup gui submodules (vpodzime) +- Specify and use environment of the main hub (vpodzime) + +* Tue Sep 10 2013 Vratislav Podzimek - 0.3.8-1 +- Read /etc/os-release to get product title (#1000426) (vpodzime) +- Don't let product_title() return None (vpodzime) +- Apply the timezone and NTP configuration (#985566) (hdegoede) +- Make handling translations easier (vpodzime) +- Make translations work (vpodzime) +- Sync changelog with downstream (vpodzime) + +* Tue Aug 27 2013 Vratislav Podzimek - 0.3.7-1 +- Prevent getty on various services killing us (#979174) (vpodzime) +- Initialize network logging for the network spoke (vpodzime) + +* Sat Aug 03 2013 Fedora Release Engineering - 0.3.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jun 18 2013 Vratislav Podzimek - 0.3.6-2 +- Rebuild with dependencies available. + +* Tue Jun 18 2013 Vratislav Podzimek - 0.3.6-1 +- Make serial-getty wait for us as well (#970719) (vpodzime) +- Disable the service only on successful exit (#967617) (vpodzime) + +* Wed May 22 2013 Vratislav Podzimek - 0.3.5-1 +- Reference the new repository in the .spec file (vpodzime) +- Prevent systemd services from running on live images (#962196) (awilliam) +- Don't traceback if the expected kickstart file doesn't exist (#950796) (vpodzime) + +* Mon Apr 8 2013 Vratislav Podzimek - 0.3.4-3 +- Rebuild with fixed spec that partly reverts the previous change + +* Fri Apr 5 2013 Vratislav Podzimek - 0.3.4-2 +- Rebuild with fixed spec that enables services after installation + +* Thu Mar 28 2013 Martin Sivak - 0.3.4-1 +- Search for proper UI variant of addons +- Add addon directories to sys.path + +* Tue Mar 26 2013 Martin Sivak - 0.3.3-1 +- Systemd unit files improved + +* Tue Mar 26 2013 Martin Sivak - 0.3.2-1 +- Modify the ROOT_PATH properly +- Do not execute old ksdata (from anaconda's ks file) +- Save the resulting configuration to /root/initial-setup-ks.cfg + +* Tue Mar 26 2013 Martin Sivak - 0.3.1-2 +- Require python-di package + +* Thu Mar 21 2013 Martin Sivak - 0.3.1-1 +- Use updated Anaconda API +- Request firstboot environment spokes +- Initialize anaconda threading properly + +* Wed Mar 13 2013 Martin Sivak - 0.3-1 +- Use updated Anaconda API +- Fix systemd units +- Add localization spokes to TUI +- Write changes to disk +- Conflict with old firstboot + +* Wed Feb 13 2013 Martin Sivak 0.2-1 +- Updates for package review +- Firstboot-windowmanager script + +* Wed Feb 13 2013 Martin Sivak 0.1-3 +- Updates for package review + +* Tue Jan 22 2013 Martin Sivak 0.1-2 +- Updates for package review + +* Tue Nov 06 2012 Martin Sivak 0.1-1 +- Initial release