-
Notifications
You must be signed in to change notification settings - Fork 64
/
ansible-xml.spec
45 lines (35 loc) · 920 Bytes
/
ansible-xml.spec
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
Name: ansible-xml
BuildArch: noarch
Version: 1.0.0
Release: 1
Summary: Ansible module for manipulating bits and pieces of XML files and strings
Vendor: Chris Prescott
License: GPLv3
URL: https://github.com/cmprescott/ansible-xml
Packager: Styopa Semenukha <[email protected]>
Requires: python-lxml >= 2.3
Source: https://github.com/cmprescott/%name/archive/%version.tar.gz
%bcond_with docs
%if %{with docs}
BuildRequires: markdown
%endif
%define ansible_lib %{_datarootdir}/ansible
%description
Ansible module for manipulating bits and pieces of XML files and strings
%prep
%setup
%build
%if %{with docs}
markdown CHANGELOG.md > CHANGELOG.html
markdown README.md > README.html
%endif
%install
%{__mkdir_p} %buildroot%{ansible_lib}
%{__install} -m 644 library/xml %buildroot%{ansible_lib}/xml
%files
%{ansible_lib}/xml
%if %{with docs}
%doc CHANGELOG.html README.html
%endif
%clean
%{__rm} -rf %_buildrootdir