close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
main
|
Last change
on this file since 68c4c91 was
12f0b1d,
checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago
|
|
#940: Updating dependencies to build OGAgent for Linux
|
-
Property mode set to
100755
|
|
File size:
1005 bytes
|
| Rev | Line | |
|---|
| [11f7a07] | 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| [75ba20c] | 3 | cd $(dirname "$0") |
|---|
| [7f86bff] | 4 | top=$(pwd) |
|---|
| [11f7a07] | 5 | |
|---|
| [7f86bff] | 6 | VERSION="$(cat ../src/VERSION 2>/dev/null)" || VERSION="1.1.1" |
|---|
| [219fba0] | 7 | RELEASE="1" |
|---|
| 8 | |
|---|
| [11f7a07] | 9 | # Debian based |
|---|
| 10 | dpkg-buildpackage -b -d |
|---|
| 11 | |
|---|
| [7f86bff] | 12 | # Fix version number. |
|---|
| 13 | sed -e "s/version 0.0.0/version ${VERSION}/g" \ |
|---|
| 14 | -e "s/release 1/release ${RELEASE}/g" ogagent-template.spec > ogagent-$VERSION.spec |
|---|
| [11f7a07] | 15 | |
|---|
| 16 | # Now fix dependencies for opensuse |
|---|
| [7f86bff] | 17 | sed -e "s/name ogagent/name ogagent-opensuse/g" \ |
|---|
| 18 | -e "s/version 0.0.0/version ${VERSION}/g" \ |
|---|
| 19 | -e "s/release 1/release ${RELEASE}/g" \ |
|---|
| 20 | -e "s/chkconfig//g" \ |
|---|
| 21 | -e "s/initscripts/insserv/g" \ |
|---|
| 22 | -e "s/libXScrnSaver/libXss1/g" ogagent-template.spec > ogagent-opensuse-$VERSION.spec |
|---|
| [11f7a07] | 23 | |
|---|
| 24 | |
|---|
| 25 | # Right now, ogagent-xrdp-1.7.0.spec is not needed |
|---|
| 26 | for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do |
|---|
| 27 | |
|---|
| 28 | rm -rf rpm |
|---|
| 29 | for folder in SOURCES BUILD RPMS SPECS SRPMS; do |
|---|
| 30 | mkdir -p rpm/$folder |
|---|
| 31 | done |
|---|
| 32 | |
|---|
| 33 | rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1 |
|---|
| 34 | done |
|---|
| 35 | |
|---|
| 36 | #rm ogagent-$VERSION |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: