# Note that this is NOT a relocatable package %define name libglade %define ver 0.13 %define RELEASE 5 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} %define prefix %{_prefix} Summary: The libglade library for loading user interfaces. Name: %name Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/libglade/libglade-%{ver}.tar.gz Patch0: libglade-%{ver}-aixlibs.patch BuildRoot: /var/tmp/%{name}-%{ver}-root BuildRequires: libtool >= 1.3.5 Docdir: %{prefix}/doc %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCC bcc %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description The libglade library allows you to load user interfaces which are stored externally into your program. This allows for alteration of the interface without recompilation of the program. The interfaces can also be edited with GLADE. Currently libglade supports all of the widgets in current releases, keyboard accelerators and automatic signal connection. %package devel Summary: The files needed for libglade application development. Group: Development/Libraries Requires: libglade = %{ver} gtk+-devel libxml-devel %description devel The libglade-devel package contains the libraries, include files, etc., that you can use to develop libglade applications. %changelog * Fri Mar 09 2001 Marc Stephenson - Add logic for default compiler - Rebuild against new shared objects * Fri Feb 16 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Tue Sep 07 1999 Elliot Lee - Updated RHL 6.1 package to libglade-0.5 * Sun Nov 1 1998 James Henstridge - Updated the dependencies of the devel package, so users must have gtk+-devel. * Sun Oct 25 1998 James Henstridge - Initial release 0.0.1 %prep %setup -q %patch0 -p2 -b .aixlibs %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::'` export CFLAGS="$RPM_OPT_FLAGS" fi libtoolize --force # Needed for snapshot releases. if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl" ./autogen.sh --prefix=%prefix else CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl" ./configure --prefix=%prefix fi if [ "$SMP" != "" ]; then make MAKE="make -j$SMP" else make fi %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} install ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README COPYING %{prefix}/lib/lib*.so* /usr/%{stdlib}/lib*.so* %files devel %defattr(-, root, root) %{prefix}/bin/* %{prefix}/include/glade /usr/bin/* /usr/include/glade %{prefix}/share/aclocal/* %{prefix}/lib/libgladeConf.sh /usr/%{stdlib}/libgladeConf.sh %doc test-libglade.c %doc *.glade %doc %{prefix}/share/gnome/html/libglade/*