SHA256
1
0
forked from pool/tinyxml2
tinyxml2/tinyxml2.spec

94 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package tinyxml2
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
%define so_version 3
Name: tinyxml2
Version: 3.0.0
Release: 0
%define lib_package lib%{name}-%{so_version}
Summary: A simple, small, C++ XML parser
License: Zlib
Group: System/Libraries
Source: https://github.com/leethomason/tinyxml2/archive/%{version}.tar.gz
Url: https://github.com/leethomason/tinyxml2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
%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}
Suggests: %{name}-%{docs}
%description devel
Contains libraries and header files for
developing applications that use libtinyxml2.
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
cd build
%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 readme.md
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/pkgconfig/tinyxml2.pc
%{_libdir}/*.so
%changelog