initial-setup/initial-setup.spec
lyn1001 1dccb0d33e Manually sync sp2 to sp3
(cherry picked from commit 0820b709e49d01174606c5d6b2e1664ec75fd44d)
2023-11-29 17:06:32 +08:00

104 lines
3.3 KiB
RPMSpec

Name: initial-setup
Version: 0.3.83
Release: 7
Summary: Initialize system configuration for a newly installed computer
License: GPLv2+
URL: https://github.com/rhinstaller/initial-setup
Source0: https://github.com/rhinstaller/initial-setup/archive/r0.3.83-1.tar.gz
Patch0001: Drop-python-nose-from-the-dependencies.patch
Patch9001: initial-setup-add-support-openeuler.patch
Patch9002: Adapt-to-category-title-translation-fix-in-Anaconda.patch
Patch9003: Add-Packit-support-for-initial-setup.patch
Patch9004: Remove-deprecated-support-for-add-ons.patch
Patch9005: Don-t-run-installation-tasks-of-add-ons-in-a-meta-ta.patch
Patch9006: Make-sure-the-output-from-custom_getpass-is-serializ.patch
%define debug_package %{nil}
BuildRequires: gettext python3-devel python3-setuptools systemd-units
BuildRequires: gtk3-devel glade-devel anaconda >= 29.13 intltool
Requires: python3 anaconda-tui >= 29.13 systemd >= 235 python3-libreport 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.83-1 -p1
rm -rf *.egg-info
%build
%make_build
%check
make test
%install
%make_install
%clean
rm -rf %{buildroot}
%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
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/*
%changelog
* Thu Jul 27 2023 shechenglong <shechenglong@xfusion.com> - 0.3.83-7
- Make sure the output from custom_getpass() is serialized after stdout
* Thu Jun 15 2023 yueyuankun <yueyuankun@kylinos.cn> - 0.3.83-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Don't run installation tasks of add-ons in a meta task
* Mon Jun 12 2023 chenchen <chen_aka_jan@163.com> - 0.3.83-5
- Remove old failing pre scriptlet
* Tue May 30 2023 Ge Wang<wang__ge@126.com> - 0.3.83-4
- Remove deprecated support for add-ons
* 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
* Tue Feb 22 2022 yangping<yangping69@huawei.com> - 0.3.83-1
- Upgrade to 0.3.83
* Sat Jan 08 2022 xu_ping<xuping33@huawei.com> - 0.36.62-7
- Drop python-nose
* Thu Aug 20 2020 lingsheng<lingsheng@huawei.com> - 0.36.62-6
- Change require to python3-libreport
* Tue Feb 18 2020 xuxijian<xuxijian@huawei.com> - 0.36.62-5
- Package init