1 Star 0 Fork 1

brucezhang/xalan-c

forked from OpenCloudOS Stream/xalan-c 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
xalan-c.spec 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
brucezhang 提交于 2025-01-09 15:31 +08:00 . Rebuild for icu-74.2
%bcond_without icu
Name: xalan-c
Version: 1.12.0
%global so_version 112
Release: 2%{?dist}
Summary: Xalan XSLT processor for C/C++
License: Apache-2.0
URL: http://xalan.apache.org/xalan-c/
%global tag Xalan-C_%(echo '%{version}' | tr . _)
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global release_url https://github.com/apache/xalan-c/releases/download/%{tag}
Source0: %{release_url}/%{tar_name}.tar.gz
Source1: %{release_url}/%{tar_name}.tar.gz.asc
Source2: %{release_url}/KEYS
BuildRequires: gnupg2
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc-c++
BuildRequires: xerces-c-devel
%if %{with icu}
BuildRequires: libicu-devel
%endif
%description
The Apache Xalan-C++ Project provides a library and a command line program to
transform XML documents using a stylesheet that conforms to XSLT 1.0 standards.
Xalan is a project of the Apache Software Foundation.
%package devel
Summary: Development files for xalan-c
Requires: xalan-c = %{version}-%{release}
%description devel
The xalan-c-devel package contains libraries and header files for developing
applications that use xalan-c.
%package doc
Summary: Documentation for xalan-c
%description doc
Documentation for xalan-c. See https://apache.github.io/xalan-c/ for full HTML
documentation.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{tar_name}
chmod -v a-x NOTICE
rm -vf samples/configure samples/configure.in
%build
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%cmake_build
%install
%cmake_install
rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
%check
%ctest
%files
%license LICENSE
%doc CREDITS
%doc KEYS
%doc NOTICE
%doc README.md
%{_bindir}/Xalan
%{_libdir}/libxalanMsg.so.%{so_version}{,.*}
%{_libdir}/libxalan-c.so.%{so_version}{,.*}
%files devel
%{_libdir}/libxalanMsg.so
%{_libdir}/libxalan-c.so
%{_includedir}/xalanc/
%dir %{_libdir}/cmake/XalanC
%{_libdir}/cmake/XalanC/*.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/xalan-c.pc
%files doc
%license LICENSE
%doc CREDITS
%doc KEYS
%doc NOTICE
%doc README.md
%doc docs/*.md
%doc docs/images/
%doc samples/
%changelog
* Thu Jan 09 2025 bbrucezhang <bbrucezhang@tencent.com> - 1.12.0-2
- Rebuild for icu-74.2
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.12.0-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bbrucezhang/xalan-c.git
git@gitee.com:bbrucezhang/xalan-c.git
bbrucezhang
xalan-c
xalan-c
master

搜索帮助