diff --git a/README.md b/README.md index a4b339d..b809afb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # tinyxml2 +TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs. + diff --git a/tinyxml2.spec b/tinyxml2.spec new file mode 100644 index 0000000..2e9f6c7 --- /dev/null +++ b/tinyxml2.spec @@ -0,0 +1,78 @@ +Name: tinyxml2 +Version: 6.0.0 +Release: 1mamba +Summary: A simple, small, efficient, C++ XML parser that can be easily integrated into other programs +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/leethomason/tinyxml2.git +## GITSOURCE https://github.com/leethomason/tinyxml2.git 6.0.0 +Source: https://github.com/leethomason/tinyxml2.git/%{version}/tinyxml2-%{version}.tar.bz2 +License: zlib/libpng +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs. + +%package -n lib%{name} +Group: System/Libraries +Summary: A simple, small, efficient, C++ XML parser that can be easily integrated into other programs + +%description -n lib%{name} +TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q +%ifarch x86_64 +sed -i "s|lib/cmake|lib64/cmake|" CMakeLists.txt +%endif + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libtinyxml2.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/tinyxml2.h +%dir %{_libdir}/cmake/tinyxml2 +%{_libdir}/cmake/tinyxml2/tinyxml2*.cmake +%{_libdir}/libtinyxml2.so +%{_libdir}/pkgconfig/tinyxml2.pc + +%changelog +* Thu Feb 08 2018 Silvan Calarco 6.0.0-1mamba +- package created using the webbuild interface