diff options
author | Dan Radez <dradez@redhat.com> | 2016-06-07 15:01:54 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-06-08 09:32:41 -0400 |
commit | 3a0e2e2823c0d501a72708a89649bb14d90e25dd (patch) | |
tree | 8c7f4cc3c6ea539c472910dda1d746647e24018d /build | |
parent | 5c9c130fb9d6609ac1f0ebbf6945e63667c6b168 (diff) |
fixing detached state deployment
JIRA: APEX-157
Change-Id: Ifb3b706c61c6df5534bc7c22948fc0ae57a923df
Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/Makefile | 51 | ||||
-rw-r--r-- | build/opnfv-apex-common.spec | 2 |
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 327df3bc..f0148951 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 |