# # Note that this is NOT a relocatable package # $Id: gconf.spec,v 1.2 2001/08/24 23:04:58 marc Exp $ # %define ver 1.0.7 %define rel 2 %define prefix %{_prefix} %define name GConf %define sysconfdir %{prefix}/etc Summary: Gnome Config System Distribution: GNOME Vendor: CVS Name: %name Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Base Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/GConf/GConf-%{ver}.tar.gz BuildRoot: /var/tmp/gconf Packager: Eskil Heyn Olsen URL: http://www.gnome.org Prereq: info Prefix: %{prefix} Docdir: %{prefix}/doc Requires: glib >= 1.2.0 Requires: oaf >= 0.3.0 Requires: gtk+ >= 1.2.0 Requires: ORBit >= 0.5.0 Requires: libxml >= 1.8.0 # NOTE: Does not seem to build with libxml2 installed. Patch0: GConf-%{ver}-aix.patch %define DEFCC cc %description GConf is the GNOME Configuration database system. GNOME is the GNU Network Object Model Environment. That's a fancy name but really GNOME is a nice GUI desktop environment. It makes using your computer easy, powerful, and easy to configure. %package devel Summary: Gnome Config System development package Group: Development/Libraries Requires: %name = %{ver} Requires: ORBit-devel Requires: glib-devel Requires: oaf-devel Requires: gtk+-devel PreReq: info %description devel GConf development package. Contains files needed for doing development using GConf. %changelog * Mon Dec 03 2001 Dan Nguyen - Fix the %files to pick up .so.VERSION correctly * Mon Nov 26 2001 Dan Nguyen - Update to 1.0.7 * Fri Oct 26 2001 Dan Nguyen - Strip binaries * Thu Oct 25 2001 Dan Nguyen - Update to 1.0.6 * Sun Jun 11 2000 Eskil Heyn Olsen - Created the .spec file %prep %setup -q %patch0 -p1 -b .aix autoconf automake -i gconf/Makefile %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi # Needed for snapshot releases. if [ ! -f configure ]; then CXX=g++ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl" ./autogen.sh --prefix=%prefix --sysconfdir=%{sysconfdir} else CXX=g++ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl" ./configure --prefix=%prefix --sysconfdir=%{sysconfdir} fi if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install (cd $RPM_BUILD_ROOT for dir in bin include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done ) file $RPM_BUILD_ROOT%{prefix}/bin/* | awk -F ':' '/not stripped/ {print $1}' | xargs /usr/bin/strip %clean rm -rf $RPM_BUILD_ROOT %post %postun %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %config %{sysconfdir}/gconf/1/path %config %{sysconfdir}/gconf/schemas/*.schemas %dir %{sysconfdir}/gconf/gconf.xml.defaults %dir %{sysconfdir}/gconf/gconf.xml.mandatory %{prefix}/bin/gconf-config %{prefix}/bin/gconf-config-1 %{prefix}/bin/gconfd-1 %{prefix}/bin/gconftool %{prefix}/bin/gconftool-1 %{prefix}/lib/*.so.* %{prefix}/lib/*.so %{prefix}/lib/pkgconfig/* %{prefix}/lib/GConf/1/*.so %{prefix}/share/locale/*/LC_MESSAGES/*.mo #%{prefix}/share/oaf/*.oafinfo /usr/bin/* /usr/include/* /usr/lib/*.so.* /usr/lib/*.so ## /etc/gconf/schemas/desktop.schemas is notably missing; ## it will be shared between versions of GConf, preventing ## simulataneous installation, so maybe should be in ## a different (minuscule) package. %files devel %defattr(-, root, root) %{prefix}/lib/*.a %{prefix}/lib/*.la %{prefix}/lib/GConf/1/*.a %{prefix}/lib/GConf/1/*.la %{prefix}/include/gconf/1/gconf/*.h %{prefix}/share/aclocal/*.m4