2024-01-05 19:32:02 +01:00
|
|
|
%define libname lib%{name}
|
|
|
|
%define pckver %(echo %version | tr '.' '_')
|
|
|
|
|
|
|
|
Name: xalan-c
|
2024-01-05 19:32:02 +01:00
|
|
|
Version: 1.12
|
|
|
|
Release: 1mamba
|
2024-01-05 19:32:02 +01:00
|
|
|
Summary: An XSLT processor in C++
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://xml.apache.org/xalan-c
|
2024-01-05 19:32:02 +01:00
|
|
|
Source: http://mirror.nohup.it/apache/xalan/xalan-c/sources/xalan_c-%{version}.tar.gz
|
2024-01-05 19:32:02 +01:00
|
|
|
Patch0: %{name}-1.10.0-gcc-43.patch
|
|
|
|
License: Apache License 2.0
|
2024-01-05 19:32:02 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ldconfig
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 19:32:02 +01:00
|
|
|
BuildRequires: libxerces-c-devel
|
2024-01-05 19:32:02 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 19:32:02 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types.
|
|
|
|
|
|
|
|
Xalan-C++ is a robust implementation of the W3C Recommendations for XSL Transformations (XSLT) and the XML Path Language (XPath).
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library for an XSLT processor in C++
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Library for an XSLT processor in C++.
|
|
|
|
|
|
|
|
%package -n %{libname}-devel
|
|
|
|
Summary: Static libraries and headers for %{libname}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
|
|
|
Library for an XSLT processor in C++.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
2024-01-05 19:32:02 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 19:32:02 +01:00
|
|
|
%prep
|
2024-01-05 19:32:02 +01:00
|
|
|
%setup -q -n xalan_c-%{version}
|
|
|
|
#%patch0 -p1
|
2024-01-05 19:32:02 +01:00
|
|
|
|
2024-01-05 19:32:02 +01:00
|
|
|
## use optflags in runConfigure
|
|
|
|
#for runconf in $(find -name runConfigure); do
|
|
|
|
# sed -i -e "s/-O2 \(-DNDEBUG\)/%{optflags} \1/g" $runconf
|
|
|
|
#done
|
2024-01-05 19:32:02 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 19:32:02 +01:00
|
|
|
%cmake -d build
|
|
|
|
|
|
|
|
#export XERCESCROOT=%{_includedir}/xercesc
|
|
|
|
#export XALANCROOT=$(pwd)/c
|
|
|
|
#export ICUROOT=%{_prefix}
|
|
|
|
#
|
|
|
|
#pushd c
|
|
|
|
#autoreconf --install --force
|
|
|
|
#./runConfigure \
|
|
|
|
# -p linux \
|
|
|
|
# -c %{_target_platform}-gcc \
|
|
|
|
# -x %{_target_platform}-g++ \
|
|
|
|
# -m inmem \
|
|
|
|
# -t icu \
|
|
|
|
# -r pthread \
|
|
|
|
# -b 32 \
|
|
|
|
# -P %{_prefix} \
|
|
|
|
# -C --libdir="%{_libdir}"
|
|
|
|
|
|
|
|
%make
|
2024-01-05 19:32:02 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 19:32:02 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
#export XALANCROOT=$(pwd)/c
|
|
|
|
#% makeinstall -C c
|
2024-01-05 19:32:02 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 19:32:02 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2024-01-05 19:32:02 +01:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-, root, root)
|
2024-01-05 19:32:02 +01:00
|
|
|
%{_libdir}/libxalan-c.so.*
|
|
|
|
%{_libdir}/libxalanMsg.so.*
|
|
|
|
%doc LICENSE CREDITS
|
2024-01-05 19:32:02 +01:00
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/xalanc
|
2024-01-05 19:32:02 +01:00
|
|
|
%{_libdir}/libxalan-c.so
|
|
|
|
%{_libdir}/libxalanMsg.so
|
|
|
|
%{_libdir}/pkgconfig/xalan-c.pc
|
|
|
|
%dir %{_libdir}/cmake/XalanC
|
|
|
|
%{_libdir}/cmake/XalanC/XalanCConfig*.cmake
|
|
|
|
%dir %{_datadir}/doc/xalan-c
|
|
|
|
%dir %{_datadir}/doc/xalan-c/api
|
|
|
|
%{_datadir}/doc/xalan-c/api/*
|
|
|
|
%doc README.md
|
2024-01-05 19:32:02 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 19:32:02 +01:00
|
|
|
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12-1mamba
|
|
|
|
- update to 1.12
|
|
|
|
|
|
|
|
* Thu Jan 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11-1mamba
|
|
|
|
- update to 1.11
|
|
|
|
|
2024-01-05 19:32:02 +01:00
|
|
|
* Sat Apr 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-3mamba
|
|
|
|
- rebuilt (added gcc 4.3 patch)
|
|
|
|
|
|
|
|
* Thu Oct 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-2mamba
|
|
|
|
- rebuilt against libxerces-c 1.8.0
|
|
|
|
|
|
|
|
* Fri Jun 08 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.10.0-1mamba
|
|
|
|
- package created by autospec
|