File podcheck.spec of Package podcheck
#
# spec file for package podcheck
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} < 1600
%global pythons python311
%else
%global pythons python313
%endif
%{?sle15_python_module_pythons}
Name: podcheck
Version: 0.7.1
Release: 0
Summary: A command-line tool to automate podman image updates
License: GPL-3.0-only
Group: Productivity/Networking/Web/Utilities
URL: https://github.com/sudo-kraken/podcheck
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-rpm-macros
Requires: %{python_flavor}-podman-compose
Requires: bash
Requires: jq
Requires: podman
Requires: regclient
BuildArch: noarch
%description
Podcheck is a cli tool to automate podman image updates with selective, notifications, autoprune, and no pre-pulling.
%prep
%setup -q
find . -type f -name "*.sh" -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \;
pushd notify_templates
find . -type f -name "*.sh" -exec chmod +x {} +
popd
%build
%install
install -D podcheck.sh %{buildroot}/%{_bindir}/%{name}
for notify_script in notify_templates/notify_*.sh; do
install -D "$notify_script" %{buildroot}/%{_datadir}/%{name}/${notify_script##*/}
done
%files
%license LICENSE
%doc README.md
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_datadir}/%{name}
#%%attr(0644,root,root) %%{_datadir}/%%{name}/*.sh
%{_datadir}/%{name}/*.sh
%changelog