package created using the webbuild interface [release 6.0.0-1mamba;Thu Feb 08 2018]

This commit is contained in:
Silvan Calarco 2024-01-05 18:33:46 +01:00
parent a51db0acf7
commit 79dc41dfc5
2 changed files with 80 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# tinyxml2
TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.

78
tinyxml2.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 6.0.0-1mamba
- package created using the webbuild interface