[SOGo] RPMS
Chris Picton
sogo@opengroupware.org
Wed, 28 Nov 2007 05:00:42 +0000
--=-+3JCDOGLWGMGI6NUjg37
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi All
I have been relying on a script to build sogo from svn into rpms. Hope
it helps others here. I am using it on centos 5
sope.spec comes from
http://www.inverse.ca/SOGo/RHEL5/SRPMS/sope47-4.7-inverse1544.gnustep.rhel5=
.1.src.rpm
sope-cards.spec comes from
http://www.inverse.ca/SOGo/RHEL5/SRPMS/sope47-cards-4.7.20070904-gnustep.rh=
el5.src.rpm
sogo.spec comes from the SVN sources
(It needs a minor patch as follows)
106,107c106,107
< cp Scripts/sogo-init.d-rhel4 ${RPM_BUILD_ROOT}/etc/init.d/sogod
< cp Scripts/sogod-redhat ${RPM_BUILD_ROOT}/usr/sbin/sogod
---
> cp Scripts/sogo-init.d-redhat ${RPM_BUILD_ROOT}/etc/init.d/sogod
> cp Scripts/sogod-wrapper ${RPM_BUILD_ROOT}/usr/sbin/sogod
build-sogo.sh
------------------------
#!/bin/bash
test -z "$GNUSTEP_SYSTEM_ROOT" &&=20
echo "source GNUstep.sh first" &&=20
exit
# SOPE
cd sope
svn revert -R .
svn update
patch -p0 < ../sogo/SOPE/sope-patchset-*.diff
svnrev=3D$(svn info | grep "Revision" | cut -d: -f2 | tr -d ' ')
. Version
cd ..
tar zcf sope-$svnrev.tar.gz sope
cp sope-$svnrev.tar.gz ~/RPM/SOURCES
rpmbuild -ba sope.spec \
-D"sope_source sope-$svnrev.tar.gz" \
-D"sope_major_version $MAJOR_VERSION" \
-D"sope_minor_version $MINOR_VERSION" \
-D'sope_version gnustep' \
-D"sope_release inverse$svnrev" \
-D'sope_buildcount 1' \
-D'dist_suffix gnustep.rhel5' \
-D"sope_prefix $GNUSTEP_SYSTEM_ROOT" \
-D'sope_makeflags all' \
-D"sope_version $MAJOR_VERSION.$MINOR_VERSION" \
SOPE_MAJOR=3D$MAJOR_VERSION
SOPE_MINOR=3D$MINOR_VERSION
SOPE_REV=3D$svnrev
=20
# Install new files.......
cd sogo
svn update
svnrev=3D$(svn info | grep "Revision" | cut -d: -f2 | tr -d ' ')
. Version
cd ..
tar zcf sogo-$svnrev.tar.gz sogo
cp sogo-$svnrev.tar.gz ~/RPM/SOURCES
rpmbuild -D"sogo_source sogo-$svnrev.tar.gz" \
-D"sogo_major_version $MAJOR_VERSION" \
-D"sogo_minor_version $MINOR_VERSION" \
-D"sogo_version $MAJOR_VERSION.$MINOR_VERSION" \
-D"sogo_release inverse$svnrev" \
-D"dist_suffix rhel5" \
-D"sogo_prefix $GNUSTEP_SYSTEM_ROOT" \
-D"sope_major_version $SOPE_MAJOR" \
-D"sope_minor_version $SOPE_MINOR" \
-D"sope_version $SOPE_MAJOR.$SOPE_MINOR" \
-D"sope_release inverse$SOPE_REV" \
-ba sope-cards.spec
rpmbuild -D"sogo_source sogo-$svnrev.tar.gz" \
-D"sogo_major_version $MAJOR_VERSION" \
-D"sogo_minor_version $MINOR_VERSION" \
-D"sogo_version $MAJOR_VERSION.$MINOR_VERSION" \
-D"sogo_release inverse$svnrev" \
-D"dist_suffix rhel5" \
-D"sogo_prefix $GNUSTEP_SYSTEM_ROOT" \
-D"sope_major_version $SOPE_MAJOR" \
-D"sope_minor_version $SOPE_MINOR" \
-D"sope_version $SOPE_MAJOR.$SOPE_MINOR" \
-D"sope_release inverse$SOPE_REV" \
-ba sogo.spec
------------------------
---------------------+-----------------------------------------------------=
--
Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net)
Technical Director | PGP Key Fingerprint:
Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988
011 447 8096 |=20
chrisp@tangent.co.za | http://www.tangent.co.za/keys/chrisp.asc
---------------------+-----------------------------------------------------=
--
--=-+3JCDOGLWGMGI6NUjg37
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBHTPX2Ip1t1p0oqYgRAqn5AJ4ps8j0+ud4/I2yrhsXCOT25vxL4wCgiC9K
tv4pIGuCHBol9PzAPzzfoXg=
=7XMW
-----END PGP SIGNATURE-----
--=-+3JCDOGLWGMGI6NUjg37--