SHA256
1
0
forked from pool/mxml
Files
mxml/mxml.spec
Adam Majer 6ff6fa6a73 Accepting request 439918 from home:darix:branches:devel:libraries:c_c++
- update to version 2.10
  - The version number in mxml.h was wrong (Bug #532)
  - The mxml.spec file was out of date (Bug #521)
  - Mini-XML no longer allows malformed element names (Bug #509)
  - mxmlLoad* and mxmlSAXLoad* did not properly create text nodes
    when MXML_TEXT_CALLBACK was specified (Bug #531)
  - mxmlDelete used a recursive algorithm which could require large
    amounts of stack space depending on the file (Bug #549,
    CVE-2016-4570) (bnc #979205)
  - mxmlWrite* used a recursive algorithm which could require large
    amounts of stack space depending on the file (Bug #549,
    CVE-2016-4571) (bnc #979206)

OBS-URL: https://build.opensuse.org/request/show/439918
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=15
2016-11-11 15:04:21 +00:00

108 lines
2.9 KiB
RPMSpec

#
# spec file for package mxml
#
# Copyright (c) 2016 SUSE LINUX 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/
#
Name: mxml
Url: http://www.msweet.org/projects.php?Z3
Version: 2.10
Release: 0
Summary: Small XML Parsing Library
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Source: http://www.msweet.org/files/project3/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch: mxml-2.3-nobinstrip.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%description
Mini-XML is a small XML parsing library that you can use to read XML
and XML-like data files in your application without requiring large
nonstandard libraries.
This package holds the commandline tools for mxml.
%define library_name libmxml1
%package -n %library_name
#
Summary: Shared library for mxml
License: LGPL-2.1+
Group: System/Libraries
%description -n %library_name
Mini-XML is a small XML parsing library that you can use to read XML
and XML-like data files in your application without requiring large
nonstandard libraries.
This package holds the shared library for mxml.
%package devel
Requires: %{library_name} = %{version}
#
Summary: Development files for mxml
License: GPL-2.0+
Group: Development/Libraries/C and C++
%description devel
Mini-XML is a small XML parsing library that you can use to read XML
and XML-like data files in your application without requiring large
nonstandard libraries.
This package holds the development files for mxml.
%prep
%setup
%patch
%build
%configure --enable-shared --with-docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
%makeinstall DSTROOT=%{buildroot}
# we dont want the static lib
%{__rm} -rv %{buildroot}%{_libdir}/libmxml.a
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mxmldoc
%{_mandir}/man1/mxmldoc.1*
%doc %{_docdir}/%{name}
%exclude %{_docdir}/%{name}/mxml.html
%exclude %{_docdir}/%{name}/*gif
%files -n %{library_name}
%defattr(-,root,root)
%{_libdir}/libmxml.so.1*
%files devel
%defattr(-,root,root)
%{_includedir}/mxml.h
%{_libdir}/libmxml.so
%{_libdir}/pkgconfig/mxml.pc
%{_mandir}/man3/mxml.3*
%doc %{_docdir}/%{name}/mxml.html
%doc %{_docdir}/%{name}/*gif
%changelog