mirror of
https://abf.rosa.ru/djam/tinyxml2.git
synced 2025-02-24 01:12:55 +00:00
New version 5.0.1
New library major 5
This commit is contained in:
parent
11c05ca84e
commit
ba2963dbfa
3 changed files with 60 additions and 34 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
tinyxml2-3.0.0.tar.gz: 07acaae49f7dd3dab790da4fe72d0c7ef0d116d1
|
tinyxml2-5.0.1.tar.gz: b9b5569343f5829345b1bdfe5d0c08c079286495
|
||||||
|
|
26
0001-CMake-Respect-libdir-for-config-files.patch
Normal file
26
0001-CMake-Respect-libdir-for-config-files.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
From f209bf66420c4149bb088bfb3d08f2ad845a5b5c Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
|
||||||
|
Date: Mon, 17 Jul 2017 15:50:34 +0200
|
||||||
|
Subject: [PATCH] CMake: Respect libdir for config files
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index cec4470..c647477 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -170,7 +170,7 @@ file(WRITE
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}Config.cmake
|
||||||
|
- DESTINATION lib/cmake/${CMAKE_PROJECT_NAME})
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${CMAKE_PROJECT_NAME})
|
||||||
|
|
||||||
|
install(EXPORT ${CMAKE_PROJECT_NAME}Targets
|
||||||
|
- DESTINATION lib/cmake/${CMAKE_PROJECT_NAME})
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${CMAKE_PROJECT_NAME})
|
||||||
|
--
|
||||||
|
2.13.2
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
%define major 3
|
%define major 5
|
||||||
%define libname %mklibname %{name} _%{major}
|
%define libname %mklibname %{name} _%{major}
|
||||||
%define devname %mklibname %{name} -d
|
%define devname %mklibname %{name} -d
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
Name: tinyxml2
|
Summary: Simple, small and efficient C++ XML parser
|
||||||
Version: 3.0.0
|
Name: tinyxml2
|
||||||
Release: 3
|
Version: 5.0.1
|
||||||
Summary: Simple, small and efficient C++ XML parser
|
Release: 1
|
||||||
Group: System/Libraries
|
License: zlib
|
||||||
License: zlib
|
Group: System/Libraries
|
||||||
URL: http://www.grinninglizard.com/tinyxml2/
|
Url: http://www.grinninglizard.com/tinyxml2/
|
||||||
Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: FindTinyXML2.cmake
|
Source1: FindTinyXML2.cmake
|
||||||
|
# https://github.com/leethomason/tinyxml2/pull/587
|
||||||
BuildRequires: cmake
|
Patch0: 0001-CMake-Respect-libdir-for-config-files.patch
|
||||||
BuildRequires: doxygen
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doxygen
|
||||||
|
|
||||||
%description
|
%description
|
||||||
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
|
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
|
||||||
|
@ -22,11 +22,11 @@ easily integrated into other programs. It uses a Document Object Model
|
||||||
(DOM), meaning the XML data is parsed into a C++ objects that can be
|
(DOM), meaning the XML data is parsed into a C++ objects that can be
|
||||||
browsed and manipulated, and then written to disk or another output stream.
|
browsed and manipulated, and then written to disk or another output stream.
|
||||||
|
|
||||||
#------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Simple, small and efficient C++ XML parser
|
Summary: Simple, small and efficient C++ XML parser
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
|
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
|
||||||
|
@ -41,17 +41,16 @@ TinyXML-2 uses a similar API to TinyXML-1, But the implementation of the
|
||||||
parser was completely re-written to make it more appropriate for use in a
|
parser was completely re-written to make it more appropriate for use in a
|
||||||
game. It uses less memory, is faster, and uses far fewer memory allocations.
|
game. It uses less memory, is faster, and uses far fewer memory allocations.
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%doc readme.md
|
|
||||||
%{_libdir}/lib%{name}.so.%{major}
|
%{_libdir}/lib%{name}.so.%{major}
|
||||||
%{_libdir}/lib%{name}.so.%{version}
|
%{_libdir}/lib%{name}.so.%{version}
|
||||||
|
|
||||||
#------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%package -n %{devname}
|
%package -n %{devname}
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/C++
|
Group: Development/C++
|
||||||
Requires: %{libname} = %{EVRD}
|
Requires: %{libname} = %{EVRD}
|
||||||
|
|
||||||
%description -n %{devname}
|
%description -n %{devname}
|
||||||
This package contains the libraries and header files that are needed
|
This package contains the libraries and header files that are needed
|
||||||
|
@ -61,13 +60,15 @@ for writing applications with the %{name} library.
|
||||||
%doc readme.md docs/*
|
%doc readme.md docs/*
|
||||||
%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
||||||
%{_includedir}/%{name}.h
|
%{_includedir}/%{name}.h
|
||||||
|
%{_libdir}/cmake/%{name}/
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
#------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake
|
%cmake
|
||||||
|
@ -77,16 +78,15 @@ for writing applications with the %{name} library.
|
||||||
cd ..
|
cd ..
|
||||||
doxygen dox
|
doxygen dox
|
||||||
|
|
||||||
|
%install
|
||||||
|
%makeinstall_std -C build
|
||||||
|
|
||||||
|
# Install CMake find module
|
||||||
|
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd build
|
pushd build
|
||||||
export LD_LIBRARY_PATH=`pwd`
|
export LD_LIBRARY_PATH=`pwd`
|
||||||
./xmltest
|
./xmltest
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
|
||||||
%makeinstall_std -C build
|
|
||||||
|
|
||||||
# Install CMake find module
|
|
||||||
install -D -m644 %{SOURCE1} \
|
|
||||||
%{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue