mirror of
https://abf.rosa.ru/djam/podman.git
synced 2025-02-23 17:32:53 +00:00
79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
%define _libexecdir %{_prefix}/libexec
|
|
|
|
Name: podman
|
|
Version: 4.9.1
|
|
Release: 1
|
|
Summary: A tool for managing OCI containers and pods
|
|
URL: https://podman.io
|
|
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
|
|
BuildRequires: go-md2man >= 2
|
|
BuildRequires: upx
|
|
BuildRequires: python3-sphinx
|
|
BuildRequires: %{_lib}gpgme-devel
|
|
BuildRequires: pkgconfig(libseccomp)
|
|
BuildRequires: pkgconfig(systemd)
|
|
BuildRequires: pkgconfig(python3)
|
|
Requires: conmon >= 2.0.24
|
|
Requires: runc
|
|
Requires: catatonit
|
|
Requires: slirp4netns
|
|
|
|
%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
|
|
export GOPROXY=direct
|
|
%setup -q
|
|
|
|
%build
|
|
export GOPROXY=direct
|
|
%make binaries completions
|
|
|
|
# compress bin
|
|
upx bin/%{name} bin/%{name}-remote bin/quadlet bin/rootlessport
|
|
|
|
%install
|
|
make \
|
|
install.bin \
|
|
install.remote \
|
|
install.systemd \
|
|
install.completions \
|
|
PREFIX=%{_prefix} \
|
|
DESTDIR=%{buildroot} \
|
|
SYSTEMDDIR=%{_unitdir} \
|
|
USERSYSTEMDDIR=%{_userunitdir} \
|
|
TMPFILESDIR=%{_tmpfilesdir} \
|
|
SYSTEMDGENERATORSDIR=%{_systemgeneratordir} \
|
|
USERSYSTEMDGENERATORSDIR=%{_usergeneratordir}
|
|
|
|
install -d %{buildroot}%{_mandir}/man1/
|
|
install -Dm644 docs/source/markdown/links/*1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
%files
|
|
%doc README.md LICENSE
|
|
%{_bindir}/%{name}*
|
|
%{_libexecdir}/%{name}/rootlessport
|
|
%{_libexecdir}/%{name}/quadlet
|
|
%{_mandir}/man1/*
|
|
%{_tmpfilesdir}/podman.conf
|
|
%{_unitdir}/*
|
|
%{_userunitdir}/*
|
|
%{_datadir}/bash-completion/completions/*
|
|
%{_datadir}/fish/vendor_completions.d/*
|
|
%{_datadir}/zsh/site-functions/*
|
|
%{_systemgeneratordir}/podman-system-generator
|
|
%{_usergeneratordir}/podman-user-generator
|