45 lines
1.1 KiB
RPMSpec
45 lines
1.1 KiB
RPMSpec
Name: unitdore
|
|
Version: 0.0.5
|
|
Release: 1%{?dist}
|
|
Summary: Manage container units via systemd
|
|
|
|
License: MIT
|
|
URL: https://git.warky.dev/wdevs/unitdore
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: golang >= 1.23
|
|
Requires: systemd
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%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 github.com/warkanum/unitdore/cmd.version=%{version}" \
|
|
-o %{name} .
|
|
|
|
%install
|
|
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
install -Dm644 docs/unitdore.1 %{buildroot}%{_mandir}/man1/unitdore.1
|
|
install -Dm644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE
|
|
install -dm755 %{buildroot}%{_sysconfdir}/unitdore
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/unitdore.1*
|
|
%dir %{_sysconfdir}/unitdore
|
|
|
|
%changelog
|
|
* Wed Apr 08 2026 Hein (Warky Devs) <hein@warky.dev> - 0.0.5-1
|
|
- Initial package
|