xalan-c-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Summary: Xalan XSLT processor for C
  2. Name: xalan-c
  3. Version: 1.10.0
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: ASL 2.0
  7. URL: http://xml.apache.org/xalan-c/
  8. Source0: http://www.apache.org/dist/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz
  9. Patch0: xalan-c-1.10.0-escaping.patch
  10. Patch1: xalan-c-1.10.0-gcc43.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: xerces-c-devel
  13. Requires(post): /sbin/ldconfig
  14. Requires(postun): /sbin/ldconfig
  15. %description
  16. Xalan is an XSLT processor for transforming XML documents into HTML, text, or
  17. other XML document types.
  18. %package devel
  19. Summary: Header files, libraries and development documentation for %{name}
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. %description devel
  23. This package contains the header files, static libraries and development
  24. documentation for %{name}. If you like to develop programs using %{name},
  25. you will need to install %{name}-devel.
  26. %package doc
  27. Group: Documentation
  28. Summary: Documentation for Xerces-C++ validating XML parser
  29. %description doc
  30. Documentation for %{name}.
  31. %prep
  32. %setup -q -n xml-xalan/c
  33. %patch0 -p2 -b .escaping
  34. %patch1 -p2 -b .gcc43
  35. find -type d -name CVS -print0 | xargs -0 rm -rf
  36. chmod 644 NOTICE
  37. %build
  38. export XALANCROOT="${PWD}"
  39. export XERCESROOT=%{_includedir}/xercesc/
  40. COMMONARGS="-plinux -cgcc -xg++ -minmem -rpthreads"
  41. %ifarch alpha ppc64 s390x sparc64 x86_64
  42. ./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  43. %else
  44. ./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  45. %endif
  46. # _smp_mflags do not work
  47. make
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. export XALANCROOT="${PWD}"
  51. export XERCESROOT=%{_includedir}/xercesc/
  52. make install DESTDIR=$RPM_BUILD_ROOT
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %files
  58. %defattr(-,root,root,-)
  59. %doc LICENSE KEYS NOTICE
  60. %{_bindir}/Xalan
  61. %{_libdir}/libxalan*.so.*
  62. %files devel
  63. %defattr(-,root,root,-)
  64. %{_libdir}/libxalan*.so
  65. %{_includedir}/xalanc/
  66. %files doc
  67. %defattr(-,root,root,-)
  68. %doc readme.html xdocs samples
  69. %changelog
  70. * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.0-1
  71. - initial build for Vine Linux
  72. * Mon Feb 11 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.10.0-4
  73. - Rebuild for newer xerces-c
  74. * Thu Jan 03 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.10.0-3
  75. - Adding missing includes to fix build with gcc-4.3
  76. * Mon Nov 19 2007 Lubomir Kundrak <lkundrak@redhat.com> - 1.10.0-2
  77. - Fix passing of compiler flags
  78. - Bump to stable source instead of CVS snapshot
  79. - Fixed License tag
  80. * Thu Feb 15 2007 Till Maas <opensource till name> - 1.10.0-1
  81. - Initial spec for fedora extras