2018-01-30 07:34:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-dune
|
|
|
|
#
|
2019-02-05 08:09:16 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-01-30 07:34:12 +01: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-05-16 07:50:28 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-30 07:34:12 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocaml-dune
|
2019-09-24 12:40:55 +02:00
|
|
|
Version: 1.11.3
|
2018-01-30 07:34:12 +01:00
|
|
|
Release: 0
|
|
|
|
%{?ocaml_preserve_bytecode}
|
|
|
|
Summary: A composable build system for OCaml
|
2019-02-05 08:09:16 +01:00
|
|
|
License: MIT
|
2018-01-30 07:34:12 +01:00
|
|
|
Group: Development/Languages/OCaml
|
2019-02-23 20:16:45 +01:00
|
|
|
Url: https://dune.build/
|
2018-01-30 09:52:37 +01:00
|
|
|
Conflicts: ocaml-jbuilder
|
|
|
|
Conflicts: ocaml-jbuilder-debuginfo
|
|
|
|
Conflicts: ocaml-jbuilder-debugsource
|
2018-01-30 07:34:12 +01:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2019-09-24 15:35:43 +02:00
|
|
|
Requires: ocaml-findlib
|
2018-01-30 07:34:12 +01:00
|
|
|
BuildRequires: ocaml
|
2019-09-30 18:16:57 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20190930
|
2018-01-30 07:34:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
A composable build system for OCaml
|
|
|
|
|
2019-09-25 14:19:06 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/OCaml
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2018-01-30 07:34:12 +01:00
|
|
|
%prep
|
2019-09-25 14:19:06 +02:00
|
|
|
%autosetup -p1
|
2018-01-30 07:34:12 +01:00
|
|
|
|
|
|
|
%build
|
2019-09-25 14:19:06 +02:00
|
|
|
%make_build
|
2018-01-30 07:34:12 +01:00
|
|
|
|
|
|
|
%install
|
2019-10-01 08:52:14 +02:00
|
|
|
#make_install PREFIX='%{_prefix}' LIBDIR="$(ocamlc -where)"
|
|
|
|
./_boot/default/bin/main/main_dune.exe install \
|
|
|
|
--prefix '%{_prefix}' \
|
|
|
|
--destdir '%{buildroot}' \
|
|
|
|
--libdir "$(ocamlc -where)" \
|
|
|
|
dune --build-dir _boot
|
2019-09-25 14:19:06 +02:00
|
|
|
find '%{buildroot}' -ls
|
|
|
|
rm -rfv %{buildroot}%{_prefix}/doc
|
|
|
|
mkdir -vp %{buildroot}%{_mandir}
|
|
|
|
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
|
2019-09-30 18:29:31 +02:00
|
|
|
%ocaml_create_file_list
|
2018-01-30 07:34:12 +01:00
|
|
|
|
2019-09-30 18:16:57 +02:00
|
|
|
%files -f %{name}.files
|
2019-02-05 08:09:16 +01:00
|
|
|
%doc CHANGES.md README.md
|
|
|
|
%license LICENSE.md
|
2018-01-30 07:34:12 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/*/*
|
2019-09-25 14:19:06 +02:00
|
|
|
%{_datadir}/emacs
|
|
|
|
|
2019-09-30 18:16:57 +02:00
|
|
|
%files devel -f %{name}.files.devel
|
2018-01-30 07:34:12 +01:00
|
|
|
|
|
|
|
%changelog
|