2021-02-12 08:56:45 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
2022-02-18 21:59:00 +03:00
|
|
|
%define _libexecdir %{_prefix}/libexec
|
2021-02-12 08:56:45 +03:00
|
|
|
|
|
|
|
Name: podman
|
2024-01-23 11:26:25 +00:00
|
|
|
Version: 4.9.0
|
2023-08-10 23:23:02 +00:00
|
|
|
Release: 1
|
2021-02-12 08:56:45 +03:00
|
|
|
Summary: A tool for managing OCI containers and pods
|
2022-11-10 23:36:51 +03:00
|
|
|
URL: https://podman.io
|
2021-02-12 08:56:45 +03:00
|
|
|
Source0: https://github.com/containers/podman/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1000: %{name}.rpmlintrc
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Other
|
|
|
|
BuildRequires: go
|
|
|
|
BuildRequires: git-core
|
2022-11-16 23:58:08 +03:00
|
|
|
BuildRequires: go-md2man >= 2
|
2022-11-10 23:36:51 +03:00
|
|
|
BuildRequires: upx
|
|
|
|
BuildRequires: python3-sphinx
|
2021-02-12 09:27:20 +03:00
|
|
|
BuildRequires: %{_lib}gpgme-devel
|
2021-02-12 10:25:39 +03:00
|
|
|
BuildRequires: pkgconfig(libseccomp)
|
2022-11-10 23:36:51 +03:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2022-10-19 23:25:57 +03:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2021-08-21 23:26:42 +03:00
|
|
|
Requires: conmon >= 2.0.24
|
2021-02-12 08:56:45 +03:00
|
|
|
Requires: runc
|
2023-06-10 11:03:55 +00:00
|
|
|
Requires: catatonit
|
2023-06-11 20:28:01 +00:00
|
|
|
Requires: slirp4netns
|
2021-02-12 08:56:45 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
Podman (the POD MANager) is a tool for managing containers
|
|
|
|
and images, volumes mounted into those containers, and pods
|
|
|
|
made from groups of containers. Podman is based on libpod,
|
|
|
|
a library for container lifecycle management that is also
|
|
|
|
contained in this repository. The libpod library provides
|
|
|
|
APIs for managing containers, pods, container images, and
|
|
|
|
volumes.
|
|
|
|
|
|
|
|
%prep
|
2024-01-10 21:17:09 +00:00
|
|
|
export GOPROXY=direct
|
2021-02-12 08:56:45 +03:00
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2023-09-27 19:12:52 +00:00
|
|
|
export GOPROXY=direct
|
2022-11-16 23:58:08 +03:00
|
|
|
%make binaries completions
|
2022-11-10 23:36:51 +03:00
|
|
|
|
|
|
|
# compress bin
|
2023-08-12 09:01:31 +00:00
|
|
|
upx bin/%{name} bin/%{name}-remote bin/quadlet bin/rootlessport
|
2022-11-10 23:36:51 +03:00
|
|
|
|
2021-02-12 08:56:45 +03:00
|
|
|
%install
|
2022-11-16 23:58:08 +03:00
|
|
|
make \
|
|
|
|
install.bin \
|
|
|
|
install.remote \
|
|
|
|
install.systemd \
|
|
|
|
install.completions \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
SYSTEMDDIR=%{_unitdir} \
|
|
|
|
USERSYSTEMDDIR=%{_userunitdir} \
|
2023-02-07 14:03:45 +00:00
|
|
|
TMPFILESDIR=%{_tmpfilesdir} \
|
|
|
|
SYSTEMDGENERATORSDIR=%{_systemgeneratordir} \
|
|
|
|
USERSYSTEMDGENERATORSDIR=%{_usergeneratordir}
|
2022-11-16 23:58:08 +03:00
|
|
|
|
|
|
|
install -d %{buildroot}%{_mandir}/man1/
|
|
|
|
install -Dm644 docs/source/markdown/links/*1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
2021-02-12 08:56:45 +03:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{name}*
|
2022-02-18 21:59:00 +03:00
|
|
|
%{_libexecdir}/%{name}/rootlessport
|
2023-02-07 14:03:45 +00:00
|
|
|
%{_libexecdir}/%{name}/quadlet
|
2021-02-12 08:56:45 +03:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_tmpfilesdir}/podman.conf
|
2022-11-16 23:58:08 +03:00
|
|
|
%{_unitdir}/*
|
|
|
|
%{_userunitdir}/*
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_datadir}/fish/vendor_completions.d/*
|
|
|
|
%{_datadir}/zsh/site-functions/*
|
2023-02-07 14:03:45 +00:00
|
|
|
%{_systemgeneratordir}/podman-system-generator
|
|
|
|
%{_usergeneratordir}/podman-user-generator
|