source: admin/Sources/Clients/ogagent/linux/build-packages.sh @ 0dc041e

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 0dc041e was 066661d, checked in by ramon <ramongomez@…>, 9 years ago

#718: Parámetros de descripción finales para OGAgent.

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

  • Property mode set to 100755
File size: 877 bytes
Line 
1#!/bin/bash
2
3VERSION=1.1.0
4RELEASE=1
5
6top=`pwd`
7
8# Debian based
9dpkg-buildpackage -b -d
10
11cat 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
16cat 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
24for 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
32done
33
34#rm ogagent-$VERSION
Note: See TracBrowser for help on using the repository browser.