summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-06-10 15:31:49 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-10 15:31:49 +0000
commitce4770e46df1792f80d27a279d7c6cef2d9af5e0 (patch)
tree04cff6e5b81c3d728b6629cf7930e80a2ea71a1d /build
parentd1043f15f044dc0ee0ab4c76038e74c5f3b7fe75 (diff)
parentee3c2493f1c11c26737af8fa0cfa91722269817e (diff)
Merge changes from topics 'c_doc_update', 'detached_cleanup'
* changes: Documentation updates fixing detached state deployment
Diffstat (limited to 'build')
-rw-r--r--build/Makefile51
-rw-r--r--build/opnfv-apex-common.spec2
2 files changed, 51 insertions, 2 deletions
diff --git a/build/Makefile b/build/Makefile
index 4d024a3b..3f3d1c3a 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -248,7 +248,16 @@ iso: iso-clean images rpms $(CENTISO)
@ln $(RPMODL) centos/Packages
@ln $(RPMONO) centos/Packages
@ln $(RPMSFC) centos/Packages
- cd centos/Packages && yumdownloader openvswitch && yumdownloader openstack-tripleo && yumdownloader jq
+ # add packages to the centos packages
+ cd centos/Packages && yumdownloader openvswitch
+ cd centos/Packages && yumdownloader openstack-tripleo
+ cd centos/Packages && yumdownloader jq
+ cd centos/Packages && yumdownloader python34
+ cd centos/Packages && yumdownloader python34-libs
+ cd centos/Packages && yumdownloader python34-yaml
+ cd centos/Packages && yumdownloader python34-setuptools
+ cd centos/Packages && curl -O https://radez.fedorapeople.org/python34-markupsafe-0.23-9.el7.centos.x86_64.rpm
+ cd centos/Packages && curl -O https://radez.fedorapeople.org/python3-jinja2-2.8-5.el7.centos.noarch.rpm
# regenerate yum repo data
@echo "Generating new yum metadata"
createrepo --update -g ../c7-opnfv-x86_64-comps.xml centos
@@ -257,3 +266,43 @@ iso: iso-clean images rpms $(CENTISO)
mkisofs -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -V "OPNFV CentOS 7 x86_64" -R -J -v -T -o $(ISO) centos
isohybrid $(ISO)
@printf "\n\nISO is built at $(ISO)\n\n"
+
+###################
+# python3-jinja2 #
+###################
+
+.PHONY: python3-jinja2
+python3-jinja2: python3-markupsafe python-jinja2-2.8-5.fc24.src.rpm
+ curl -O http://ftp.linux.ncsu.edu/pub/fedora/linux//development/24/Everything/source/tree/Packages/p/python-jinja2-2.8-5.fc24.src.rpm
+ rpm2cpio python-jinja2-2.8-5.fc24.src.rpm | cpio -idmv
+ sed -i 's/python3-devel/python34-devel/' python-jinja2.spec
+ sed -i 's/python3-setuptools/python34-setuptools/' python-jinja2.spec
+ sed -i 's/python3-pytest/python34-pytest/' python-jinja2.spec
+ sed -i 's/python3-markupsafe/python34-markupsafe/' python-jinja2.spec
+ rpmbuild -ba python-jinja2.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D '_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)' -D "with_python3 1"
+
+.PHONY: python3-jinja2-clean
+python3-jinja2-clean:
+ rm -f python-jinja2-2.8-5.fc24.src.rpm
+ rm -f python-jinja2.spec
+ rm -f Jinja2-2.8.tar.gz
+
+########################
+# python3-markupsafe #
+########################
+
+.PHONY: python3-markupsafe
+python3-markupsafe: python-markupsafe-0.23-9.fc24.src.rpm
+ curl -O http://ftp.linux.ncsu.edu/pub/fedora/linux//development/24/Everything/source/tree/Packages/p/python-markupsafe-0.23-9.fc24.src.rpm
+ rpm2cpio python-markupsafe-0.23-9.fc24.src.rpm | cpio -idmv
+ sed -i 's/python3-devel/python34-devel/' python-markupsafe.spec
+ sed -i 's/python3-setuptools/python34-setuptools/' python-markupsafe.spec
+ sed -i 's/python3-pytest/python34-pytest/' python-markupsafe.spec
+ sed -i 's/python3-markupsafe/python34-markupsafe/' python-markupsafe.spec
+ rpmbuild -ba python-markupsafe.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D '_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)' -D "with_python3 1"
+
+.PHONY: python3-markupsafe-clean
+python3-markupsafe-clean:
+ rm -f python-markupsafe-0.23-9.fc24.src.rpm
+ rm -f python-markupsafe.spec
+ rm -f MarkupSafe-0.23.tar.gz
diff --git a/build/opnfv-apex-common.spec b/build/opnfv-apex-common.spec
index fc82fca7..536f9ec3 100644
--- a/build/opnfv-apex-common.spec
+++ b/build/opnfv-apex-common.spec
@@ -11,7 +11,7 @@ Source0: opnfv-apex-common.tar.gz
BuildArch: noarch
BuildRequires: python-docutils python34-devel
Requires: openstack-tripleo opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools
-Requires: initscripts net-tools iputils iproute iptables python34 python34-yaml python34-setuptools
+Requires: initscripts net-tools iputils iproute iptables python34 python34-yaml python3-jinja2
%description
Scripts for OPNFV deployment using RDO Manager