mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Add RPM building scripts (#255)
This commit is contained in:
parent
1c0a167a1d
commit
6f7c1f340f
4 changed files with 72 additions and 1 deletions
40
ansible-collection-containers-podman.spec
Normal file
40
ansible-collection-containers-podman.spec
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
%global collection_namespace containers
|
||||
%global collection_name podman
|
||||
|
||||
Name: ansible-collection-%{collection_namespace}-%{collection_name}
|
||||
Version: XXX
|
||||
Release: 1%{?dist}
|
||||
Summary: Podman Ansible collection for Podman containers
|
||||
|
||||
License: GPLv3+
|
||||
URL: %{ansible_collection_url}
|
||||
Source: https://github.com/containers/ansible-podman-collections/archive/%{version}.tar.gz
|
||||
|
||||
BuildRequires: ansible >= 2.9.10
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n ansible-podman-collections-%{version}
|
||||
sed -i -e 's/version:.*/version: %{version}/' galaxy.yml
|
||||
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
|
||||
rm -fvr changelogs/ ci/ contrib/ tests/ ./galaxy.yml.in .github/ .gitignore
|
||||
|
||||
%build
|
||||
%ansible_collection_build
|
||||
|
||||
%install
|
||||
%ansible_collection_install
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{ansible_collection_files}
|
||||
|
||||
%changelog
|
||||
|
||||
* Tue Feb 09 2021 Sagi Shnaidman <sshnaidm@redhat.com> - 1.4.1-1
|
||||
- Initial package
|
||||
Loading…
Add table
Add a link
Reference in a new issue