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