Commit a260de21 authored by Otavio Rodolfo Piske's avatar Otavio Rodolfo Piske

Updates the RPM packaging makefile

Replaces the build directory with the build.paho directory in the RPM
source tarball creation, otherwise the tarball may contain locally
generated files and fail to properly build the RPM package.
Signed-off-by: 's avatarOtavio Rodolfo Piske <opiske@redhat.com>
parent 05641d82
......@@ -2,7 +2,7 @@ VERSION=1.1.0
rpm-prep:
mkdir -p ${HOME}/rpmbuild/SOURCES/
tar --transform="s/\./paho-c-${VERSION}/" -cf ${HOME}/rpmbuild/SOURCES/paho-c-${VERSION}.tar.gz --exclude=./build --exclude=.git --exclude=*.bz ./ --gzip
tar --transform="s/\./paho-c-${VERSION}/" -cf ${HOME}/rpmbuild/SOURCES/paho-c-${VERSION}.tar.gz --exclude=./build.paho --exclude=.git --exclude=*.bz ./ --gzip
rpm: rpm-prep
rpmbuild -ba dist/paho-c.spec
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment