diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a847b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/podman-compose-bb7120f.tar.gz diff --git a/podman-compose.spec b/podman-compose.spec new file mode 100644 index 0000000..ca3d14a --- /dev/null +++ b/podman-compose.spec @@ -0,0 +1,46 @@ +%global commit bb7120f3ffa47ad47be8f679202d7203b1c6d7c4 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: podman-compose +Version: 0.1.5 +Release: 1.git20191030%{?dist} +Summary: Run docker-compose.yml using podman +License: GPLv2 +URL: https://github.com/containers/podman-compose +Source0: https://github.com/containers/podman-compose/archive/%{commit}/%{name}-%{shortcommit}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pyyaml +Requires: python3-pyyaml +Requires: podman + +%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. + +%prep +%autosetup -n %{name}-%{commit} + +%build +%py3_build + +%install +%py3_install + +#Drop spurious shebang +sed -i /python3/d %{buildroot}%{python3_sitelib}/podman_compose.py + + +%files +%doc README.md CONTRIBUTING.md docs/ examples +%license LICENSE +%{_bindir}/podman-compose +%{python3_sitelib}/__pycache__/podman_compose*pyc +%{python3_sitelib}/podman_compose* + +%changelog +* Mon Oct 28 2019 Gwyn Ciesla - 0.1.5-1.git20191030 +- Initial build. diff --git a/sources b/sources new file mode 100644 index 0000000..98ebae9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (podman-compose-bb7120f.tar.gz) = 3a2c7e3a50176eb455d0b761681aef94756adbe42f69eb500ff9ae0af1baacf4a290b2036ff3399430a4dbbaa4f2180b6edd396bd3cb04a636cb1f4ceda0a437