diff options
author | John Gotts <jgotts@src.gnome.org> | 2001-04-05 00:44:01 +0000 |
---|---|---|
committer | John Gotts <jgotts@src.gnome.org> | 2001-04-05 00:44:01 +0000 |
commit | 4235d47ab828b91ec22cc0d1b97e5da2ab493dc6 (patch) | |
tree | 52c1a6b533e91811d2eb4df7025e85d2aff68383 /gnome-applets.spec.in | |
parent | 45aed932727bee05d0f0c3e12192e168269b0bce (diff) |
Allow the user to build snapshot releases.
Diffstat (limited to 'gnome-applets.spec.in')
-rw-r--r-- | gnome-applets.spec.in | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gnome-applets.spec.in b/gnome-applets.spec.in index 852163141..4710781ca 100644 --- a/gnome-applets.spec.in +++ b/gnome-applets.spec.in @@ -35,9 +35,22 @@ utilities in the GNOME panel. %setup -q %build -%configure --sysconfdir=/etc -CFLAGS="$RPM_OPT_FLAGS" -make +%ifarch alpha + MYARCH_FLAGS="--host=alpha-redhat-linux" +%endif + +if [ ! -f configure ]; then +CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=/usr --sysconfdir=/etc +else +CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=/usr --sysconfdir=/etc +fi + +if [ "$SMP" != "" ]; then + (make "MAKE=make -k -j $SMP"; exit 0) + make +else + make +fi %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |