2014-12-08 08:37:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-xml-light
|
|
|
|
#
|
2017-05-31 07:44:13 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-12-08 08:37:39 +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.
|
|
|
|
|
2019-11-01 22:55:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-12-08 08:37:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocaml-xml-light
|
2019-11-04 09:44:41 +00:00
|
|
|
Version: 2.4.20191104.4615265
|
2016-06-13 19:50:40 +00:00
|
|
|
Release: 0
|
2017-07-25 08:42:17 +00:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2014-12-08 08:37:39 +00:00
|
|
|
Summary: Minimal XML parser and printer for OCaml
|
2016-06-16 10:13:47 +00:00
|
|
|
License: LGPL-2.1+
|
2017-07-25 13:24:01 +00:00
|
|
|
Group: Development/Languages/OCaml
|
2016-06-13 19:50:40 +00:00
|
|
|
Url: https://github.com/gasche/xml-light
|
2019-11-01 22:55:08 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2016-06-13 19:50:40 +00:00
|
|
|
BuildRequires: ocaml
|
2019-11-01 22:55:08 +00:00
|
|
|
BuildRequires: ocaml-dune
|
|
|
|
BuildRequires: ocaml-rpm-macros >= 20191101
|
2014-12-08 08:37:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xml-Light is a minimal XML parser & printer for OCaml. It provides
|
|
|
|
functions to parse an XML document into an OCaml data structure, work
|
|
|
|
with it, and print it back to an XML document. It support also DTD
|
|
|
|
parsing and checking, and is entirely written in OCaml, hence it does
|
|
|
|
not require additional C library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2017-07-25 13:24:01 +00:00
|
|
|
Group: Development/Languages/OCaml
|
2016-06-16 10:33:27 +00:00
|
|
|
Requires: %{name} = %{version}
|
2014-12-08 08:37:39 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2019-11-01 22:55:08 +00:00
|
|
|
%autosetup -p1
|
2014-12-08 08:37:39 +00:00
|
|
|
|
|
|
|
%build
|
2019-11-01 22:55:08 +00:00
|
|
|
dune_release_pkgs='xml-light'
|
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2014-12-08 08:37:39 +00:00
|
|
|
|
2016-06-13 19:50:40 +00:00
|
|
|
%install
|
2019-11-01 22:55:08 +00:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
2014-12-08 08:37:39 +00:00
|
|
|
|
|
|
|
%check
|
2019-11-01 22:55:08 +00:00
|
|
|
%ocaml_dune_test
|
2014-12-08 08:37:39 +00:00
|
|
|
|
2019-11-01 22:55:08 +00:00
|
|
|
%files -f %{name}.files
|
2014-12-08 08:37:39 +00:00
|
|
|
|
2019-11-01 22:55:08 +00:00
|
|
|
%files devel -f %{name}.files.devel
|
2014-12-08 08:37:39 +00:00
|
|
|
|
|
|
|
%changelog
|