summaryrefslogtreecommitdiffstats
path: root/build/opnfv-apex.spec
diff options
context:
space:
mode:
Diffstat (limited to 'build/opnfv-apex.spec')
-rw-r--r--build/opnfv-apex.spec50
1 files changed, 44 insertions, 6 deletions
diff --git a/build/opnfv-apex.spec b/build/opnfv-apex.spec
index fb010615..845fc627 100644
--- a/build/opnfv-apex.spec
+++ b/build/opnfv-apex.spec
@@ -23,15 +23,53 @@ to deploy an OpenStack overcloud.
%build
%install
-mkdir -p %{buildroot}/usr/bin/
-cp ci/deploy.sh %{buildroot}/usr/bin/
+mkdir -p %{buildroot}%{_bindir}/
+cp ci/deploy.sh %{buildroot}%{_bindir}/
-mkdir -p %{buildroot}/var/lib/libvirt/images/
-cp build/instack.qcow2 %{buildroot}/var/lib/libvirt/images/
+mkdir -p %{buildroot}%{_sharedstatedir}/libvirt/images/
+cp build/instack.qcow2 %{buildroot}%{_sharedstatedir}/libvirt/images/
+cp build/baremetal_0.qcow2 %{buildroot}%{_sharedstatedir}/libvirt/images/
+cp build/baremetal_1.qcow2 %{buildroot}%{_sharedstatedir}/libvirt/images/
+
+mkdir -p %{buildroot}%{_sysconfdir}/libvirt/qemu/
+cp build/instack.xml %{buildroot}%{_sysconfdir}/libvirt/qemu/
+cp build/baremetal_0.xml %{buildroot}%{_sysconfdir}/libvirt/qemu/
+cp build/baremetal_1.xml %{buildroot}%{_sysconfdir}/libvirt/qemu/
+
+mkdir -p %{buildroot}%{_sysconfdir}/libvirt/qemu/networks/
+cp build/brbm.xml %{buildroot}%{_sysconfdir}/libvirt/qemu/networks/
+
+mkdir -p %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/instackenv-virt.json %{buildroot}%{_var}/opt/opnfv/
+cp build/stack/deploy-ramdisk-ironic.initramfs %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/stack/deploy-ramdisk-ironic.kernel %{buildroot}%{_var}/opt/opnfv/stack/
+#cp build/stack/ironic-python-agent.initramfs %{buildroot}/opt/opnfv/stack/
+#cp build/stack/ironic-python-agent.kernel %{buildroot}%{_var}/opt/opnfv/stack/
+#cp build/stack/ironic-python-agent.vmlinuz %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/stack/overcloud-full.initrd %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/stack/overcloud-full.qcow2 %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/stack/overcloud-full.vmlinuz %{buildroot}%{_var}/opt/opnfv/stack/
+cp build/stack/fedora-user.qcow2 %{buildroot}%{_var}/opt/opnfv/stack/
%files
-/usr/bin/deploy.sh
-/var/lib/libvirt/images/instack.qcow2
+%{_bindir}/deploy.sh
+%{_sharedstatedir}/libvirt/images/instack.qcow2
+%{_sharedstatedir}/libvirt/images/baremetal_0.qcow2
+%{_sharedstatedir}/libvirt/images/baremetal_1.qcow2
+%{_sysconfdir}/libvirt/qemu/instack.xml
+%{_sysconfdir}/libvirt/qemu/baremetal_0.xml
+%{_sysconfdir}/libvirt/qemu/baremetal_1.xml
+%{_sysconfdir}/libvirt/qemu/networks/brbm.xml
+%{_var}/opt/opnfv/instackenv-virt.json
+%{_var}/opt/opnfv/stack/deploy-ramdisk-ironic.initramfs
+%{_var}/opt/opnfv/stack/deploy-ramdisk-ironic.kernel
+#{_var}/opt/opnfv/stack/ironic-python-agent.initramfs
+#{_var}/opt/opnfv/stack/ironic-python-agent.kernel
+#{_var}/opt/opnfv/stack/ironic-python-agent.vmlinuz
+%{_var}/opt/opnfv/stack/overcloud-full.initrd
+%{_var}/opt/opnfv/stack/overcloud-full.qcow2
+%{_var}/opt/opnfv/stack/overcloud-full.vmlinuz
+%{_var}/opt/opnfv/stack/fedora-user.qcow2
%changelog
* Fri Sep 25 2015 Dan Radez <dradez@redhatcom> - 2.0-1