* Change Go version to 1.23.0 in go.mod * Update golang build requirement to >= 1.23 in unitdore.spec * Adjust packaging commands for Arch and RPM
46 lines
1019 B
RPMSpec
46 lines
1019 B
RPMSpec
Name: unitdore
|
|
Version: 0.1.0
|
|
Release: 1%{?dist}
|
|
Summary: Manage container units via systemd
|
|
|
|
License: MIT
|
|
URL: https://warky.dev
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: golang >= 1.23
|
|
Requires: systemd
|
|
|
|
%description
|
|
Unitdore bridges your container runtime (Podman, Docker) and systemd.
|
|
It discovers running containers, stores them in a config file, and generates
|
|
and manages systemd .service units for each one.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
export CGO_ENABLED=0
|
|
go build \
|
|
-trimpath \
|
|
-ldflags "-X main.version=%{version}" \
|
|
-o %{name} .
|
|
|
|
%install
|
|
# Binary
|
|
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
# Man page
|
|
install -Dm644 docs/unitdore.1 %{buildroot}%{_mandir}/man1/unitdore.1
|
|
|
|
# Config dir
|
|
install -dm755 %{buildroot}%{_sysconfdir}/unitdore
|
|
|
|
%files
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/unitdore.1*
|
|
%dir %{_sysconfdir}/unitdore
|
|
|
|
%changelog
|
|
* Tue Apr 08 2026 Hein (Warky Devs) <hein@warky.dev> - 0.1.0-1
|
|
- Initial package
|