This commit is contained in:
Sergey Zhemoytel 2024-09-15 08:58:38 +00:00
parent 1085ea0937
commit 13ae23d972
2 changed files with 10 additions and 4 deletions

1
tinyxml2.rpmlintrc Normal file
View file

@ -0,0 +1 @@
addFilter("E: wrong-script-end-of-line-encoding")

View file

@ -8,9 +8,10 @@ Version: 10.0.0
Release: 1
License: zlib
Group: System/Libraries
Url: http://www.grinninglizard.com/tinyxml2/
Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz
URL: https://github.com/leethomason/tinyxml2
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: FindTinyXML2.cmake
Source1000: %{name}.rpmlintrc
BuildRequires: cmake
BuildRequires: doxygen
@ -68,7 +69,8 @@ for writing applications with the %{name} library.
%setup -q
%build
%cmake
%cmake \
-DCMAKE_BUILD_TYPE=Release
%make
# Build the documentation from the "dox" template
@ -79,10 +81,13 @@ doxygen dox
%makeinstall_std -C build
# Install CMake find module
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
%check
pushd build
export LD_LIBRARY_PATH=`pwd`
./xmltest .././resources/
popd
# fix double slash in pc
sed -i 's|//|/|g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc