112 Star 0 Fork 12

src-openEuler / tinyxml2
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tinyxml2.spec 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2024-12-12 18:51 +08:00 . adopt to new cmake macro
Name: tinyxml2
Version: 9.0.0
Release: 2
Summary: C++ XML parser
License: zlib
URL: https://github.com/leethomason/%{name}
Source0: https://github.com/leethomason/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++ cmake
%description
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
easily integrated into other programs. TinyXML-2 parses an XML document, and builds
from that a Document Object Model (DOM) that can be read, modified, and saved.
%package devel
Summary: Development files for tinyxml2
Requires: %{name} = %{version}-%{release}
%description devel
The devel package contains development files for tinyxml2.It provides
header files and libraries for tinyxml2.
%prep
%autosetup -n %{name}-%{version}
chmod -c -x *.cpp *.h
sed -i -e 's,lib/,${CMAKE_INSTALL_LIBDIR}/,g' CMakeLists.txt
%build
%cmake -DBUILD_STATIC_LIBS=OFF
%cmake_build
%check
%ctest
%install
%cmake_install
%files
%license LICENSE.txt
%doc readme.md
%{_libdir}/lib%{name}.so.*
%files devel
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}
%changelog
* Thu Dec 12 2024 Funda Wang <fundawang@yeah.net> - 9.0.0-2
- adopt to new cmake macro
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 9.0.0-1
- Upgrade to 9.0.0
* Thu Nov 21 2019 zhujunhao <zhujunhao5@huawei.com> - 6.0.0-5
- Initial package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/tinyxml2.git
git@gitee.com:src-openeuler/tinyxml2.git
src-openeuler
tinyxml2
tinyxml2
openEuler-25.03

搜索帮助