104 lines
2.9 KiB
RPMSpec
104 lines
2.9 KiB
RPMSpec
Name: migration-tools
|
|
Version: 1.0.0
|
|
Release: 8
|
|
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
|
License: MulanPSL-2.0
|
|
Source0: ut-Migration-tools.tar.gz
|
|
Patch0: 0001-fix-export-error-and-no-migration-details-issue.patch
|
|
Patch1: 0002-fix-uefi-boot-failed.patch
|
|
Patch2: 0003-modify-grub-rules-to-match-NIC-name.patch
|
|
Patch3: 0004-use-kill-not-kill-INT-when-stop-service.patch
|
|
|
|
# CVE patches: >= 100
|
|
Patch100: 0001-CVE-2024-24892.patch
|
|
|
|
BuildArch: noarch
|
|
%description
|
|
UOS Migration Software
|
|
|
|
%package -n migration-tools-server
|
|
Summary: migration-tools-server
|
|
License: MulanPSL-2.0
|
|
Requires: python3
|
|
Requires: python3-pip
|
|
Requires: sshpass
|
|
Requires: python3-paramiko
|
|
Requires: python3-flask
|
|
Requires: python3-requests
|
|
|
|
%description -n migration-tools-server
|
|
Migration software server side
|
|
|
|
|
|
%prep
|
|
%setup -c
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
|
|
# cve patches
|
|
%patch100 -p1
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/migration-tools-server
|
|
mkdir -p $RPM_BUILD_ROOT/var/tmp/uos-migration
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/etc/migration-tools
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
cp -r ut-Migration-tools/* $RPM_BUILD_ROOT/usr/lib/migration-tools-server/
|
|
|
|
# Install server config
|
|
%{__cp} -r $RPM_BUILD_ROOT/usr/lib/migration-tools-server/server/migration-tools.conf $RPM_BUILD_ROOT/etc/migration-tools
|
|
%{__cp} -r $RPM_BUILD_ROOT/usr/lib/migration-tools-server/server/migration-tools-server.service $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
%posttrans
|
|
%{_bindir}/systemctl daemon-reload
|
|
|
|
%post -n migration-tools-server
|
|
chmod +x /usr/lib/migration-tools-server/server/start_webview.sh
|
|
ln -sf /usr/lib/migration-tools-server/server/start_webview.sh /usr/bin/migration-tools
|
|
|
|
%preun -n migration-tools-server
|
|
if [ $1 = 0 ];then
|
|
systemctl stop migration-tools-server.service
|
|
fi
|
|
|
|
%postun -n migration-tools-server
|
|
rm -rf /usr/bin/migration-tools
|
|
|
|
%files -n migration-tools-server
|
|
/etc/migration-tools
|
|
/usr/lib/migration-tools-server
|
|
%{_unitdir}/migration-tools-server.service
|
|
|
|
%changelog
|
|
* Thu Mar 14 2024 lixin <lixinb@uniontech.com> - 1.0.0-8
|
|
- fix stop service display failed
|
|
|
|
* Thu Mar 14 2024 lixin <lixinb@uniontech.com> - 1.0.0-7
|
|
- Fix the error messages that occur during upgrades and downgrades.
|
|
|
|
* Mon Mar 11 2024 lixin <lixinb@uniontech.com> - 1.0.0-6
|
|
- fix : CVE-2024-24892
|
|
- use paramiko instead of sshpass to export migration log
|
|
- and data
|
|
|
|
* Fri Dec 08 2023 lixin <lixinb@uniontech.com> - 1.0.0-5
|
|
- rebuild: modify patch number to adapt 22.03-lts-sp3
|
|
|
|
* Wed Sep 06 2023 lixin <lixinb@uniontech.com> - 1.0.0-4
|
|
- fix: fix uefi boot failed
|
|
- fix: modify grub rules to match NIC name after migration
|
|
|
|
* Tue Aug 22 2023 lixin <lixinb@uniontech.com> - 1.0.0-3
|
|
- feat: add aarch64 agent package
|
|
|
|
* Mon Aug 21 2023 lixin <lixinb@uniontech.com> - 1.0.0-2
|
|
- fix export log and migration report error
|
|
- fix no migration detail error
|
|
|
|
* Wed Aug 16 2023 lixin <lixinb@uniontech.com> - 1.0.0-1
|
|
- init
|