Hello! I made an adjustment in the spec file. Now it is possible to build the rpm as user. Before the rpm had to be built as root, and the glade_logo.png was installed into /usr/share/pixmaps, not into /var/tmp/usr/share/pixmaps, so even if the rpm never was installed on the build machine the logo was intalled to it. Not much of a deal, but a not wanted logo littered the machine. Now it is possible to build it as root without littering the machine. Thanks Bo
%define ver 0.5.7 %define RELEASE SNAP %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} %define prefix /usr %define sysconfdir /etc Summary: Gtk+ GUI builder Name: glade Version: %ver Release: %rel Copyright: LGPL Group: X11/Libraries Source: glade-%{ver}.tar.gz BuildRoot: /var/tmp/glade-%{ver}-root URL: http://www.gnome.org/ Docdir: %{prefix}/doc Prefix: %prefix %description Glade is a GUI builder for Gtk. %prep %setup %ifarch alpha ARCH_FLAGS="--host=alpha-redhat-linux" %endif if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir} else CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir} fi %build 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 make prefix=$RPM_BUILD_ROOT%{prefix} \ PACKAGE_PIXMAPS_DIR=$RPM_BUILD_ROOT%{prefix}/share/pixmaps install %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{prefix}/bin/glade %{prefix}/share/locale/*/*/*.mo %{prefix}/share/glade/gnome/* %{prefix}/share/gnome/apps/Development/glade.desktop %changelog * Wed May 10 2000 Bo Forslund <[EMAIL PROTECTED]> - Made it possible to build the rpm as user * Thu Jul 22 1999 Herbert Valerio Riedel <[EMAIL PROTECTED]> - changed configure options in order to build on all alphas * Wed Jun 23 1999 Jose Mercado <[EMAIL PROTECTED]> - Changed the Source variable to use %{var}. - Fixed glade.desktop's path so rpm will find it.