tinyxml2/tinyxml2.spec

60 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-26 10:31:28 +08:00
Name: tinyxml2
2023-06-07 17:04:19 +08:00
Version: 9.0.0
Release: 1
2019-11-26 10:31:28 +08:00
Summary: C++ XML parser
License: zlib
URL: https://github.com/leethomason/%{name}
2023-06-07 17:04:19 +08:00
Source0: https://github.com/leethomason/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
2019-11-26 10:31:28 +08:00
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
2023-06-07 17:04:19 +08:00
%autosetup -n %{name}-%{version}
2019-11-26 10:31:28 +08:00
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
2023-06-07 17:04:19 +08:00
%{_libdir}/lib%{name}.so*
2019-11-26 10:31:28 +08:00
%files devel
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
2023-06-07 17:04:19 +08:00
%{_libdir}/cmake/%{name}/*
2019-11-26 10:31:28 +08:00
%changelog
2023-06-07 17:04:19 +08:00
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 9.0.0-1
- Upgrade to 9.0.0
2019-11-26 10:31:28 +08:00
* Thu Nov 21 2019 zhujunhao <zhujunhao5@huawei.com> - 6.0.0-5
- Initial package.