2021-12-07 10:28:51 +03:00
|
|
|
%global commit ae3deb19dcce2a365eb54f05016de87a65cce43a
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: podman-compose
|
2025-02-10 22:13:10 +00:00
|
|
|
Version: 1.3.0
|
|
|
|
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
|
2025-02-10 22:13:10 +00:00
|
|
|
Source0: %{url}/archive/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
|
|
|
|
|
2025-02-15 13:46:21 +00:00
|
|
|
#BuildRequires: python3-devel
|
|
|
|
#BuildRequires: python3-setuptools
|
|
|
|
#BuildRequires: python3-pyyaml
|
2025-02-10 22:13:10 +00:00
|
|
|
BuildRequires: python38-devel
|
|
|
|
BuildRequires: python38-setuptools
|
|
|
|
BuildRequires: python38-pyyaml
|
2025-02-15 13:46:21 +00:00
|
|
|
#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.
|
2025-02-10 22:13:10 +00:00
|
|
|
The main objective of this project is to be able to run
|
|
|
|
docker-compose.yml unmodified and rootless.
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2025-02-15 13:46:21 +00:00
|
|
|
#package -n %{name}-py3
|
2025-02-10 22:13:10 +00:00
|
|
|
|
2025-02-15 13:46:21 +00:00
|
|
|
#description -n %{name}-py3
|
|
|
|
#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.
|
2025-02-10 22:13:10 +00:00
|
|
|
|
2025-02-15 13:46:21 +00:00
|
|
|
#files -n %{name}-py3
|
|
|
|
#{_bindir}/podman-compose3
|
|
|
|
#{python3_sitelib}/__pycache__/podman_compose*pyc
|
|
|
|
#{python3_sitelib}/podman_compose*
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2025-02-10 22:13:10 +00:00
|
|
|
%files
|
|
|
|
%doc README.md CONTRIBUTING.md docs/ examples LICENSE
|
|
|
|
%{_bindir}/podman-compose
|
|
|
|
%{python38_sitelib}/__pycache__/podman_compose*pyc
|
|
|
|
%{python38_sitelib}/podman_compose*
|
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
#---------------------------------------------------------------
|
|
|
|
%prep
|
2025-02-10 22:13:10 +00:00
|
|
|
%setup -q
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
%build
|
2025-02-15 13:46:21 +00:00
|
|
|
#py3_build
|
2025-02-10 22:13:10 +00:00
|
|
|
%py38_build
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
%install
|
2025-02-15 13:46:21 +00:00
|
|
|
#py3_install
|
2025-02-10 22:13:10 +00:00
|
|
|
%py38_install
|
|
|
|
|
2021-12-07 10:28:51 +03:00
|
|
|
|
2021-12-07 10:34:13 +03:00
|
|
|
#Drop spurious shebang
|
2025-02-15 13:46:21 +00:00
|
|
|
#sed -i /python3/d %{buildroot}%{python3_sitelib}/podman_compose.py
|
2025-02-10 22:13:10 +00:00
|
|
|
sed -i /python3/d %{buildroot}%{python38_sitelib}/podman_compose.py
|