49 lines
1.5 KiB
RPMSpec
49 lines
1.5 KiB
RPMSpec
Name: skeptical-updater
|
|
Version: 0.1.0
|
|
Release: 1%{?dist}
|
|
Summary: A manual, conscious update cycle for apt, dnf/yum, pacman/pman and zypper
|
|
|
|
License: GPL-2.0-or-later
|
|
URL: https://git.bjphoster.com/source/%{name}
|
|
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: bash
|
|
Recommends: sudo
|
|
|
|
%description
|
|
skeptical-updater is a distribution-agnostic, single-file bash applet for a
|
|
manual, conscious update cycle. It wraps the native package manager (apt,
|
|
dnf/yum, pacman/pman, zypper), lists the packages that can be upgraded, lets
|
|
the user interrogate each one, and only then runs the native upgrade. Packages
|
|
the user has explicitly acknowledged are remembered in a state file and never
|
|
questioned again.
|
|
|
|
%prep
|
|
%autosetup -n %{name}
|
|
# run the system bash, not the first one in PATH (rpmlint env-script-interpreter)
|
|
sed -i '1s|^#!/usr/bin/env bash$|#!/bin/bash|' %{name}
|
|
|
|
%build
|
|
# nothing to build: a single bash script
|
|
|
|
%install
|
|
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
%check
|
|
# the tarball must be the version this spec claims
|
|
test "$(bash ./%{name} --version)" = "%{name} %{version}"
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md docs/DESIGN.md
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|
|
* Sat Oct 10 2026 Bryan Joshua Pedini <bryan@pedini.dev> - 0.1.0-1
|
|
- Updated to 0.1.0
|
|
|
|
* Sat Oct 10 2026 Bryan Joshua Pedini <bryan@pedini.dev> - 0.0.1-1
|
|
- Initial placeholder; bumped by CI to the first upstream tag
|