mirror of
https://abf.rosa.ru/djam/tinyxml2.git
synced 2025-02-23 17:02:56 +00:00
10.0.0
This commit is contained in:
parent
1085ea0937
commit
13ae23d972
2 changed files with 10 additions and 4 deletions
1
tinyxml2.rpmlintrc
Normal file
1
tinyxml2.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
addFilter("E: wrong-script-end-of-line-encoding")
|
|
@ -8,9 +8,10 @@ Version: 10.0.0
|
||||||
Release: 1
|
Release: 1
|
||||||
License: zlib
|
License: zlib
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://www.grinninglizard.com/tinyxml2/
|
URL: https://github.com/leethomason/tinyxml2
|
||||||
Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: FindTinyXML2.cmake
|
Source1: FindTinyXML2.cmake
|
||||||
|
Source1000: %{name}.rpmlintrc
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
|
||||||
|
@ -68,7 +69,8 @@ for writing applications with the %{name} library.
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake
|
%cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
%make
|
%make
|
||||||
|
|
||||||
# Build the documentation from the "dox" template
|
# Build the documentation from the "dox" template
|
||||||
|
@ -79,10 +81,13 @@ doxygen dox
|
||||||
%makeinstall_std -C build
|
%makeinstall_std -C build
|
||||||
|
|
||||||
# Install CMake find module
|
# Install CMake find module
|
||||||
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd build
|
pushd build
|
||||||
export LD_LIBRARY_PATH=`pwd`
|
export LD_LIBRARY_PATH=`pwd`
|
||||||
./xmltest .././resources/
|
./xmltest .././resources/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# fix double slash in pc
|
||||||
|
sed -i 's|//|/|g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
Loading…
Add table
Reference in a new issue