JJB jobs for the OpFlex project
[releng/builder.git] / jjb / opflex / include-raw-opflex-dep_rpm-build.sh
1 #!/bin/bash
2
3 set -e
4 set -x
5
6 LIBUV_VERSION=1.5.0
7 wget https://github.com/libuv/libuv/archive/v$LIBUV_VERSION.tar.gz
8 mock --define="buildversion $BUILD_NUMBER" -r $MOCK_TARGET --resultdir target/srpm --buildsrpm --spec libuv.spec --sources v$LIBUV_VERSION.tar.gz
9
10 RAPIDJSON_VERSION=1.0.2
11 wget https://github.com/miloyip/rapidjson/archive/v$RAPIDJSON_VERSION.tar.gz
12 mock --define="buildversion $BUILD_NUMBER" -r $TARGET --resultdir target/srpm --buildsrpm --spec rapidjson-devel.spec --sources v$RAPIDJSON_VERSION.tar.gz
13
14 mockchain -m --define="buildversion $BUILD_NUMBER" -r $MOCK_TARGET -l target/rpm target/srpm/*.src.rpm
15 find target/rpm/results -name "*.rpm" -exec mv {} . \;