|
|
0468225 |
%bcond_without icu
|
|
|
1d7d17b |
Name: xalan-c
|
|
|
0468225 |
Version: 1.12.0
|
|
|
cd48100 |
# The soversion is made from the major and minor version numbers, e.g. 112 for
|
|
|
cd48100 |
# version 1.12.x. We could do this automatically…
|
|
|
cd48100 |
# %%global so_version %%(echo %%{version} | cut -d . -f -2 | tr -d .)
|
|
|
cd48100 |
# …but we do not do so because we want to make sure we detect any soversion
|
|
|
cd48100 |
# update.
|
|
|
cd48100 |
%global so_version 112
|
|
|
57a8836 |
Release: %autorelease
|
|
|
ffe4a39 |
Summary: Xalan XSLT processor for C/C++
|
|
|
1d7d17b |
|
|
|
1d7d17b |
License: ASL 2.0
|
|
|
8a8827c |
URL: http://xalan.apache.org/xalan-c/
|
|
|
0468225 |
%global tag Xalan-C_%(echo '%{version}' | tr . _)
|
|
|
0468225 |
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
|
|
|
8a8827c |
%global release_url https://github.com/apache/xalan-c/releases/download/%{tag}
|
|
|
0468225 |
Source0: %{release_url}/%{tar_name}.tar.gz
|
|
|
0468225 |
Source1: %{release_url}/%{tar_name}.tar.gz.asc
|
|
|
0468225 |
Source2: %{release_url}/KEYS
|
|
|
0468225 |
|
|
|
0468225 |
BuildRequires: gnupg2
|
|
|
0468225 |
BuildRequires: cmake
|
|
|
0468225 |
# Either make or ninja is supported.
|
|
|
0468225 |
BuildRequires: ninja-build
|
|
Igor Gnatenko |
e67784b |
BuildRequires: gcc-c++
|
|
|
1d7d17b |
BuildRequires: xerces-c-devel
|
|
|
0468225 |
%if %{with icu}
|
|
|
0468225 |
BuildRequires: libicu-devel
|
|
|
0468225 |
%endif
|
|
|
0468225 |
|
|
|
1d7d17b |
%description
|
|
|
ffe4a39 |
The Apache Xalan-C++ Project provides a library and a command line program to
|
|
|
ffe4a39 |
transform XML documents using a stylesheet that conforms to XSLT 1.0 standards.
|
|
|
ffe4a39 |
|
|
|
ffe4a39 |
Xalan is a project of the Apache Software Foundation.
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%package devel
|
|
|
8a8827c |
Summary: Development files for xalan-c
|
|
|
8a8827c |
Requires: xalan-c%{?_isa} = %{version}-%{release}
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%description devel
|
|
|
8a8827c |
The xalan-c-devel package contains libraries and header files for developing
|
|
|
8a8827c |
applications that use xalan-c.
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%package doc
|
|
|
8a8827c |
Summary: Documentation for xalan-c
|
|
|
d1ec8cb |
|
|
|
d1ec8cb |
# Doxygen HTML help is not suitable for packaging due to a minified JavaScript
|
|
|
d1ec8cb |
# bundle inserted by Doxygen itself. See discussion at
|
|
|
d1ec8cb |
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555.
|
|
|
d1ec8cb |
#
|
|
|
d1ec8cb |
# Normally, we would enable the Doxygen PDF documentation as a lesser
|
|
|
d1ec8cb |
# substitute, but building it fails with:
|
|
|
d1ec8cb |
# ! TeX capacity exceeded, sorry [pool size=5905151].
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%description doc
|
|
|
d1ec8cb |
Documentation for xalan-c. See https://apache.github.io/xalan-c/ for full HTML
|
|
|
d1ec8cb |
documentation.
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%prep
|
|
|
0468225 |
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
0468225 |
|
|
|
0468225 |
%autosetup -n %{tar_name}
|
|
|
0468225 |
|
|
|
0468225 |
# https://github.com/apache/xalan-c/pull/35
|
|
|
52e2faa |
chmod -v a-x NOTICE
|
|
|
0468225 |
|
|
|
006cff5 |
# Remove the Autotools build system cruft from the samples; otherwise, it would
|
|
|
006cff5 |
# be installed as documentation. We leave the CmakeLists.txt even though it
|
|
|
006cff5 |
# cannot be used standalone; it is used in the build (even though the built
|
|
|
006cff5 |
# samples are only tested and not installed), and is annoying to exclude.
|
|
|
0468225 |
rm -vf samples/configure samples/configure.in
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%build
|
|
|
2ed2e58 |
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
|
|
|
0468225 |
%cmake_build
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%install
|
|
|
0468225 |
%cmake_install
|
|
|
0468225 |
# Remove CMake-installed docs in favor of using the doc macro. We refer to
|
|
|
0468225 |
# _prefix/share instead of _datadir to mirror how the install path is defined
|
|
|
d1ec8cb |
# in the relevant CMakeLists.txt. Note also that we do *not* want to install
|
|
|
d1ec8cb |
# the HTML version of the API documentation.
|
|
|
0468225 |
rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
0468225 |
%check
|
|
|
0468225 |
%ctest
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%files
|
|
|
0468225 |
%license LICENSE
|
|
|
0468225 |
%doc CREDITS
|
|
|
0468225 |
%doc KEYS
|
|
|
0468225 |
%doc NOTICE
|
|
|
0468225 |
%doc README.md
|
|
|
1d7d17b |
%{_bindir}/Xalan
|
|
|
0468225 |
%{_libdir}/libxalanMsg.so.%{so_version}
|
|
|
0468225 |
%{_libdir}/libxalanMsg.so.%{so_version}.*
|
|
|
0468225 |
%{_libdir}/libxalan-c.so.%{so_version}
|
|
|
0468225 |
%{_libdir}/libxalan-c.so.%{so_version}.*
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%files devel
|
|
|
0468225 |
%{_libdir}/libxalanMsg.so
|
|
|
0468225 |
%{_libdir}/libxalan-c.so
|
|
|
1d7d17b |
%{_includedir}/xalanc/
|
|
|
0468225 |
%dir %{_libdir}/cmake/XalanC
|
|
|
0468225 |
%{_libdir}/cmake/XalanC/*.cmake
|
|
|
0468225 |
%dir %{_libdir}/pkgconfig
|
|
|
8a8827c |
%{_libdir}/pkgconfig/xalan-c.pc
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%files doc
|
|
|
0468225 |
%license LICENSE
|
|
|
0468225 |
%doc CREDITS
|
|
|
0468225 |
%doc KEYS
|
|
|
0468225 |
%doc NOTICE
|
|
|
0468225 |
%doc README.md
|
|
|
0468225 |
%doc docs/*.md docs/images
|
|
|
0468225 |
%doc samples
|
|
|
1d7d17b |
|
|
|
1d7d17b |
|
|
|
1d7d17b |
%changelog
|
|
|
57a8836 |
%autochangelog
|