fi
META_DATA_DIR=Metadata/${ID}/${VERSION_ID}
mkdir -p ${META_DATA_DIR}
-DIR=Packages/${ID}/${VERSION_ID}
+DIR=$(pwd)/Packages/${ID}/${VERSION_ID}
ARCH=$( uname -m )
mkdir -p ${DIR}/os
mkdir -p ${DIR}/debug
rm -rf ${HOME}/rpmbuild
rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
mv ${HOME}/rpmbuild/SRPMS/*.src.rpm ${DIR}/source/
- mv ${HOME}/rpmbuild/RPMS/*/*debuginfo*rpm ${DIR}/debug/
- mv ${HOME}/rpmbuild/RPMS/*/*.rpm ${DIR}/os/
+ pushd ${HOME}/rpmbuild/RPMS
+ mv */*debuginfo*rpm ./
+ tar cf - *debuginfo*rpm | xz -9 -c - >${DIR}/debug/graphviz-${GV_VERSION}-debuginfo-rpms.tar.xz
+ find . -name "*debuginfo*rpm" -delete
+ mv */*.rpm ./
+ tar cf - *.rpm | xz -9 -c - >${DIR}/os/graphviz-${GV_VERSION}-rpms.tar.xz
+ popd
fi
elif [[ "${OSTYPE}" =~ "darwin" ]]; then
./autogen.sh
tar xf ${DIR}/os/graphviz-${GV_VERSION}-${ARCH}.tar.gz
cp -rp build/* /usr/local
else
+ tar xvf ${DIR}/os/graphviz-${GV_VERSION}-rpms.tar.xz
rpm --install --force \
- ${DIR}/os/graphviz-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-libs-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-devel-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-plugins-core-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-plugins-x-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-x-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-gd-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-qt-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-plugins-gd-${GV_VERSION}*.rpm \
- ${DIR}/os/graphviz-nox-${GV_VERSION}*.rpm
+ graphviz-${GV_VERSION}*.rpm \
+ graphviz-libs-${GV_VERSION}*.rpm \
+ graphviz-devel-${GV_VERSION}*.rpm \
+ graphviz-plugins-core-${GV_VERSION}*.rpm \
+ graphviz-plugins-x-${GV_VERSION}*.rpm \
+ graphviz-x-${GV_VERSION}*.rpm \
+ graphviz-gd-${GV_VERSION}*.rpm \
+ graphviz-qt-${GV_VERSION}*.rpm \
+ graphviz-plugins-gd-${GV_VERSION}*.rpm \
+ graphviz-nox-${GV_VERSION}*.rpm
fi
fi