added debug package and install pkgconfig file [release 2.6.2-3mamba;Tue May 09 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 05:55:43 +01:00
parent 937f48c8ab
commit f0899578fb
3 changed files with 28 additions and 19 deletions

View File

@ -1,6 +1,4 @@
# libtinyxml
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.)
TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.

View File

@ -1,14 +1,15 @@
%define pkgver %(echo %version | tr . _)
Name: libtinyxml
Version: 2.6.2
Release: 2mamba
Summary: is a simple, small, C++ XML parser that can be easily integrating into other programs.
Release: 3mamba
Summary: A simple, small, C++ XML parser that can be easily integrating into other programs
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.grinninglizard.com/tinyxml/
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.grinninglizard.com/cgi-sys/suspendedpage.cgi
Source: http://downloads.sourceforge.net/tinyxml/tinyxml_%{pkgver}.tar.gz
Source1: tinyxml.pc
Patch0: tinyxml-2.5.3-stl.patch
Patch1: %{name}-2.6.1-entity.patch
License: zlib
@ -17,12 +18,9 @@ BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.)
TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.
%package devel
Group: Development/Libraries
@ -30,14 +28,12 @@ Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
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.)
TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.
This package contains libraries and header files needed for development.
This package contains libraries and header files need for development.
%debug_package
%prep
%setup -q -n tinyxml
%patch0 -p1 -b .stl
%patch1 -p0
@ -58,6 +54,7 @@ install -m 755 %{name}.so.0.%{version} %{buildroot}%{_libdir}
ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so.0
ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so
install -p -m 644 tinyxml.h %{buildroot}%{_includedir}
install -Dm644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/tinyxml.pc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -67,16 +64,20 @@ install -p -m 644 tinyxml.h %{buildroot}%{_includedir}
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc changes.txt readme.txt
%{_libdir}/libtinyxml.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/libtinyxml.so
%{_libdir}/pkgconfig/tinyxml.pc
%doc changes.txt readme.txt
%doc docs/*
%changelog
* Tue May 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-3mamba
- added debug package and install pkgconfig file
* Tue Feb 02 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-2mamba
- rebuilt with gcc 5.3.0

10
tinyxml.pc Normal file
View File

@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: TinyXml
Description: simple, small, C++ XML parser
Version: 2.6.2
Libs: -L${libdir} -ltinyxml
Cflags: -I${includedir}