From 90c5cf6da143cfe4f50eace12251934ebd29a239 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 11 Jan 2016 15:07:04 -0500 Subject: splitting rpm into multiple rpms - code in the common rpm - instack in the instack rpm - undercloud in an rpm that will be named per sdn in the future Change-Id: I969277daf87f67da6934cad7268c96efda6960c7 --- build/opnfv-apex-common.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 build/opnfv-apex-common.spec (limited to 'build/opnfv-apex-common.spec') diff --git a/build/opnfv-apex-common.spec b/build/opnfv-apex-common.spec new file mode 100644 index 00000000..15fd9e1f --- /dev/null +++ b/build/opnfv-apex-common.spec @@ -0,0 +1,64 @@ +Name: opnfv-apex-common +Version: 2.1 +Release: %{release} +Summary: Scripts for OPNFV deployment using RDO Manager + +Group: System Environment +License: Apache 2.0 +URL: https://gerrit.opnfv.org/gerrit/apex.git +Source0: opnfv-apex-common.tar.gz + +BuildArch: noarch +BuildRequires: openvswitch qemu-kvm python-docutils +Requires: opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools + +%description +Scripts for OPNFV deployment using RDO Manager +https://wiki.opnfv.org/apex + +%prep +%setup -q + +%build +rst2html docs/installation-instructions/installation-instructions.rst docs/installation-instructions.html +rst2html docs/release-notes/release-notes.rst docs/release-notes.html + +%install +mkdir -p %{buildroot}%{_bindir}/ +install ci/deploy.sh %{buildroot}%{_bindir}/opnfv-deploy +install ci/clean.sh %{buildroot}%{_bindir}/opnfv-clean + +mkdir -p %{buildroot}%{_sysconfdir}/opnfv-apex/ +install config/deploy/deploy_settings.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/deploy_settings.yaml +install config/deploy/network/network_settings.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/network_settings.yaml + +mkdir -p %{buildroot}%{_var}/opt/opnfv/lib/ +install lib/common-functions.sh %{buildroot}%{_var}/opt/opnfv/lib/ + +mkdir -p %{buildroot}%{_docdir}/opnfv/ +install LICENSE.rst %{buildroot}%{_docdir}/opnfv/ +install docs/installation-instructions/index.rst %{buildroot}%{_docdir}/opnfv/installation-instructions.rst +install docs/installation-instructions.html %{buildroot}%{_docdir}/opnfv/ +install docs/release-notes/index.rst %{buildroot}%{_docdir}/opnfv/release-notes.rst +install docs/release-notes.html %{buildroot}%{_docdir}/opnfv/ +install config/deploy/deploy_settings.yaml %{buildroot}%{_docdir}/opnfv/deploy_settings.yaml.example +install config/deploy/network/network_settings.yaml %{buildroot}%{_docdir}/opnfv/network_settings.yaml.example + +%files +%defattr(644, root, root, -) +%attr(755,root,root) %{_bindir}/opnfv-deploy +%attr(755,root,root) %{_bindir}/opnfv-clean +%{_var}/opt/opnfv/lib/common-functions.sh +%{_sysconfdir}/opnfv-apex/deploy_settings.yaml +%{_sysconfdir}/opnfv-apex/network_settings.yaml +%doc %{_docdir}/opnfv/LICENSE.rst +%doc %{_docdir}/opnfv/installation-instructions.rst +%doc %{_docdir}/opnfv/installation-instructions.html +%doc %{_docdir}/opnfv/release-notes.rst +%doc %{_docdir}/opnfv/release-notes.html +%doc %{_docdir}/opnfv/deploy_settings.yaml.example +%doc %{_docdir}/opnfv/network_settings.yaml.example + +%changelog +* Thu Jan 14 2016 Dan Radez - 2.1-2 +- Package Split -- cgit 1.2.3-korg