Bump to tinyxml2 4.0.1 93/247493/1 accepted/tizen_6.5_base accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_8.0_base accepted/tizen_base_dev accepted/tizen_unified sandbox/backup/tinyxml2_4.0.1_20231228 sandbox/jinwang.an/tinyxml2_4.0.1_20201030 tizen tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base accepted/tizen/6.5/base/20211028.060202 accepted/tizen/7.0/base/20221116.030039 accepted/tizen/7.0/base/hotfix/20221116.055449 accepted/tizen/8.0/base/20231005.045239 accepted/tizen/base/20210824.014545 accepted/tizen/base/20221115.103913 accepted/tizen/base/dev/20230602.081005 accepted/tizen/unified/20201127.130446 submit/tizen/20201126.055009 submit/tizen/20201126.055056 submit/tizen/20201126.083929 submit/tizen_6.5_base/20211028.134701 submit/tizen_base/20210824.002740 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorJinWang An <jinwang.an@samsung.com>
Wed, 11 Nov 2020 06:34:19 +0000 (15:34 +0900)
committerJinWang An <jinwang.an@samsung.com>
Wed, 11 Nov 2020 06:37:12 +0000 (15:37 +0900)
Change-Id: Id19832537b9deb63bf94e7af9cb5ec605f772735
Signed-off-by: JinWang An <jinwang.an@samsung.com>
LICENSE.txt [new file with mode: 0644]
packaging/tinyxml2.manifest [new file with mode: 0644]
packaging/tinyxml2.spec [new file with mode: 0644]

diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644 (file)
index 0000000..85a6a36
--- /dev/null
@@ -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 (file)
index 0000000..41a9320
--- /dev/null
@@ -0,0 +1,6 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
+
diff --git a/packaging/tinyxml2.spec b/packaging/tinyxml2.spec
new file mode 100644 (file)
index 0000000..02fc24a
--- /dev/null
@@ -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