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