%define name expat %define version 1.95.2 %define release 1mdk %define libname_orig libexpat %define major 1_95 %define libname %{libname_orig}%{major} Summary: Expat is an XML parser written in C Name: %{name} Version: %{version} Release: %{release} Copyright: MPL or GPL Group: Development/Other URL: http://www.jclark.com/xml/expat.html Source: ftp://ftp.jclark.com/pub/xml/%{name}-%{version}.tar.bz2 Requires: %{libname} = %{version}-%{release} BuildRoot: %_tmppath/%name-%version-%release-root %description Expat is an XML 1.0 parser written in C by James Clark. It aims to be fully conforming. It is currently not a validating XML parser. %package -n %{libname} Summary: Main library for expat Group: Development/C %description -n %{libname} This package contains the library needed to run programs dynamically linked with expat. %package -n %{libname}-devel Summary: Development environment for the expat XML parser Group: Development/C Requires: %{libname} = %{version} Provides: %{libname_orig}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel %description -n %{libname}-devel Development environment for the expat XML parser %prep %setup -q -n %name-%{version} #%patch -p1 %configure %build # Dadou - 1.1-2mdk - Don't try to use optimizations. It breaks build %make ( cd xmlwf make ) %install %makeinstall install -D doc/reference.html %buildroot%_docdir/%name-%version install -D xmlwf/xmlwf %buildroot/%_bindir/xmlwf #install -D libexpat.a %buildroot/%_libdir/libexpat.a #install -D gennmtab/gennmtab %buildroot/%_bindir/gennmtab %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean rm -rf %buildroot %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %_bindir/xmlwf %_libdir/libexpat.la %files -n %{libname} %defattr(-,root,root) %_libdir/libexpat.so.* %files -n %{libname}-devel %defattr(-,root,root) %defattr(-,root,root) %_libdir/libexpat.so %_includedir/expat.h %_libdir/libexpat.a %doc %_docdir/%{name}-%{version} %changelog * Mon Jul 30 2001 Daouda LO <daouda@mandrakesoft.com> 1.95.2-1mdk - release 1.95.2 - libification. * Sat Jun 23 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.95.1-4mdk - remove trailing "/" from install path, to fix build * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95.1-3mdk - real version is 1.95.1 - reenable optimisations * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95-1mdk - release . * Sun Jan 07 2001 David BAUDENS <baudens@mandrakesoft.com> 1.1-2mdk - Don't try to use optimizations - Bzip2 sources * Mon Nov 20 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.1-1mdk - first version