From 790ff84f4e42a90a53467b7f55bc6c518d0a235e Mon Sep 17 00:00:00 2001 From: Vincent Llorens Date: Wed, 1 Jun 2016 13:21:32 +0200 Subject: [PATCH] fix CentOS packaging documentation Change-Id: I5bfd5e724ed79123ed0fddee9df00f698f7979ee --- packaging/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packaging/README.md b/packaging/README.md index 9d3f568..3a6aadf 100644 --- a/packaging/README.md +++ b/packaging/README.md @@ -100,9 +100,12 @@ Packaging for CentOS 3. Move `synergy-service/packaging/rpm/python-synergy.spec` to `~/rpmbuild/SPECS`. -4. Create a source archive: +4. Create a source archive (where $VERSION is the current synergy-service version): - cp -r /path/to/synergy-service ~/rpmbuild/SOURCES/python-synergy-service - tar cjf python-synergy-service python-synergy-service.tar.bz2 + cd ~/rpmbuild/SOURCES + cp -r /path/to/synergy-service python-synergy-service-$VERSION + tar cjf python-synergy-service-$VERSION.tar.bz2 python-synergy-service-$VERSION -5. Go in `~/rpmbuild/SPECS` and buils with `rpmbuild -ba python-synergy.spec`. +5. Go in `~/rpmbuild/SPECS` and build with `PBR_VERSION=$VERSION rpmbuild -ba python-synergy.spec`. + +6. The resulting RPM can be found in `~/rpmbuild/RPMS/noarch`.