Olaf Hering
e0a5f74c21
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=5
59 lines
1.7 KiB
RPMSpec
59 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package ocaml-dune
|
|
#
|
|
# Copyright (c) 2018 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ocaml-dune
|
|
Version: 1.0.20180129.a3ff5e5
|
|
Release: 0
|
|
%{?ocaml_preserve_bytecode}
|
|
Summary: A composable build system for OCaml
|
|
License: Apache-2.0
|
|
Group: Development/Languages/OCaml
|
|
Url: https://github.com/ocaml/dune
|
|
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
|
|
sed -i~ s/ocamlopt/ocamlxxx/ bootstrap.ml
|
|
diff -u bootstrap.ml~ bootstrap.ml || : diff
|
|
make %{?_smp_mflags} PREFIX=%{_prefix}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
cp -av _build/default/bin/main.exe %{buildroot}%{_bindir}/dune
|
|
ln -sfvbn dune %{buildroot}%{_bindir}/jbuilder
|
|
cp -av _build/default/doc/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc CHANGES.md README.md LICENSE.md
|
|
%{_bindir}/*
|
|
%{_mandir}/*/*
|
|
|
|
%changelog
|