From 5af5e1c53bbc174d08c3af53fe689a75796cfad0 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Tue, 24 Dec 2024 12:04:56 +0900 Subject: [PATCH] Bump to 10.0.0 Signed-off-by: TizenOpenSource --- .gitignore | 24 --------------- packaging/tinyxml2.manifest | 6 ++++ packaging/tinyxml2.spec | 60 +++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 24 deletions(-) delete mode 100644 .gitignore create mode 100644 packaging/tinyxml2.manifest create mode 100644 packaging/tinyxml2.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2c3e2b3..0000000 --- a/.gitignore +++ /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 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..5c2dca5 --- /dev/null +++ b/packaging/tinyxml2.spec @@ -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 -- 2.34.1