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 6c2d948 was
7f86bff,
checked in by Ramón M. Gómez <ramongomez@…>, 6 years ago
|
|
#940: Fix bug when build OGAgent for openSUSE.
|
-
Property mode set to
100755
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | cd $(dirname "$0") |
|---|
| 4 | top=$(pwd) |
|---|
| 5 | |
|---|
| 6 | VERSION="$(cat ../src/VERSION 2>/dev/null)" || VERSION="1.1.1" |
|---|
| 7 | RELEASE="1" |
|---|
| 8 | |
|---|
| 9 | # Debian based |
|---|
| 10 | dpkg-buildpackage -b -d |
|---|
| 11 | |
|---|
| 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 |
|---|
| 15 | |
|---|
| 16 | # Now fix dependencies for opensuse |
|---|
| 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/PyQt4/python-qt4/g" \ |
|---|
| 23 | -e "s/libXScrnSaver/libXss1/g" ogagent-template.spec > ogagent-opensuse-$VERSION.spec |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | # Right now, ogagent-xrdp-1.7.0.spec is not needed |
|---|
| 27 | for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do |
|---|
| 28 | |
|---|
| 29 | rm -rf rpm |
|---|
| 30 | for folder in SOURCES BUILD RPMS SPECS SRPMS; do |
|---|
| 31 | mkdir -p rpm/$folder |
|---|
| 32 | done |
|---|
| 33 | |
|---|
| 34 | rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1 |
|---|
| 35 | done |
|---|
| 36 | |
|---|
| 37 | #rm ogagent-$VERSION |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: