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 Summary: Libraries and include files for developing gnome-common based tools
27 Group: Development/Libraries
28 Requires: %name = %{PACKAGE_VERSION}
29 Obsoletes: %{name}-devel
32 Summary: gnome-common support applications
33 Group: Development/Tools
34 Requires: %name = %{PACKAGE_VERSION}
35 Obsoletes: %{name}-devel
38 This package provides the necessary development libraries and include
39 files to allow you to develop components that make use of gnome-common source
42 These are supporting applications for using gnome-common
45 * Mon Mar 26 2000 Robin * Slomkowski <rslomkow@rslomkow.org>
46 - created this thing, and replaced the generic specfile
53 MYARCH_FLAGS="--host=alpha-redhat-linux"
59 export LC_ALL LINGUAS LANG
61 CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
63 --enable-platform-gnome-2 \
64 --sysconfdir=%{sysconfdir}
66 if [ "$SMP" != "" ]; then
67 (make "MAKE=make -k -j $SMP"; exit 0)
74 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
76 make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
78 for FILE in "$RPM_BUILD_ROOT/bin/*"; do
79 file "$FILE" | grep -q not\ stripped && strip $FILE
83 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
86 if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
87 echo "%{prefix}/lib" >> /etc/ld.so.conf
92 %postun -p /sbin/ldconfig
96 %defattr(0555, bin, bin)
99 %defattr (0444, bin, bin)
100 %{prefix}/lib/pkgconfig/*common*.pc
101 %{prefix}/share/aclocal/gnome-macros/*.m4
102 %{prefix}/share/aclocal/gnome2-macros/*.m4
106 %defattr(0555, bin, bin)
107 %{prefix}/lib/*support*a
111 %defattr(0444, bin, bin)
112 %{prefix}/include/gnome/*/*support*.h
113 %{prefix}/lib/pkgconfig/*support*.pc
115 %defattr(0555, bin, bin)
116 %{prefix}/lib/*support*.so*