2007-01-15 23:26:05 +00:00
|
|
|
#
|
2011-06-07 07:14:36 +00:00
|
|
|
# spec file for package mxml
|
2007-01-15 23:26:05 +00:00
|
|
|
#
|
2020-03-06 08:12:07 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-15 23:26:05 +00:00
|
|
|
#
|
2008-09-13 03:52:09 +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.
|
|
|
|
|
2020-03-06 08:12:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:26:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mxml
|
2020-03-06 08:12:07 +00:00
|
|
|
Version: 3.1
|
2014-09-12 08:27:48 +00:00
|
|
|
Release: 0
|
2007-01-15 23:26:05 +00:00
|
|
|
Summary: Small XML Parsing Library
|
2020-03-06 08:12:07 +00:00
|
|
|
# The Mini-XML library is licensed under the Apache License Version 2.0 with an
|
|
|
|
# exception to allow linking against GPL2/LGPL2-only software.
|
|
|
|
License: Apache-2.0
|
2014-09-12 10:14:50 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-17 08:35:08 +00:00
|
|
|
URL: https://www.msweet.org/mxml
|
|
|
|
Source: https://github.com/michaelrsweet/mxml/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-03-06 08:12:07 +00:00
|
|
|
Source2: https://github.com/michaelrsweet/mxml/archive/v%{version}/%{name}-%{version}.tar.gz.sig
|
2014-09-12 08:27:48 +00:00
|
|
|
Source1: baselibs.conf
|
2011-06-07 07:14:27 +00:00
|
|
|
BuildRequires: pkgconfig
|
2011-06-07 07:14:36 +00:00
|
|
|
|
2007-01-15 23:26:05 +00:00
|
|
|
%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.
|
|
|
|
|
2008-09-13 03:52:09 +00:00
|
|
|
This package holds the commandline tools for mxml.
|
|
|
|
|
|
|
|
%define library_name libmxml1
|
|
|
|
|
2018-07-17 08:35:08 +00:00
|
|
|
%package -n %{library_name}
|
2011-08-12 19:18:44 +00:00
|
|
|
Summary: Shared library for mxml
|
2014-09-12 10:14:50 +00:00
|
|
|
Group: System/Libraries
|
2011-06-07 07:14:36 +00:00
|
|
|
|
2018-07-17 08:35:08 +00:00
|
|
|
%description -n %{library_name}
|
2008-09-13 03:52:09 +00:00
|
|
|
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.
|
|
|
|
|
2011-08-12 19:18:44 +00:00
|
|
|
This package holds the shared library for mxml.
|
2008-09-13 03:52:09 +00:00
|
|
|
|
2007-04-25 23:16:24 +00:00
|
|
|
%package devel
|
2008-09-13 03:52:09 +00:00
|
|
|
Summary: Development files for mxml
|
2014-09-12 10:14:50 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-17 08:35:08 +00:00
|
|
|
Requires: %{library_name} = %{version}
|
|
|
|
Suggests: mxml-doc = %{version}
|
2007-04-25 23:16:24 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2008-09-13 03:52:09 +00:00
|
|
|
This package holds the development files for mxml.
|
|
|
|
|
2018-07-17 08:35:08 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for mxml
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
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 HTML documentation for mxml.
|
|
|
|
|
2007-01-15 23:26:05 +00:00
|
|
|
%prep
|
2018-07-17 08:35:08 +00:00
|
|
|
%setup -q
|
2007-01-15 23:26:05 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-06 08:12:07 +00:00
|
|
|
%configure --enable-threads --enable-shared --with-docdir=%{_docdir}/%{name}
|
2012-01-29 19:56:13 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:26:05 +00:00
|
|
|
|
|
|
|
%install
|
2018-07-17 08:35:08 +00:00
|
|
|
%make_install DSTROOT=%{buildroot}
|
|
|
|
rm -v %{buildroot}%{_libdir}/libmxml.a
|
2007-01-15 23:26:05 +00:00
|
|
|
|
2008-09-13 03:52:09 +00:00
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
2007-01-15 23:26:05 +00:00
|
|
|
|
2008-09-13 03:52:09 +00:00
|
|
|
%files -n %{library_name}
|
|
|
|
%{_libdir}/libmxml.so.1*
|
|
|
|
|
2007-04-25 23:16:24 +00:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/mxml.h
|
|
|
|
%{_libdir}/libmxml.so
|
|
|
|
%{_libdir}/pkgconfig/mxml.pc
|
2018-07-17 08:35:08 +00:00
|
|
|
%{_mandir}/man3/mxml.3%{?ext_man}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%{_docdir}/%{name}
|
2007-04-25 23:16:24 +00:00
|
|
|
|
|
|
|
%changelog
|