2015-04-07 14:03:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package tinyxml2
|
|
|
|
#
|
2017-12-28 10:53:06 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-07 14:03:06 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-12-28 10:53:06 +01:00
|
|
|
%define so_version 6
|
2016-07-12 11:29:25 +02:00
|
|
|
%define lib_package lib%{name}-%{so_version}
|
2015-04-07 14:03:06 +02:00
|
|
|
Name: tinyxml2
|
2017-12-28 10:53:06 +01:00
|
|
|
Version: 6.0.0
|
2015-04-07 14:03:06 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A simple, small, C++ XML parser
|
|
|
|
License: Zlib
|
2015-04-07 15:06:57 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-04-07 14:03:06 +02:00
|
|
|
Url: https://github.com/leethomason/tinyxml2
|
2016-07-12 11:29:25 +02:00
|
|
|
Source: https://github.com/leethomason/tinyxml2/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-04-07 14:03:06 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2016-07-12 11:29:25 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-04-07 14:03:06 +02: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
|
|
|
|
License: Zlib
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%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 libtinyxml2
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{lib_package} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Contains libraries and header files for
|
|
|
|
developing applications that use libtinyxml2.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2016-07-12 11:29:25 +02:00
|
|
|
%cmake_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-12-28 10:53:06 +01:00
|
|
|
# /usr/lib/cmake is not owned by cmake; avoid any further conflicts
|
|
|
|
if [ ! -d "%{buildroot}/%{_libdir}/cmake/%{name}" ]; then
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/cmake/%{name}
|
|
|
|
mv %{buildroot}%{_libexecdir}/cmake/tinyxml2 %{buildroot}/%{_libdir}/cmake/%{name}
|
|
|
|
fi
|
2015-04-07 14:03:06 +02:00
|
|
|
|
2016-07-12 11:29:25 +02:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} test
|
2015-04-07 14:03:06 +02:00
|
|
|
|
2016-07-12 11:29:25 +02:00
|
|
|
%post -n %{lib_package} -p /sbin/ldconfig
|
2015-04-07 14:03:06 +02:00
|
|
|
%postun -n %{lib_package} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lib_package}
|
2015-04-07 15:06:57 +02:00
|
|
|
%defattr(-,root,root)
|
2016-07-12 11:29:25 +02:00
|
|
|
%doc readme.md
|
|
|
|
%{_libdir}/libtinyxml2.so.%{so_version}*
|
2015-04-07 14:03:06 +02:00
|
|
|
|
|
|
|
%files devel
|
2015-04-07 15:06:57 +02:00
|
|
|
%defattr(-,root,root)
|
2016-07-12 11:29:25 +02:00
|
|
|
%{_includedir}/tinyxml2.h
|
|
|
|
%{_libdir}/libtinyxml2.so
|
2015-04-07 14:03:06 +02:00
|
|
|
%{_libdir}/pkgconfig/tinyxml2.pc
|
2017-12-28 10:53:06 +01:00
|
|
|
%{_libdir}/cmake/tinyxml2
|
2015-04-07 14:03:06 +02:00
|
|
|
|
|
|
|
%changelog
|