blob: 6fb97b780dc95d038a859327e639b4083b03b435 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# We are packaging git snapshots until upstream starts using real version
# numbers. https://github.com/ceph/ceph-ansible/issues/557
%global commitdate 20160229
%global commit f9c3159e0d0e20dc3c8362e6f0258f666d9210b8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: ceph-ansible
Version: 0
Release: 0.1.%{commitdate}git%{shortcommit}%{?dist}
Summary: Ansible playbooks for Ceph
License: MIT
URL: https://github.com/ceph/ceph-ansible
Source0: https://github.com/ceph/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
BuildArch: noarch
BuildRequires: ansible
%description
Ansible playbooks for Ceph
%prep
%autosetup -p1 -n %{name}-%{commit}
%build
%install
mkdir -p %{buildroot}%{_datarootdir}/ceph-ansible
for f in *.yml *.sample group_vars roles library plugins; do
cp -a $f %{buildroot}%{_datarootdir}/ceph-ansible
done
%check
# Borrowed from upstream's .travis.yml:
ansible-playbook -i dummy-ansible-hosts test.yml --syntax-check
%files
%doc README.md
%license LICENSE
%{_datarootdir}/ceph-ansible
%changelog
* Mon Feb 29 2016 Ken Dreyer <kdreyer@redhat.com> - 0-0.1.20160229gitf9c3159
- initial package
|