Blame SPECS/rhel-system-roles.spec

1b2089
Name: rhel-system-roles
1b2089
Summary: Set of interfaces for unified system management
5f9324
Version: 0.6
5f9324
Release: 1%{?dist}
1b2089
1b2089
#Group: Development/Libraries
1b2089
License: GPLv3+ and MIT and BSD
1b2089
%global rolecompatprefix rhel-system-roles.
1b2089
%global roleprefix linux-system-roles.
1b2089
1b2089
%global commit0 fe8bb81966b60fa8979f3816a12b0c7120d71140
1b2089
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
1b2089
%global rolename0 kdump
1b2089
%global version0 0.1
1b2089
1b2089
%global commit1 43eec5668425d295dce3801216c19b1916df1f9b
1b2089
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
1b2089
%global rolename1 postfix
1b2089
%global version1 0.1
1b2089
1b2089
%global commit2 ebcb133649fb5aba5bf0b7a64f2db2b90aadda1b
1b2089
%global shortcommit2 %(c=%{commit2}; echo ${c:0:7})
1b2089
%global rolename2 selinux
1b2089
#%%global version2 0.1
1b2089
1b2089
%global commit3 33a1a8c349de10d6281ed83d4c791e9177d7a141
1b2089
%global shortcommit3 %(c=%{commit3}; echo ${c:0:7})
1b2089
%global rolename3 timesync
1b2089
%global version3 0.1
1b2089
1b2089
%global commit5 b856c7481bf5274d419f71fb62029ea0044b3ec1
1b2089
%global shortcommit5 %(c=%{commit5}; echo ${c:0:7})
1b2089
%global rolename5 network
5f9324
%global version5 0.4
1b2089
1b2089
1b2089
Source: https://github.com/linux-system-roles/%{rolename0}/archive/%{version0}.tar.gz#/%{rolename0}-%{version0}.tar.gz
1b2089
Source1: https://github.com/linux-system-roles/%{rolename1}/archive/%{version1}.tar.gz#/%{rolename1}-%{version1}.tar.gz
1b2089
Source2: https://github.com/linux-system-roles/%{rolename2}/archive/%{commit2}.tar.gz#/%{rolename2}-%{shortcommit2}.tar.gz
1b2089
Source3: https://github.com/linux-system-roles/%{rolename3}/archive/%{version3}.tar.gz#/%{rolename3}-%{version3}.tar.gz
5f9324
Source5:  https://github.com/linux-system-roles/%{rolename5}/archive/%{version5}.tar.gz#/%{rolename5}-%{version5}.tar.gz
1b2089
1b2089
Source6: timesync-playbook.yml
1b2089
Source7: timesync-pool-playbook.yml
1b2089
1b2089
Patch1: rhel-system-roles-%{rolename1}-prefix.diff
1b2089
Patch2: rhel-system-roles-%{rolename2}-prefix.diff
1b2089
Patch3: rhel-system-roles-%{rolename3}-prefix.diff
1b2089
Patch5: rhel-system-roles-%{rolename5}-prefix.diff
1b2089
1b2089
Patch101: rhel-system-roles-kdump-ssh.diff
1b2089
1b2089
Url: https://github.com/linux-system-roles/
1b2089
BuildArch: noarch
1b2089
1b2089
%description
1b2089
Collection of interfaces serving as a stable API for the management
1b2089
of the RHEL operating system across major releases, implemented
1b2089
using Ansible.
1b2089
1b2089
1b2089
%prep
1b2089
%setup -qc -b1 -b2 -b3 -b5
1b2089
cd %{rolename0}-%{version0}
1b2089
%patch101 -p1
1b2089
cd ..
1b2089
cd %{rolename1}-%{version1}
1b2089
%patch1 -p1
1b2089
cd ..
1b2089
cd %{rolename2}-%{commit2}
1b2089
%patch2 -p1
1b2089
cd ..
1b2089
cd %{rolename3}-%{version3}
1b2089
%patch3 -p1
1b2089
cd ..
5f9324
cd %{rolename5}-%{version5}
1b2089
%patch5 -p1
1b2089
cd ..
1b2089
1b2089
%build
1b2089
1b2089
%install
1b2089
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles
1b2089
1b2089
cp -pR %{rolename0}-%{version0}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename0}
1b2089
cp -pR %{rolename1}-%{version1}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename1}
1b2089
cp -pR %{rolename2}-%{commit2}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename2}
1b2089
cp -pR %{rolename3}-%{version3}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename3}
5f9324
cp -pR %{rolename5}-%{version5}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename5}
1b2089
1b2089
ln -s    %{rolecompatprefix}%{rolename0}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename0}
1b2089
ln -s    %{rolecompatprefix}%{rolename1}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename1}
1b2089
ln -s    %{rolecompatprefix}%{rolename2}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename2}
1b2089
ln -s    %{rolecompatprefix}%{rolename3}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename3}
1b2089
ln -s    %{rolecompatprefix}%{rolename5}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename5}
1b2089
1b2089
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
1b2089
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
1b2089
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
1b2089
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
1b2089
install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-playbook.yml
1b2089
install -p -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-pool-playbook.yml
1b2089
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/network
1b2089
1b2089
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}kdump/README.md \
1b2089
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}kdump/COPYING \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
1b2089
1b2089
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}postfix/README.md \
1b2089
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}postfix/COPYING \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
1b2089
1b2089
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}selinux/README.md \
1b2089
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}selinux/COPYING \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}selinux/selinux-playbook.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux/example-selinux-playbook.yml
1b2089
1b2089
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}timesync/README.md \
1b2089
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}timesync/COPYING \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
1b2089
1b2089
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/README.md \
1b2089
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/COPYING \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/bond-with-vlan.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond-with-vlan-playbook.yml
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/bridge-with-vlan.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bridge-with-vlan-playbook.yml
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/eth-simple-auto.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth-simple-auto-playbook.yml
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/eth-with-vlan.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth-with-vlan-playbook.yml
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/infiniband.yml \
1b2089
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-infiniband-playbook.yml
1b2089
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/inventory \
1b2089
   $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-inventory
1b2089
1b2089
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/.gitignore
1b2089
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/test/.gitignore
1b2089
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/roles/network
1b2089
rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/roles
1b2089
rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples
1b2089
1b2089
%files
5f9324
%dir %{_datadir}/ansible
5f9324
%dir %{_datadir}/ansible/roles
1b2089
%{_datadir}/ansible/roles/%{roleprefix}kdump
1b2089
%{_datadir}/ansible/roles/%{roleprefix}postfix
1b2089
%{_datadir}/ansible/roles/%{roleprefix}selinux
1b2089
%{_datadir}/ansible/roles/%{roleprefix}timesync
1b2089
%{_datadir}/ansible/roles/%{roleprefix}network
1b2089
%{_datadir}/ansible/roles/%{rolecompatprefix}kdump
1b2089
%{_datadir}/ansible/roles/%{rolecompatprefix}postfix
1b2089
%{_datadir}/ansible/roles/%{rolecompatprefix}selinux
1b2089
%{_datadir}/ansible/roles/%{rolecompatprefix}timesync
1b2089
%{_datadir}/ansible/roles/%{rolecompatprefix}network
1b2089
%doc %{_pkgdocdir}/*/example-*-playbook.yml
1b2089
%doc %{_pkgdocdir}/network/example-inventory
1b2089
%doc %{_pkgdocdir}/*/README.md
1b2089
%doc %{_datadir}/ansible/roles/%{rolecompatprefix}kdump/README.md
1b2089
%doc %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/README.md
1b2089
%doc %{_datadir}/ansible/roles/%{rolecompatprefix}selinux/README.md
1b2089
%doc %{_datadir}/ansible/roles/%{rolecompatprefix}timesync/README.md
1b2089
%doc %{_datadir}/ansible/roles/%{rolecompatprefix}network/README.md
1b2089
1b2089
1b2089
%license %{_pkgdocdir}/*/COPYING
1b2089
%license %{_datadir}/ansible/roles/%{rolecompatprefix}kdump/COPYING
1b2089
%license %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/COPYING
1b2089
%license %{_datadir}/ansible/roles/%{rolecompatprefix}selinux/COPYING
1b2089
%license %{_datadir}/ansible/roles/%{rolecompatprefix}timesync/COPYING
1b2089
%license %{_datadir}/ansible/roles/%{rolecompatprefix}network/COPYING
1b2089
1b2089
%changelog
5f9324
* Tue Jan 30 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-1
5f9324
- Drop hard dependency on ansible (#1525655), patch from Yaakov Selkowitz
5f9324
- Update the network role to version 0.4, solves bz#1487747, bz#1478576
5f9324
1b2089
* Tue Dec 19 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-3
1b2089
- kdump: fix the wrong conditional for ssh checking and improve test (PR#10)
1b2089
1b2089
* Tue Nov 07 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-2
1b2089
- kdump: add ssh support. upstream PR#9, rhbz1478707
1b2089
1b2089
* Tue Oct 03 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-1
1b2089
- SELinux: fix policy reload when SELinux is disabled on CentOS/RHEL 6
1b2089
  (bz#1493574)
1b2089
- network: update to b856c7481bf5274d419f71fb62029ea0044b3ec1 :
1b2089
  makes the network role idempotent (bz#1476053) and fixes manual
1b2089
  network provider selection (bz#1485074).
1b2089
1b2089
* Mon Aug 28 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.4-1
1b2089
- network: update to b9b6f0a7969e400d8d6ba0ac97f69593aa1e8fa5:
1b2089
  ensure that state:absent followed by state:up works (bz#1478910), and change
1b2089
  the example IP adresses to the IANA-assigned ones.
1b2089
- SELinux: fix the case when SELinux is disabled (bz#1479546).
1b2089
1b2089
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-2
1b2089
- We can't change directories to symlinks (rpm bug #447156) so keep the old
1b2089
  names and create the new names as symlinks.
1b2089
1b2089
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-1
1b2089
- Change the prefix to linux-system-roles., keeping compatibility
1b2089
  symlinks.
1b2089
- Update the network role to dace7654feb7b5629ded0734c598e087c2713265:
1b2089
  adds InfiniBand support and other fixes.
1b2089
- Drop a patch included upstream.
1b2089
1b2089
* Mon Jun 26 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-2
1b2089
- Leave a copy of README and COPYING in every role's directory, as suggested by T. Bowling.
1b2089
- Move the network example inventory to the documentation directory together.
1b2089
  with the example playbooks and delete the now empty "examples" directory.
1b2089
- Use proper reserved (by RFC 7042) MAC addresses in the network examples.
1b2089
1b2089
* Tue Jun 6 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-1
1b2089
- Update the networking role to version 0.2 (#1459203)
1b2089
- Version every role and the package separately. They live in separate repos
1b2089
  and upstream release tags are not coordinated.
1b2089
1b2089
* Mon May 22 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-2
1b2089
- Prefix the roles in examples and documentation with rhel-system-roles.
1b2089
1b2089
* Thu May 18 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-1
1b2089
- Update to 0.1 (first upstream release).
1b2089
- Remove the tuned role, it is not ready yet.
1b2089
- Move the example playbooks to /usr/share/doc/rhel-system-roles/$SUBSYSTEM
1b2089
  directly to get rid of an extra directory.
1b2089
- Depend on ansible.
1b2089
1b2089
* Thu May 4 2017  Pavel Cahyna <pcahyna@redhat.com> - 0-0.1.20170504
1b2089
- Initial release.
1b2089
- kdump r. fe8bb81966b60fa8979f3816a12b0c7120d71140
1b2089
- postfix r. 43eec5668425d295dce3801216c19b1916df1f9b
1b2089
- selinux r. 1e4a21f929455e5e76dda0b12867abaa63795ae7
1b2089
- timesync r. 33a1a8c349de10d6281ed83d4c791e9177d7a141
1b2089
- tuned r. 2e8bb068b9815bc84287e9b6dc6177295ffdf38b
1b2089
- network r. 03ff040df78a14409a0d89eba1235b8f3e50a750
1b2089