2021-12-07 10:28:51 +03:00
|
|
|
%global commit ae3deb19dcce2a365eb54f05016de87a65cce43a
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: podman-compose
|
2023-01-11 13:53:08 +09:00
|
|
|
Version: 1.0.3
|
2021-12-07 10:34:13 +03:00
|
|
|
Release: 1
|
2021-12-07 10:28:51 +03:00
|
|
|
Summary: Run docker-compose.yml using podman
|
2021-12-07 10:34:13 +03:00
|
|
|
Group: Development/Python
|
2021-12-07 10:28:51 +03:00
|
|
|
License: GPLv2
|
|
|
|
URL: https://github.com/containers/podman-compose
|
2023-01-11 13:53:08 +09:00
|
|
|
Source0: https://github.com/containers/podman-compose/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
2021-12-07 10:28:51 +03:00
|
|
|
#iSource0: https://github.com/containers/podman-compose/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-pyyaml
|
|
|
|
Requires: python3
|
|
|
|
Requires: python3-pyyaml
|
2021-12-07 10:28:51 +03:00
|
|
|
Requires: podman
|
2021-12-07 10:34:13 +03:00
|
|
|
BuildArch: noarch
|
2021-12-07 10:28:51 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
An implementation of docker-compose with podman backend.
|
|
|
|
The main objective of this project is to be able to run docker-compose.yml
|
|
|
|
unmodified and rootless.
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md CONTRIBUTING.md docs/ examples
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/podman-compose
|
|
|
|
%{python3_sitelib}/__pycache__/podman_compose*pyc
|
|
|
|
%{python3_sitelib}/podman_compose*
|
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
#---------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%autosetup
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
%build
|
|
|
|
%py3_build
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
%install
|
|
|
|
%py3_install
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
#Drop spurious shebang
|
|
|
|
sed -i /python3/d %{buildroot}%{python3_sitelib}/podman_compose.py
|