diff --git a/installers/rpm_package_build/readme.md b/installers/rpm_package_build/readme.md index 672b9ab4..61911676 100644 --- a/installers/rpm_package_build/readme.md +++ b/installers/rpm_package_build/readme.md @@ -7,12 +7,15 @@ and directory within it must be named as $(name)-$(version)
To prepare your environment for building .rpm package do the following:
1. install instruments:
`sudo yum install epel-release rpmdevtools yum-utils`
-2. create directory hierarchy for rpm (this will create directory ~/rpmbuild with the subdirectories BUILD RPMS SOURCES SPECS SRPMS):
+2. install latest pip and wheel (you can also look at this [documentation](https://pip.pypa.io/en/stable/installing/)):
+`wget https://bootstrap.pypa.io/get-pip.py`
+`sudo python get-pip.py`
+3. create directory hierarchy for rpm (this will create directory ~/rpmbuild with the subdirectories BUILD RPMS SOURCES SPECS SRPMS):
`rpmdev-setuptree`
-3. place `bench.spec` into ~/rpmbuild/SPECS
-4. place `bench-0.92.tar.gz` into ~/rpmbuild/SOURCES
-5. install all required for .rpm building dependencies:
-`yum-builddep ~/rpmbuild/SPECS/bench.spec` +4. place `bench.spec` into ~/rpmbuild/SPECS
+5. place `bench-0.92.tar.gz` into ~/rpmbuild/SOURCES
+6. install all required for .rpm building dependencies:
+`sudo yum-builddep ~/rpmbuild/SPECS/bench.spec`
To build .rpm package run:
@@ -22,11 +25,6 @@ The resulting .rpm will be in `~/rpmbuild/RPMS/` and .srpm in `~/rpmbuild/SRPMS` To install .rpm package run:
`sudo yum localinstall path/to/rpm/package`

-Current state: builds ok but resulting bench fails with the error:
-`Traceback (most recent call last):`
-`File "/usr/bin/bench", line 7, in `
-`from bench.cli import cli`
-`ImportError: No module named bench.cli`
Useful links: [rpm packaging tutorial] (http://www.ibm.com/developerworks/library/l-rpm1/)