Summary: Library providing the XSLT engine Name: libxslt Version: 1.0.32 Release: 1 License: IBM_ILA Group: Development/Libraries Source: ftp://xmlsoft.org/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://xmlsoft.org/XSLT/ Requires: libxml2 >= 2.5.6 BuildRequires: libxml2-devel >= 2.5.6 Prefix: %{_prefix} Docdir: %{_docdir} %define DEFCC /usr/vac/bin/xlc %description This C library allows to transform XML files into other XML files (or HTML, text, ...) using the standard XSLT stylesheet transformation mechanism. To use it you need to have a version of libxml2 >= 2.5.6 installed. The xsltproc command is a command line interface to the XSLT engine %package devel Summary: Libraries, includes, etc. to embed the XSLT engine Group: Development/Libraries Requires: libxslt = %{version} Requires: libxml2-devel >= 2.5.6 %description devel This C library allows to transform XML files into other XML files (or HTML, text, ...) using the standard XSLT stylesheet transformation mechanism. To use it you need to have a version of libxml2 >= 2.3.8 installed. %prep %setup -q # Put License into place cat $RPM_SOURCE_DIR/IBM_ILA Copyright > 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 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ma -qlanglvl=extended" export RPM_OPT_FLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS" fi ./configure --prefix=%{prefix} --sysconfdir="%{prefix}/etc" --mandir=%{_mandir} \ --disable-static make %install rm -rf $RPM_BUILD_ROOT %makeinstall /usr/bin/strip $RPM_BUILD_ROOT%{prefix}/bin/* || : # Make links ( 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 rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES LICENSE %doc %{_mandir}/man1/* %{prefix}/lib/*.a %{prefix}/bin/xsltproc # links /usr/lib/*.a /usr/bin/xsltproc %files devel %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES LICENSE %doc doc/libxslt-api.xml %doc doc/libexslt-api.xml %doc doc/*.html doc/html doc/tutorial doc/*.gif %doc %{_mandir}/man3/* %{prefix}/lib/*.a %{prefix}/lib/*.sh %{prefix}/share/aclocal/libxslt.m4 %{prefix}/include/* %{prefix}/bin/xslt-config %{prefix}/lib/pkgconfig/libxslt.pc # links /usr/lib/*.a /usr/lib/*.sh /usr/include/* /usr/bin/xslt-config /usr/lib/pkgconfig/libxslt.pc %changelog * Thu Oct 23 2003 David Clissold - Update to 1.0.32 * Wed Feb 13 2002 Reza Arbab - Modified for AIX freeware distribution. * Fri Feb 8 2002 Daniel.Veillard - added the python module -changed the Licence to MIT * Sat Nov 10 2001 Daniel.Veillard - cleaned up the specfile * Mon Jan 22 2001 Daniel.Veillard - created based on libxml2 spec file