Summary: An XML parser library Name: expat Version: 2.0.1 Release: 1 Group: System Environment/Libraries Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz URL: http://www.libexpat.org/ License: MIT BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %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. The library is available as 32-bit and 64-bit. %package devel Summary: Libraries and header files to develop applications using expat Group: Development/Libraries Requires: expat = %{version}-%{release} %description devel The expat-devel package contains the libraries, include files and documentation to develop XML applications with expat. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="cc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} cp .libs/libexpat.so.1 . make distclean # now build the 32-bit version export CC="cc" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q .libs/libexpat.a ./libexpat.so.1 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -f examples/*.dsp chmod 644 README COPYING Changes doc/* examples/* make DESTDIR=$RPM_BUILD_ROOT install /usr/bin/strip $RPM_BUILD_ROOT%{_bindir}/* || : ( cd $RPM_BUILD_ROOT for dir in bin include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system) %doc README COPYING %{_bindir}/* %{_libdir}/*.a %{_mandir}/man?/* /usr/bin/* /usr/lib/*.a %files devel %defattr(-,root,system) %doc Changes doc examples %{_libdir}/*.la %{_includedir}/*.h /usr/include/* /usr/lib/*.la %changelog * Mon Mar 31 2008 Michael Perzl - 2.0.1-1 - first version for AIX V5.1 and higher