mxml/mxml.spec

105 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package mxml
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: mxml
Version: 3.1
Release: 0
Summary: Small XML Parsing Library
# 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
Group: Development/Libraries/C and C++
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
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
Source2: https://github.com/michaelrsweet/mxml/archive/v%{version}/%{name}-%{version}.tar.gz.sig
Source1: baselibs.conf
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
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
%package -n %{library_name}
Summary: Shared library for mxml
Group: System/Libraries
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
%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
Summary: Development files for mxml
Group: Development/Libraries/C and C++
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
Requires: %{library_name} = %{version}
Suggests: mxml-doc = %{version}
%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.
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
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.
%prep
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
%setup -q
%build
%configure --enable-threads --enable-shared --with-docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
%make_install DSTROOT=%{buildroot}
rm -v %{buildroot}%{_libdir}/libmxml.a
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files -n %{library_name}
%{_libdir}/libmxml.so.1*
%files devel
%{_includedir}/mxml.h
%{_libdir}/libmxml.so
%{_libdir}/pkgconfig/mxml.pc
Accepting request 622923 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to version 2.11: * CDATA nodes now omit the trailing "]]" for convenience (gh#michaelrsweet/mxml#170). * Fixed a memory leak in mxmlDelete (gh#michaelrsweet/mxml#183) * mxmlElementSetAttrf did not work with some versions of Visual Studio (gh#michaelrsweet/mxml#184) * Added mxmlElementGetAttrByIndex and mxmlELementGetAttrCount functions (gh#michaelrsweet/mxml#185) * The configure script now properly supports cross-compilation (gh#michaelrsweet/mxml#188) * The mxmldoc utility now supports generation of EPUB files (gh#michaelrsweet/mxml#189) * The mxmldoc utility now supports the SOURCE_DATE_EPOCH environment variable for reproducible builds (gh#michaelrsweet/mxml#193) * The mxmldoc utility now supports Markdown (gh#michaelrsweet/mxml#194) * Fixed writing of custom data values (gh#michaelrsweet/mxml#201) * Added mxmlNewOpaquef and mxmlSetOpaquef functions to add and set formatted opaque string values. * The mxmldoc utility scanned and loaded descriptive text differently, causing the detailed descriptions ("discussion") to be lost in generated documentation. * The mxmldoc utility now supports @exclude format@ comments to exclude documentation based on the output format. The format string can be all to exclude documentation for all formats or a comma-delimited list such as @exclude man,html@. - Drop upstreamed patches: * reproducible.path * mxml-2.3-nobinstrip.patch - Clean spec file. OBS-URL: https://build.opensuse.org/request/show/622923 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mxml?expand=0&rev=19
2018-07-17 08:35:08 +00:00
%{_mandir}/man3/mxml.3%{?ext_man}
%files doc
%{_docdir}/%{name}
%changelog