Summary: A library for parsing XML. Name: expat Version: 1.95.2 Release: 3 Group: System Environment/Libraries Source: http://download.sourceforge.net/expat/expat-%{version}.tar.gz Source1: IBM_ILA Patch0: %{name}-%{version}-destdir.patch License: IBM_ILA URL: http://sourceforge.net/projects/expat Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libtool >= 1.3.5 %define stdlib lib %define liblink ../.. %define DIRS . # Makefile assumes gcc for now %define DEFCC gcc %description This is expat, the C library for parsing XML, written by James Clark. Expat is a stream oriented XML parser. This means that you register handlers with the parser prior to starting the parse. These handlers are called when the parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers. %package devel Summary: Libraries and include files to develop XML applications with expat. Group: Development/Libraries PreReq: expat = %{version} %description devel The expat-devel package contains the libraries, include files and documentation to develop XML applications with expat. %prep %setup -q %patch0 -p1 -b .destdir # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE cat COPYING >> LICENSE %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 for dir in %{DIRS}; do cd $dir; if [[ $dir != "." ]]; then export CC="$CC64"; fi libtoolize --copy --force aclocal -I conftools autoconf %configure make done %install rm -rf ${RPM_BUILD_ROOT} # Potential loop if building 64-bit libraries for IA64 for dir in %{DIRS}; do cd $dir; if [[ $dir = "." ]]; then INSTDIR=; else INSTDIR=/%{PKG64}; fi make DESTDIR=$RPM_BUILD_ROOT$INSTDIR install done ( cd $RPM_BUILD_ROOT for dir in include #bin 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/* . cd - ) %clean rm -rf ${RPM_BUILD_ROOT} %ifos linux %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc README COPYING LICENSE %{prefix}/lib/*.a /usr/%{stdlib}/*.a %files devel %defattr(-,root,root) %doc doc examples LICENSE %{prefix}/lib/lib*.la %{_includedir}/*.h /usr/lib/*.la /usr/include/*.h %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Wed Oct 24 2001 David Clissold - No functional change. Modify SPEC for compat w/ newer libtool. * Mon Oct 08 2001 David Clissold - Update to 1.95.2 - Added patch, DESTDIR in libs/Makefile.in (level 1.95.1 was fine) * Thu May 31 2001 Marc Stephenson - Initial version for AIX Toolbox * Tue Oct 24 2000 Jeff Johnson - update to 1.95.1 * Sun Oct 8 2000 Jeff Johnson - Create.