ocaml-dune/ocaml-dune.spec
Andy Li 8dabcda33a - Update to version 1.10.0:
* Restricted the set of variables available for expansion in the
    destination filename of install stanza.
  * Call menhir from context root build_dir.
  * Add coq.pp stanza.
  * Add a new more generic form for the promote mode.
  * Allow to promote only a subset of the targets.
  * With lang dune >= 1.10, rules in standard mode are no longer
    allowed to produce targets that are present in the source tree.
  * Allow %{...} variables in pps flags.
  * Add a 'cookies' option to ppx_rewriter/deriver flags in library
    stanzas.
  * Add more opam metadata and use it to generate .opam files.
  * Add support for hg in dune subst.
  * Add the %{os_type} variable.
  * Support the .cc extension fro C++ sources.
  * Run ocamlformat relative to the context root.
  * Other bug fixes and improvements. For details, see
    https://github.com/ocaml/dune/blob/1.10.0/CHANGES.md
- Update %install.
- Install dune-config.5 manpage.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=27
2019-05-30 15:56:22 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package ocaml-dune
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: ocaml-dune
Version: 1.10.0
Release: 0
%{?ocaml_preserve_bytecode}
Summary: A composable build system for OCaml
License: MIT
Group: Development/Languages/OCaml
Url: https://dune.build/
Conflicts: ocaml-jbuilder
Conflicts: ocaml-jbuilder-debuginfo
Conflicts: ocaml-jbuilder-debugsource
Source: %{name}-%{version}.tar.xz
BuildRequires: ocaml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A composable build system for OCaml
%prep
%setup -q
%build
make %{?_smp_mflags} PREFIX=%{_prefix}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
cp -av _boot/default/bin/main/main_dune.exe %{buildroot}%{_bindir}/dune
ln -sfvbn dune %{buildroot}%{_bindir}/jbuilder
cp -av _boot/default/doc/*.1 %{buildroot}%{_mandir}/man1/
cp -av _boot/default/doc/*.5 %{buildroot}%{_mandir}/man5/
%files
%defattr(-,root,root)
%doc CHANGES.md README.md
%license LICENSE.md
%{_bindir}/*
%{_mandir}/*/*
%changelog