58 lines
2.0 KiB
RPMSpec
58 lines
2.0 KiB
RPMSpec
Name: linux-updater
|
|
Version: 1.1.0
|
|
Release: 1%{?dist}
|
|
Summary: Unified, safe multi-distribution Linux system updater
|
|
|
|
License: MIT
|
|
URL: https://github.com/example/linux-updater
|
|
Source0: linux-updater-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
Requires: python3 >= 3.6
|
|
|
|
%description
|
|
Linux System Updater is a unified, safe multi-distribution system update tool.
|
|
It inspects system health (disk space on /boot and /var, memory and OOM pressure,
|
|
stale package locks) before applying routine package updates or major distribution
|
|
release upgrades across Debian, RHEL, and Arch families.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# Pure Python package, no compilation required
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/linux-updater
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/linux-updater
|
|
|
|
cp -r linux_updater $RPM_BUILD_ROOT/usr/lib/linux-updater/
|
|
install -m 755 bin/linux-updater $RPM_BUILD_ROOT/usr/bin/linux-updater
|
|
install -m 644 linux-updater.json.example $RPM_BUILD_ROOT/etc/linux-updater.json
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
if [ -f man/linux-updater.8 ]; then
|
|
install -m 644 man/linux-updater.8 $RPM_BUILD_ROOT%{_mandir}/man8/linux-updater.8
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%attr(0755, root, root) /usr/bin/linux-updater
|
|
/usr/lib/linux-updater
|
|
%config(noreplace) /etc/linux-updater.json
|
|
%dir %attr(0750, root, root) /var/log/linux-updater
|
|
%{_mandir}/man8/linux-updater.8*
|
|
|
|
%changelog
|
|
* Fri Oct 02 2026 Test Factory <admin@localhost> - 1.1.0-1
|
|
- Real-time download/transaction streaming without stdin hangs.
|
|
- Automated and interactive reboot support (--reboot and [y/N] prompt).
|
|
- Fedora offline upgrade integration (dnf5 offline / dnf system-upgrade reboot).
|
|
- Add --releasever alias for target release version specification.
|
|
- Extended pre-flight health diagnostics and test matrix (58 passing tests).
|
|
|
|
* Fri Oct 02 2026 Test Factory <admin@localhost> - 1.0.0-1
|
|
- Initial release with Debian, RHEL, and Arch support.
|