- Create devel package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=31
This commit is contained in:
parent
13315b80a8
commit
1f3fe103ba
@ -4,6 +4,7 @@ Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
|
||||
- Update to version 1.11.3:
|
||||
see included CHANGES.md for details
|
||||
- Require findlib for ocamlfind, which is used to find ocaml
|
||||
- Create devel package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 30 15:23:34 UTC 2019 - Andy <andy@onthewings.net>
|
||||
|
@ -30,31 +30,76 @@ Conflicts: ocaml-jbuilder-debugsource
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
Requires: ocaml-findlib
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
A composable build system for OCaml
|
||||
|
||||
%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}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} PREFIX=%{_prefix}
|
||||
%make_build
|
||||
|
||||
%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/
|
||||
#make_install
|
||||
./_boot/default/bin/main/main_dune.exe install --destdir '%{buildroot}' dune --build-dir _boot
|
||||
find '%{buildroot}' -ls
|
||||
rm -rfv %{buildroot}%{_prefix}/doc
|
||||
mkdir -vp %{buildroot}%{_mandir}
|
||||
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.md README.md
|
||||
%license LICENSE.md
|
||||
%{_bindir}/*
|
||||
%{_mandir}/*/*
|
||||
%{_datadir}/emacs
|
||||
%if 0%{?ocaml_native_compiler}
|
||||
%dir %{_libdir}/ocaml
|
||||
%dir %{_libdir}/ocaml/*
|
||||
%dir %{_libdir}/ocaml/*/*
|
||||
%dir %{_libdir}/ocaml/*/*/*
|
||||
%{_libdir}/ocaml/*/*/*.cmxs
|
||||
%{_libdir}/ocaml/*/*/*/*.cmxs
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%dir %{_libdir}/ocaml
|
||||
%dir %{_libdir}/ocaml/*
|
||||
%dir %{_libdir}/ocaml/*/*
|
||||
%dir %{_libdir}/ocaml/*/*/*
|
||||
%if 0%{?ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/*/*/*.a
|
||||
%{_libdir}/ocaml/*/*/*.cmx
|
||||
%{_libdir}/ocaml/*/*/*.cmxa
|
||||
%{_libdir}/ocaml/*/*/*/*.a
|
||||
%{_libdir}/ocaml/*/*/*/*.cmx
|
||||
%{_libdir}/ocaml/*/*/*/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/*/*/*.cma
|
||||
%{_libdir}/ocaml/*/*/*.cmi
|
||||
%{_libdir}/ocaml/*/*/*.cmt
|
||||
%{_libdir}/ocaml/*/*/*.cmti
|
||||
%{_libdir}/ocaml/*/*/*.ml
|
||||
%{_libdir}/ocaml/*/*/*.mli
|
||||
%{_libdir}/ocaml/*/*/*/*.cma
|
||||
%{_libdir}/ocaml/*/*/*/*.cmi
|
||||
%{_libdir}/ocaml/*/*/*/*.cmt
|
||||
%{_libdir}/ocaml/*/*/*/*.ml
|
||||
%{_libdir}/ocaml/*/META
|
||||
%{_libdir}/ocaml/*/dune-package
|
||||
%{_libdir}/ocaml/*/opam
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user