1 # Note this is NOT a relocatable thing :)
2 %define name gnome-common
4 %define RELEASE 0_cvs_0
5 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
7 %define sysconfdir /etc
10 Summary: gnome-common contains usefull things common to building gnome packages
16 Group: Development/Tools
17 Source: %{name}-%{ver}.tar.gz
19 BuildRoot: /var/tmp/%{name}-%{ver}-root
23 gnome-common is for developing various GNOME modules that have to do similar things
26 * Mon Mar 26 2000 Robin * Slomkowski <rslomkow@rslomkow.org>
27 - created this thing, and replaced the generic specfile
34 MYARCH_FLAGS="--host=alpha-redhat-linux"
40 export LC_ALL LINGUAS LANG
42 CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
44 --enable-platform-gnome-2 \
45 --sysconfdir=%{sysconfdir}
47 if [ "$SMP" != "" ]; then
48 (make "MAKE=make -k -j $SMP"; exit 0)
55 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
57 make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
59 for FILE in "$RPM_BUILD_ROOT/bin/*"; do
60 file "$FILE" | grep -q not\ stripped && strip $FILE
64 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
67 if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
68 echo "%{prefix}/lib" >> /etc/ld.so.conf
73 %postun -p /sbin/ldconfig
77 %defattr(0555, bin, bin)
80 %defattr (0444, bin, bin)
81 %{prefix}/share/aclocal/gnome-macros/*
82 %{prefix}/share/aclocal/gnome2-macros/*