%define tarversion 1_10_0 %define packname xml-xalan %define minor 0 %define libname %mklibname %{name} %{minor} Name: xalan-c Version: 1.10 Release: %mkrel 5 License: Apache License Group: Development/Other BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Summary: An XSLT Transformation Engine in C++ URL: http://xalan.apache.org/ Source: Xalan-C_1_10_0-src.tar.gz Patch0: xml-xalan-lib64.patch Patch1: Xalan-C_1_10_0-gcc-4.3-pedantic.patch BuildRequires: xerces-c-devel >= 2.7.0 %description Xalan is an XSL processor for transforming XML documents into HTML, text, or other XML document types. Xalan-C++ represents an almost complete and a robust C++ reference implementation of the W3C Recommendations for XSL Transformations (XSLT) and the XML Path Language (XPath). #------------------------------------------------------------------------ %package -n %{libname} Group: Development/Other Summary: Library for an XSLT Transformation Engine in C++ Obsoletes: xalan-c < 1.10-1mdv2008.0 Provides: xalan-c %description -n %{libname} Library for xalan-c %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files -n %{libname} %defattr(-,root,root) %doc c/README %{_bindir}/* %{_libdir}/*.so.* #------------------------------------------------------------------------ %package -n %{libname}-devel Requires: %libname = %version-%release Group: Development/Other Summary: Developpement files for XSLT Transformation Engine Provides: xalan-c-devel = %version-%release Provides: libxalan-c-devel = %version-%release Obsoletes: xalan-c-devel %description -n %{libname}-devel Xalan is an XSL processor for transforming XML documents into HTML, text, or other XML document types. Xalan-C++ represents an almost complete and a robust C++ reference implementation of the W3C Recommendations for XSL Transformations (XSLT) and the XML Path Language (XPath). %files -n %{libname}-devel %defattr(-,root,root) %{_libdir}/*.so %{_includedir}/xalanc/* #------------------------------------------------------------------------ %package doc Group: Development/Other Summary: Online manual for Xalan-C, XSLT Transformation Engine %description doc Documentation for Xalan-C, viewable through your web server, too! %files doc %defattr(644 root root 755) %doc c/LICENSE c/readme.html c/xdocs/ #------------------------------------------------------------------------ %prep %setup -q -n %{packname} %if "%{_lib}" != "lib" %patch0 -p1 -b .orig %endif %patch1 -p1 -b .pedantic %build rm -f c/bin/* rm -f c/lib/* export XALANCROOT=${RPM_BUILD_DIR}/%{packname}/c/ export XERCESCROOT=%{_includedir}/xercesc export ICUROOT=%_prefix cd $XALANCROOT export CXXFLAGS="$RPM_OPT_FLAGS -fexceptions" sh ./runConfigure \ -p linux \ -c gcc \ -x c++ \ -m nls \ -t icu \ %if "%{_lib}" != "lib" -b "64" \ %else -b "32" \ %endif -P /usr \ -m inmem \ -C --libdir -C /usr/%_lib make make samples make tests %install rm -rf ${RPM_BUILD_ROOT} export XALANCROOT=${RPM_BUILD_DIR}/%{packname}/c/ cd c/ %makeinstall %clean rm -fr %buildroot %changelog * Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.10-5mdv2009.0 + Revision: 266068 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Thu May 29 2008 Helio Chissini de Castro <helio@mandriva.com> 1.10-4mdv2009.0 + Revision: 213156 - Recompile against current xerces-c - Added gcc pedantic patch * Thu Apr 24 2008 Helio Chissini de Castro <helio@mandriva.com> 1.10-3mdv2009.0 + Revision: 197289 - Rebuild against new xerces-c * Wed Mar 05 2008 Oden Eriksson <oeriksson@mandriva.com> 1.10-2mdv2008.1 + Revision: 179590 - rebuild + Thierry Vignaud <tvignaud@mandriva.com> - fix no-buildroot-tag - kill re-definition of %%buildroot on Pixel's request * Mon May 07 2007 Helio Chissini de Castro <helio@mandriva.com> 1.10-1mdv2008.0 + Revision: 24862 - Drop old nls, using icu. Added build requires * Wed Aug 16 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-08-16 15:51:22 (56379) - New upstream stable version * Tue Aug 15 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-08-15 14:34:25 (56194) - import xalan-c-1.4-0.20040818104017.2mdk * Mon Sep 26 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.4-0.20040818104017.2mdk - Rebuild to fix ticket #16486