%define prefix %{_prefix} %define ver 0.18.1 %define rel 1 Summary: The G App library. Name: gal Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gal/gal-%{version}.tar.gz Patch0: gal-%{ver}-aix.patch BuildRoot: /var/tmp/gal-%{PACKAGE_VERSION}-root %description Reuseable GNOME library functions. Mainly used for Evolution and Gnumeric %package devel Summary: Libraries and include files for the G App library. Group: Development/Libraries %description devel The gal-devel package includes the static libraries and header files for the gal package. Install gal-devel if you want to develop programs which will use gal. %changelog * Mon Nov 26 2001 Dan Nguyen - Upgrade to 0.18.1 * Mon Nov 12 2001 Dan Nguyen - Upgrade to 0.18 for evolution * Mon Oct 22 2001 Dan Nguyen - Initial AIX packaging * Thu Mar 15 2001 Matthew Wilson - the -devel package must own the /usr/include/gal directory and all its contents * Fri Oct 10 2000 John Gotts - Created spec file. %prep %setup -q %patch0 -p1 -b .aix %build if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ma" if test "X$CC" == "Xxlc" then export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -qlanglvl=extended" fi fi libtoolize --force CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl" \ ./configure --prefix=%{prefix} make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix} make install DESTDIR=$RPM_BUILD_ROOT ( cd $RPM_BUILD_ROOT for dir in include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done ) %clean rm -rf $RPM_BUILD_ROOT %files %doc README AUTHORS COPYING ChangeLog NEWS #%{prefix}/share/etable/%{version}/glade/*.glade %{prefix}/share %{prefix}/lib/libgal.so %{prefix}/lib/libgal.so.* %{prefix}/lib/galConf.sh /usr/lib/libgal.so /usr/lib/libgal.so.* /usr/lib/galConf.sh %files devel %defattr(-, root, root) #%{prefix}/lib/libgal.a %{prefix}/lib/libgal.la %{prefix}/include/gal /usr/lib/libgal.la /usr/include/gal