xalan-c-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: Xalan XSLT processor for C
  2. Name: xalan-c
  3. Version: 1.11.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.us.apache.org/dist/xalan/xalan-c/sources/xalan_c-1.11-src.tar.gz
  9. Patch0: xalan-c-1.10.0-escaping.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: xerces-c-devel
  12. Requires(post): /sbin/ldconfig
  13. Requires(postun): /sbin/ldconfig
  14. %description
  15. Xalan is an XSLT processor for transforming XML documents into HTML, text, or
  16. other XML document types.
  17. %package devel
  18. Summary: Header files, libraries and development documentation for %{name}
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. %description devel
  22. This package contains the header files, static libraries and development
  23. documentation for %{name}. If you like to develop programs using %{name},
  24. you will need to install %{name}-devel.
  25. %package doc
  26. Group: Documentation
  27. Summary: Documentation for Xerces-C++ validating XML parser
  28. %description doc
  29. Documentation for %{name}.
  30. %prep
  31. %setup -q -n xalan-c-1.11/c
  32. %patch0 -p2 -b .escaping
  33. find -type d -name CVS -print0 | xargs -0 rm -rf
  34. chmod 644 NOTICE
  35. %build
  36. export XALANCROOT="${PWD}"
  37. export XERCESROOT=%{_includedir}/xercesc/
  38. COMMONARGS="-plinux -cgcc -xg++ -minmem"
  39. %ifarch alpha ppc64 s390x sparc64 x86_64
  40. ./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  41. %else
  42. ./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  43. %endif
  44. # _smp_mflags do not work
  45. make
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. export XALANCROOT="${PWD}"
  49. export XERCESROOT=%{_includedir}/xercesc/
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc LICENSE KEYS NOTICE
  58. %{_bindir}/Xalan
  59. %{_libdir}/libxalan*.so.*
  60. %files devel
  61. %defattr(-,root,root,-)
  62. %{_libdir}/libxalan*.so
  63. %{_includedir}/xalanc/
  64. %files doc
  65. %defattr(-,root,root,-)
  66. %doc readme.html xdocs samples
  67. %changelog
  68. * Mon Jul 14 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.11.0-1
  69. - update to 1.11.0
  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