Merge "Restructured the installation-instruction file into indexed sub files"
[apex.git] / build / opnfv-apex-common.spec
1 Name:           opnfv-apex-common
2 Version:        2.1
3 Release:        %{release}
4 Summary:        Scripts for OPNFV deployment using RDO Manager
5
6 Group:          System Environment
7 License:        Apache 2.0
8 URL:            https://gerrit.opnfv.org/gerrit/apex.git
9 Source0:        opnfv-apex-common.tar.gz
10
11 BuildArch:      noarch
12 BuildRequires:  openvswitch qemu-kvm python-docutils
13 Requires:       opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools
14
15 %description
16 Scripts for OPNFV deployment using RDO Manager
17 https://wiki.opnfv.org/apex
18
19 %prep
20 %setup -q
21
22 %build
23 rst2html docs/installation-instructions/index.rst docs/installation-instructions.html
24 rst2html docs/release-notes/release-notes.rst docs/release-notes.html
25
26 %install
27 mkdir -p %{buildroot}%{_bindir}/
28 install ci/deploy.sh %{buildroot}%{_bindir}/opnfv-deploy
29 install ci/clean.sh %{buildroot}%{_bindir}/opnfv-clean
30
31 mkdir -p %{buildroot}%{_sysconfdir}/opnfv-apex/
32 install config/deploy/os-odl_l2-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l2-nofeature-ha.yaml
33 install config/deploy/os-odl_l2-sfc-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l2-sfc-ha.yaml
34 install config/deploy/os-odl_l3-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l3-nofeature-ha.yaml
35 install config/deploy/os-onos-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-onos-nofeature-ha.yaml
36 install config/deploy/os-opencontrail-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-opencontrail-nofeature-ha.yaml
37 install config/deploy/network/network_settings.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/network_settings.yaml
38
39 mkdir -p %{buildroot}%{_var}/opt/opnfv/lib/
40 install lib/common-functions.sh %{buildroot}%{_var}/opt/opnfv/lib/
41 mkdir -p %{buildroot}%{_var}/opt/opnfv/lib/installer/onos/
42 install lib/installer/onos/onos_gw_mac_update.sh %{buildroot}%{_var}/opt/opnfv/lib/installer/onos/
43
44 mkdir -p %{buildroot}%{_docdir}/opnfv/
45 install LICENSE.rst %{buildroot}%{_docdir}/opnfv/
46 install docs/installation-instructions.html %{buildroot}%{_docdir}/opnfv/
47 install docs/release-notes/index.rst %{buildroot}%{_docdir}/opnfv/release-notes.rst
48 install docs/release-notes.html %{buildroot}%{_docdir}/opnfv/
49 install config/deploy/deploy_settings.yaml %{buildroot}%{_docdir}/opnfv/deploy_settings.yaml.example
50 install config/deploy/network/network_settings.yaml %{buildroot}%{_docdir}/opnfv/network_settings.yaml.example
51
52 %files
53 %defattr(644, root, root, -)
54 %attr(755,root,root) %{_bindir}/opnfv-deploy
55 %attr(755,root,root) %{_bindir}/opnfv-clean
56 %{_var}/opt/opnfv/lib/common-functions.sh
57 %{_var}/opt/opnfv/lib/installer/onos/onos_gw_mac_update.sh
58 %{_sysconfdir}/opnfv-apex/os-odl_l2-nofeature-ha.yaml
59 %{_sysconfdir}/opnfv-apex/os-odl_l2-sfc-ha.yaml
60 %{_sysconfdir}/opnfv-apex/os-odl_l3-nofeature-ha.yaml
61 %{_sysconfdir}/opnfv-apex/os-onos-nofeature-ha.yaml
62 %{_sysconfdir}/opnfv-apex/os-opencontrail-nofeature-ha.yaml
63 %{_sysconfdir}/opnfv-apex/network_settings.yaml
64 %doc %{_docdir}/opnfv/LICENSE.rst
65 %doc %{_docdir}/opnfv/installation-instructions.html
66 %doc %{_docdir}/opnfv/release-notes.rst
67 %doc %{_docdir}/opnfv/release-notes.html
68 %doc %{_docdir}/opnfv/deploy_settings.yaml.example
69 %doc %{_docdir}/opnfv/network_settings.yaml.example
70
71 %changelog
72 * Wed Jan 20 2016 Dan Radez <dradez@redhat.com> - 2.1-3
73 - Updating the installation instructions
74 * Thu Jan 14 2016 Dan Radez <dradez@redhat.com> - 2.1-2
75 - Package Split