2010-11-16 10:03:36 +00:00
|
|
|
#
|
2011-11-25 14:00:33 +00:00
|
|
|
# spec file for package tinyxml
|
2010-11-16 10:03:36 +00:00
|
|
|
#
|
2024-02-21 08:46:42 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-11-16 10:03:36 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-10-27 11:12:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-11-16 10:03:36 +00:00
|
|
|
#
|
|
|
|
|
2010-11-05 17:52:07 +00:00
|
|
|
|
|
|
|
%define so_version 0
|
|
|
|
|
|
|
|
Name: tinyxml
|
2012-05-13 15:26:23 +00:00
|
|
|
Version: 2.6.2
|
2012-02-14 11:43:06 +00:00
|
|
|
Release: 0
|
2012-05-13 15:26:23 +00:00
|
|
|
%define file_version 2_6_2
|
2010-11-05 17:52:07 +00:00
|
|
|
%define lib_package lib%{name}%{so_version}
|
|
|
|
Summary: A simple, small, C++ XML parser
|
2012-02-14 11:43:06 +00:00
|
|
|
License: Zlib
|
|
|
|
Group: System/Libraries
|
2012-05-13 15:26:23 +00:00
|
|
|
Source: http://downloads.sourceforge.net/tinyxml/%{name}_%{file_version}.tar.gz
|
2010-11-05 17:52:07 +00:00
|
|
|
Source1: configure.ac
|
|
|
|
Source2: Makefile.am
|
|
|
|
Source3: tinyxml.h.in
|
|
|
|
Source4: use_stl_def
|
|
|
|
Source5: Makefile.am.docs
|
|
|
|
Patch0: tinyxml-c_headers.patch
|
|
|
|
Patch1: tinyxml-entity.patch
|
2021-10-27 11:12:21 +00:00
|
|
|
Patch2: tinyxml-2.62-fix-infinite-loop.patch
|
2023-12-16 19:11:15 +00:00
|
|
|
Patch3: tinyxml-null-byte-assert.patch
|
2021-10-27 11:12:21 +00:00
|
|
|
URL: http://sourceforge.net/projects/tinyxml
|
2010-11-05 17:52:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-14 11:43:06 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2010-11-05 17:52:07 +00:00
|
|
|
|
|
|
|
%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 -n %{lib_package}
|
|
|
|
Summary: A simple, small, C++ XML parser
|
2012-02-14 11:43:06 +00:00
|
|
|
License: Zlib
|
|
|
|
Group: System/Libraries
|
2010-11-05 17:52:07 +00:00
|
|
|
|
|
|
|
%description -n %{lib_package}
|
|
|
|
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 libtinyxml
|
2021-10-27 11:12:21 +00:00
|
|
|
License: GPL-2.0-or-later
|
2010-11-05 17:52:07 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{lib_package} = %{version}
|
|
|
|
Provides: libtinyxml-devel = %{version}
|
|
|
|
Obsoletes: libtinyxml-devel < %{version}
|
|
|
|
Suggests: %{name}-%{docs}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libtinyxml-devel package contains libraries and header files for
|
|
|
|
developing applications that use libtinyxml.
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Summary: Documentaqtion for libtinyxml
|
2021-10-27 11:12:21 +00:00
|
|
|
License: GPL-2.0-or-later
|
2010-11-05 17:52:07 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-11-17 08:42:58 +00:00
|
|
|
Requires: %{lib_package} = %{version}
|
2010-11-05 17:52:07 +00:00
|
|
|
|
|
|
|
%description docs
|
|
|
|
This packages contains the HTML documentation and a tutorial for
|
|
|
|
libtinyxml
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tinyxml
|
2024-02-21 08:46:42 +00:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3 -p1
|
2010-11-05 17:52:07 +00:00
|
|
|
mkdir -p m4
|
|
|
|
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
|
|
|
cp %{S:5} docs/Makefile.am
|
2010-11-05 18:28:53 +00:00
|
|
|
rm -f tinyxml.h
|
2010-11-05 17:52:07 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
%post -n %{lib_package} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lib_package} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lib_package}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc changes.txt readme.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc docs/*.html docs/*.gif docs/*.png docs/*.css
|
|
|
|
|
|
|
|
%changelog
|