podman/podman.spec

72 lines
1.8 KiB
RPMSpec
Raw Normal View History

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
2023-02-06 14:16:28 +00:00
Version: 4.4.0
2021-08-31 09:22:07 +03: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
%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
%setup -q
%build
2022-11-16 23:58:08 +03:00
%make binaries completions
2022-11-10 23:36:51 +03:00
# compress bin
upx bin/*
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} \
TMPFILESDIR=%{_tmpfilesdir}
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
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/*