From f0899578fb15ea30252d87bcb73ce14d25426a85 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:55:43 +0100 Subject: [PATCH] added debug package and install pkgconfig file [release 2.6.2-3mamba;Tue May 09 2023] --- README.md | 4 +--- libtinyxml.spec | 33 +++++++++++++++++---------------- tinyxml.pc | 10 ++++++++++ 3 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 tinyxml.pc diff --git a/README.md b/README.md index bbbe7b2..f96eaa0 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/libtinyxml.spec b/libtinyxml.spec index 07b9305..92f55d5 100644 --- a/libtinyxml.spec +++ b/libtinyxml.spec @@ -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 -URL: http://www.grinninglizard.com/tinyxml/ +Packager: Silvan Calarco +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 2.6.2-3mamba +- added debug package and install pkgconfig file + * Tue Feb 02 2016 Silvan Calarco 2.6.2-2mamba - rebuilt with gcc 5.3.0 diff --git a/tinyxml.pc b/tinyxml.pc new file mode 100644 index 0000000..684b090 --- /dev/null +++ b/tinyxml.pc @@ -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}