source: ogAgent-Git/linux/build-packages.sh @ 855c6d7

configure-ptt-chedecorare-oglive-methodsejecutarscript-b64fix-cfg2objfixes-winlgromero-filebeatmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1ogliveoglogoglog2override-moduleping1ping2ping3ping4py3-winpython3qndtestreport-progresstlsunification2unification3versionswindows-fixes
Last change on this file since 855c6d7 was 75ba20c, checked in by ramon <ramongomez@…>, 8 years ago

#718: Revisar documentación y proceso de intalación de OGAgent; actualizar comandos de OGAgent para macOS.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5240 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 896 bytes
Line 
1#!/bin/bash
2
3VERSION=1.1.0
4RELEASE=1
5
6cd $(dirname "$0")
7top=`pwd`
8
9# Debian based
10dpkg-buildpackage -b -d
11
12cat ogagent-template.spec |
13  sed -e s/"version 0.0.0"/"version ${VERSION}"/g |
14  sed -e s/"release 1"/"release ${RELEASE}"/g > ogagent-$VERSION.spec
15 
16# Now fix dependencies for opensuse
17cat ogagent-template.spec |
18  sed -e s/"version 0.0.0"/"version ${VERSION}"/g |
19  sed -e s/"name ogagent"/"name ogagent-opensuse"/g |
20  sed -e s/"PyQt4"/"python-qt4"/g |
21  sed -e s/"libXScrnSaver"/"libXss1"/g > ogagent-opensuse-$VERSION.spec
22
23
24# Right now, ogagent-xrdp-1.7.0.spec is not needed
25for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do
26   
27    rm -rf rpm
28    for folder in SOURCES BUILD RPMS SPECS SRPMS; do
29        mkdir -p rpm/$folder
30    done
31   
32    rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1
33done
34
35#rm ogagent-$VERSION
Note: See TracBrowser for help on using the repository browser.