aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-06 10:02:37 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-06 10:36:06 +0200
commit961fa2a0e6af3da831ac40c706e9177a68113416 (patch)
tree779179e4462c2e451292573dca0b8d3f72445d48
parentb41369f27fa111805b987e96ae15b2a0fc0b090d (diff)
downloadnx-libs-961fa2a0e6af3da831ac40c706e9177a68113416.tar.gz
nx-libs-961fa2a0e6af3da831ac40c706e9177a68113416.tar.bz2
nx-libs-961fa2a0e6af3da831ac40c706e9177a68113416.zip
README.md: Add build howto for openSUSE based RPMs.
-rw-r--r--README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index e3bbb048d..b0cbbf914 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,35 @@ mock --rebuild ~/result/nx-libs-3.5.99.0-0.0build1.fc23.src.rpm --resultdir ~/re
The end result is RPMs under ~/result that you can install (or upgrade to) using yum or dnf, which will resolve their dependencies.
+## Building for openSUSE using OBS Build
+
+Assuming:
+
+1. The branch you are building is 3.6.x
+2. The current version is 3.5.99.0 (specified in the .spec file)
+3. The current release is 0.0build1 (specified in the .spec file)
+4. You wish for the RPM files and the obs-build logs to be under ~/rpmbuild
+
+Prerequisites:
+
+1. Install package "obs-build"
+2. Make sure your user account can become root via sudo
+3. cd to the nx-libs directory that you cloned using git
+
+```
+mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/RPMS ~/rpmbuild/SRPMS ~/rpmbuild/OTHER ~/rpmbuild/BUILD
+git archive -o $HOME/rpmbuild/SOURCES/nx-libs-3.5.99.0.tar.gz --prefix=nx-libs-3.5.99.0/ 3.6.x
+cp --preserve=time nx-libs.spec ~/rpmbuild/SOURCES
+cd ..
+sudo obs-build --clean --nosignature --repo http://download.opensuse.org/distribution/<OPENSUSE-VERSION>/repo/oss/suse/ --root /var/lib/obs-build/ ~/rpmbuild/SOURCES/nx-libs.spec
+cp -ar /var/lib/obs-build/home/abuild/rpmbuild/RPMS/* ~/rpmbuild/RPMS/
+cp -ar /var/lib/obs-build/home/abuild/rpmbuild/SRPMS/* ~/rpmbuild/SRPMS/
+cp -ar /var/lib/obs-build/home/abuild/rpmbuild/OTHER/* ~/rpmbuild/OTHER/
+cp -ar /var/lib/obs-build/.build.log ~/rpmbuild/BUILD/
+```
+
+The end result is RPMs under ~/result that you can install (or upgrade to) using yum or dnf, which will resolve their dependencies.
+
## Building Under Debian or Ubuntu using debuild
Assuming: