Bump to 10.0.0 accepted/tizen_base accepted/tizen_base_toolchain accepted/tizen_base_x accepted/tizen_base_x_asan sandbox/tinyxml2_10.0.0 tizen_base accepted/tizen/base/20241225.112255 accepted/tizen/base/toolchain/20250112.233420 accepted/tizen/base/x/20241225.112344 accepted/tizen/base/x/asan/20241226.122056
authorTizenOpenSource <tizenopensrc@samsung.com>
Tue, 24 Dec 2024 03:04:56 +0000 (12:04 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Tue, 24 Dec 2024 03:04:56 +0000 (12:04 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
.gitignore [deleted file]
packaging/tinyxml2.manifest [new file with mode: 0644]
packaging/tinyxml2.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 2c3e2b3..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-# intermediate files
-Win32/
-x64/
-ipch/
-resources/out/
-tinyxml2/tinyxml2-cbp/bin/
-tinyxml2/tinyxml2-cbp/obj/
-tinyxml2/bin/
-tinyxml2/temp/
-.artifacts/
-.projects/
-*.sdf
-*.suo
-*.opensdf
-*.user
-*.depend
-*.layout
-*.o
-*.vc.db
-*.vc.opendb
-libtinyxml2.a
-xmltest
-vs/debug
-
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..5c2dca5
--- /dev/null
@@ -0,0 +1,60 @@
+Name:           tinyxml2
+Version:        10.0.0
+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:  gcc-c++
+BuildRequires:  pkgconfig
+BuildRequires:  meson
+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
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS+=" -fPIC"
+
+mkdir -p builddir
+meson --prefix /usr --libdir %{_libdir} builddir
+
+%install
+DESTDIR=%{buildroot} ninja -C builddir install
+find %{buildroot}%{_libdir} -name '*.la' -delete -print
+
+%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