configure-ptt-chedecorare-oglive-methodsejecutarscript-b64fix-cfg2objfixes-winlgromero-filebeatmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1ogliveoglogoglog2override-moduleping1ping2ping3ping4py3-winpython3qndtestreport-progresstlsunification2unification3versionswindows-fixes
Rev | Line | |
---|
[11f7a07] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | VERSION=1.0.0 |
---|
| 4 | RELEASE=1 |
---|
| 5 | |
---|
| 6 | top=`pwd` |
---|
| 7 | |
---|
| 8 | # Debian based |
---|
| 9 | dpkg-buildpackage -b -d |
---|
| 10 | |
---|
| 11 | cat ogagent-template.spec | |
---|
| 12 | sed -e s/"version 0.0.0"/"version ${VERSION}"/g | |
---|
| 13 | sed -e s/"release 1"/"release ${RELEASE}"/g > ogagent-$VERSION.spec |
---|
| 14 | |
---|
| 15 | # Now fix dependencies for opensuse |
---|
| 16 | cat ogagent-template.spec | |
---|
| 17 | sed -e s/"version 0.0.0"/"version ${VERSION}"/g | |
---|
| 18 | sed -e s/"name ogagent"/"name ogagent-opensuse"/g | |
---|
| 19 | sed -e s/"PyQt4"/"python-qt4"/g | |
---|
| 20 | sed -e s/"libXScrnSaver"/"libXss1"/g > ogagent-opensuse-$VERSION.spec |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | # Right now, ogagent-xrdp-1.7.0.spec is not needed |
---|
| 24 | for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do |
---|
| 25 | |
---|
| 26 | rm -rf rpm |
---|
| 27 | for folder in SOURCES BUILD RPMS SPECS SRPMS; do |
---|
| 28 | mkdir -p rpm/$folder |
---|
| 29 | done |
---|
| 30 | |
---|
| 31 | rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1 |
---|
| 32 | done |
---|
| 33 | |
---|
| 34 | #rm ogagent-$VERSION |
---|
Note: See
TracBrowser
for help on using the repository browser.