From ade4951cdfe49a3828e5acb8b9547a1e9d4f8584 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Wed, 11 Nov 2020 15:34:19 +0900 Subject: [PATCH] Bump to tinyxml2 4.0.1 Change-Id: Id19832537b9deb63bf94e7af9cb5ec605f772735 Signed-off-by: JinWang An --- LICENSE.txt | 18 ++++++++++++++ packaging/tinyxml2.manifest | 6 +++++ packaging/tinyxml2.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 LICENSE.txt create mode 100644 packaging/tinyxml2.manifest create mode 100644 packaging/tinyxml2.spec diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..85a6a36 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,18 @@ +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any +damages arising from the use of this software. + +Permission is granted to anyone to use this software for any +purpose, including commercial applications, and to alter it and +redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must +not claim that you wrote the original software. If you use this +software in a product, an acknowledgment in the product documentation +would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and +must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source +distribution. diff --git a/packaging/tinyxml2.manifest b/packaging/tinyxml2.manifest new file mode 100644 index 0000000..41a9320 --- /dev/null +++ b/packaging/tinyxml2.manifest @@ -0,0 +1,6 @@ + + + + + + diff --git a/packaging/tinyxml2.spec b/packaging/tinyxml2.spec new file mode 100644 index 0000000..02fc24a --- /dev/null +++ b/packaging/tinyxml2.spec @@ -0,0 +1,57 @@ +Name: tinyxml2 +Version: 4.0.1 +Release: 0 +Summary: A simple, small, C++ XML parser +License: Zlib +Group: System/Libraries +Url: https://github.com/leethomason/tinyxml2 +Source: https://github.com/leethomason/tinyxml2/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1001: tinyxml2.manifest +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +TinyXML is a simple, small, C++ XML parser that can be easily integrating +into other programs. Have you ever found yourself writing a text file parser +every time you needed to save human readable data or serialize objects? +TinyXML solves the text I/O file once and for all. +(Or, as a friend said, ends the Just Another Text File Parser problem.) + +%package devel +Summary: Development files for libtinyxml2 +License: Zlib +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} + +%description devel +Contains libraries and header files for +developing applications that use libtinyxml2. + +%prep +%setup -q + +%build +cp %{SOURCE1001} . +cmake . -DCMAKE_INSTALL_PREFIX="/usr" +make %{?_smp_mflags} + +%install +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%license LICENSE.txt +%{_libdir}/libtinyxml2.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/tinyxml2.h +%{_libdir}/libtinyxml2.so +%{_libdir}/pkgconfig/tinyxml2.pc -- 2.7.4