--- /dev/null
+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