代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/tinyxml2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: tinyxml2
Version: 9.0.0
Release: 1
Summary: C++ XML parser
License: zlib
URL: https://github.com/leethomason/%{name}
Source0: https://github.com/leethomason/%{name}/archive/refs/tags/%{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
mkdir objdir
cd objdir
%cmake .. -DBUILD_STATIC_LIBS=OFF
%make_build
%check
cd objdir
make test
%install
cd objdir
%make_install
%post
/sbin/ldconfig
%files
%doc readme.md
%{_libdir}/lib%{name}.so.9.0.0
%{_libdir}/lib%{name}.so.9
%files devel
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/*.cmake
%changelog
* Mon Oct 24 2022 YukariChiba <i@0x7f.cc> - 9.0.0-1
- Upgrade version to 9.0.0
- Switch to use stable version source url
* Thu Nov 21 2019 zhujunhao <zhujunhao5@huawei.com> - 6.0.0-5
- Initial package.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。