xalan-c-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Summary: Xalan XSLT processor for C
  2. Summary(ja): C 言語用 Xalan XSLT プロセッサ
  3. Name: xalan-c
  4. Version: 1.11.0
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: ASL 2.0
  8. URL: http://xml.apache.org/xalan-c/
  9. Source0: http://www.us.apache.org/dist/xalan/xalan-c/sources/xalan_c-1.11-src.tar.gz
  10. Patch0: xalan-c-1.10.0-escaping.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 for %{name}
  20. Summary(ja): %{name} のヘッダファイルとライブラリ
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. %description devel
  24. This package contains the header files, static libraries and development
  25. documentation for %{name}. If you like to develop programs using %{name},
  26. you will need to install %{name}-devel.
  27. %package doc
  28. Summary: Documentation for Xalan XSLT processor
  29. Summary(ja): Xalan XSLT プロセッサのドキュメント
  30. Group: Documentation
  31. %description doc
  32. Documentation for %{name}.
  33. %prep
  34. %setup -q -n xalan-c-1.11/c
  35. %patch0 -p2 -b .escaping
  36. find -type d -name CVS -print0 | xargs -0 rm -rf
  37. chmod 644 NOTICE
  38. # Update config.guess for new architectures
  39. cp /usr/lib/rpm/config.guess config.guess
  40. %build
  41. export XALANCROOT="${PWD}"
  42. export XERCESROOT=%{_includedir}/xercesc/
  43. COMMONARGS="-plinux -cgcc -xg++ -minmem"
  44. %ifarch alpha ppc64 s390x sparc64 x86_64
  45. ./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  46. %else
  47. ./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
  48. %endif
  49. # _smp_mflags do not work
  50. make
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. export XALANCROOT="${PWD}"
  54. export XERCESROOT=%{_includedir}/xercesc/
  55. make install DESTDIR=$RPM_BUILD_ROOT
  56. %post -p /sbin/ldconfig
  57. %postun -p /sbin/ldconfig
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %files
  61. %defattr(-,root,root,-)
  62. %doc LICENSE KEYS NOTICE
  63. %{_bindir}/Xalan
  64. %{_libdir}/libxalan*.so.*
  65. %files devel
  66. %defattr(-,root,root,-)
  67. %{_libdir}/libxalan*.so
  68. %{_includedir}/xalanc/
  69. %files doc
  70. %defattr(-,root,root,-)
  71. %doc readme.html xdocs samples
  72. %changelog
  73. * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.11.0-2
  74. - rebuilt with xerces-c 3.1.1
  75. - added Japanese summary
  76. * Mon Jul 14 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.11.0-1
  77. - update to 1.11.0
  78. * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.0-1
  79. - initial build for Vine Linux
  80. * Mon Feb 11 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.10.0-4
  81. - Rebuild for newer xerces-c
  82. * Thu Jan 03 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.10.0-3
  83. - Adding missing includes to fix build with gcc-4.3
  84. * Mon Nov 19 2007 Lubomir Kundrak <lkundrak@redhat.com> - 1.10.0-2
  85. - Fix passing of compiler flags
  86. - Bump to stable source instead of CVS snapshot
  87. - Fixed License tag
  88. * Thu Feb 15 2007 Till Maas <opensource till name> - 1.10.0-1
  89. - Initial spec for fedora extras