9fdd5ca
Name:           xalan-c
9fdd5ca
Version:        1.10.0
9fdd5ca
Release:        2%{?dist}
9fdd5ca
Summary:        Xalan XSLT processor for C
9fdd5ca
9fdd5ca
Group:          System Environment/Libraries
9fdd5ca
License:        ASL 2.0
9fdd5ca
URL:            http://xml.apache.org/xalan-c/
9fdd5ca
Source0:        http://www.apache.org/dist/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz
9fdd5ca
Patch0:         xalan-c-1.10.0-escaping.patch
9fdd5ca
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9fdd5ca
9fdd5ca
BuildRequires:  xerces-c-devel
9fdd5ca
Requires(post): /sbin/ldconfig
9fdd5ca
Requires(postun): /sbin/ldconfig
9fdd5ca
9fdd5ca
%description
9fdd5ca
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
9fdd5ca
other XML document types.
9fdd5ca
9fdd5ca
9fdd5ca
%package        devel
9fdd5ca
Summary:        Header files, libraries and development documentation for %{name}
9fdd5ca
Group:          Development/Libraries
9fdd5ca
Requires:       %{name} = %{version}-%{release}
9fdd5ca
9fdd5ca
9fdd5ca
%description devel
9fdd5ca
This package contains the header files, static libraries and development
9fdd5ca
documentation for %{name}. If you like to develop programs using %{name},
9fdd5ca
you will need to install %{name}-devel.
9fdd5ca
9fdd5ca
9fdd5ca
%package doc
9fdd5ca
Group:          Documentation
9fdd5ca
Summary:        Documentation for Xerces-C++ validating XML parser
9fdd5ca
9fdd5ca
9fdd5ca
%description doc
9fdd5ca
Documentation for %{name}.
9fdd5ca
9fdd5ca
9fdd5ca
%prep
9fdd5ca
%setup -q -n xml-xalan/c
9fdd5ca
%patch -p2 -b .escaping
9fdd5ca
find -type d -name CVS -print0 | xargs -0 rm -rf
9fdd5ca
chmod 644 NOTICE
9fdd5ca
9fdd5ca
9fdd5ca
%build
9fdd5ca
export XALANCROOT="${PWD}"
9fdd5ca
export XERCESROOT=%{_includedir}/xercesc/
9fdd5ca
COMMONARGS="-plinux -cgcc -xg++ -minmem -rpthreads"
9fdd5ca
%ifarch alpha ppc64 s390x sparc64 x86_64
9fdd5ca
./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
9fdd5ca
%else
9fdd5ca
./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
9fdd5ca
%endif
9fdd5ca
# _smp_mflags do not work
9fdd5ca
make
9fdd5ca
9fdd5ca
9fdd5ca
%install
9fdd5ca
rm -rf $RPM_BUILD_ROOT
9fdd5ca
export XALANCROOT="${PWD}"
9fdd5ca
export XERCESROOT=%{_includedir}/xercesc/
9fdd5ca
make install DESTDIR=$RPM_BUILD_ROOT
9fdd5ca
9fdd5ca
9fdd5ca
%post -p /sbin/ldconfig
9fdd5ca
%postun -p /sbin/ldconfig
9fdd5ca
9fdd5ca
9fdd5ca
%clean
9fdd5ca
rm -rf $RPM_BUILD_ROOT
9fdd5ca
9fdd5ca
9fdd5ca
%files
9fdd5ca
%defattr(-,root,root,-)
9fdd5ca
%doc LICENSE KEYS NOTICE
9fdd5ca
%{_bindir}/Xalan
9fdd5ca
%{_libdir}/libxalan*.so.*
9fdd5ca
9fdd5ca
9fdd5ca
%files devel
9fdd5ca
%defattr(-,root,root,-)
9fdd5ca
%{_libdir}/libxalan*.so
9fdd5ca
%{_includedir}/xalanc/
9fdd5ca
9fdd5ca
9fdd5ca
%files doc
9fdd5ca
%defattr(-,root,root,-)
9fdd5ca
%doc readme.html xdocs samples
9fdd5ca
9fdd5ca
9fdd5ca
%changelog
9fdd5ca
* Mon Nov 19 2007 Lubomir Kundrak <lkundrak@redhat.com> - 1.10.0-2
9fdd5ca
- Fix passing of compiler flags
9fdd5ca
- Bump to stable source instead of CVS snapshot
9fdd5ca
- Fixed License tag
9fdd5ca
9fdd5ca
* Thu Feb 15 2007 Till Maas <opensource till name> - 1.10.0-1
9fdd5ca
- Initial spec for fedora extras