forked from oVirt/ovirt-ansible-repositories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ovirt-ansible-repositories.spec.in
90 lines (68 loc) · 2.67 KB
/
ovirt-ansible-repositories.spec.in
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%global rolename repositories
%global roleprefix ovirt.
%global roleprefix_legacy_uppercase oVirt.
%global ansible_roles_dir ansible/roles
Name: @PACKAGE_NAME@
Summary: Ansible role to setup oVirt/RHV repositories
Version: @RPM_VERSION@
Release: @RPM_RELEASE@%{?release_suffix}%{?dist}
Source0: http://resources.ovirt.org/pub/src/@PACKAGE_NAME@/@PACKAGE_NAME@-@[email protected]
License: ASL 2.0
Group: Virtualization/Management
BuildArch: noarch
Url: http://www.ovirt.org
Requires: ansible >= 2.9.0
%description
This Ansible role is used to set up the repositories required for
oVirt engine or host installation.
%pretrans -p <lua>
-- Remove the legacy directory before installing the symlink. This is known issue in RPM:
-- https://fedoraproject.org/wiki/Packaging:Directory_Replacement
path_uppercase = "%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}"
st = posix.stat(path_uppercase)
if st and st.type == "directory" then
os.execute('rm -rf "'..path_uppercase..'"')
end
%prep
%setup -c -q
%build
%install
export PKG_DATA_DIR_ORIG=%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
export PKG_DATA_DIR=%{buildroot}$PKG_DATA_DIR_ORIG
export PKG_DOC_DIR=%{buildroot}%{_pkgdocdir}
export ROLENAME_LEGACY_UPPERCASE=%{buildroot}%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}
sh build.sh install
%files
%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}
%doc README.md
%doc examples/
%license LICENSE
%changelog
* Fri Jul 31 2020 Martin Necas <[email protected]> - 1.2.5-1
- Fix 4.4 engine repo
* Tue Jul 14 2020 Martin Necas <[email protected]> - 1.2.4-1
- Remove 4.4-beta repositories
- Add 4.4 repositories
* Wed May 13 2020 Martin Necas <[email protected]> - 1.2.3-1
- Add 4.4-beta repositories
* Tue May 5 2020 Martin Necas <[email protected]> - 1.2.2-1
- Add dnf modules
* Mon Dec 2 2019 Martin Necas <[email protected]> - 1.2.1-1
- Add build for el8.
* Tue Nov 19 2019 Martin Necas <[email protected]> - 1.2.0-1
- Bump ansible to 2.9
* Tue Feb 19 2019 Ondra Machacek <[email protected]> - 1.1.5-1
- Add 4.3 repositories
* Wed Jan 23 2019 Ondra Machacek <[email protected]> - 1.1.4-1
- Add correct JBoss channel.
* Fri Nov 30 2018 Ondra Machacek <[email protected]> - 1.1.3-1
- Require Ansible 2.7.2.
- Support ovirt.repositories name.
- Fix backup repos issue.
* Tue Sep 18 2018 Ondra Machacek <[email protected]> - 1.1.2-1
- Add ovirt_repositories_pools var.
- Ensure subscription-manager package is present.
- Add force_register option.
* Thu Dec 07 2017 Katerina Koukiou <[email protected]> - 1.1.0-1
- Initial release