- 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:
@@ -4,6 +4,7 @@ Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
|
|||||||
- Update to version 1.11.3:
|
- Update to version 1.11.3:
|
||||||
see included CHANGES.md for details
|
see included CHANGES.md for details
|
||||||
- Require findlib for ocamlfind, which is used to find ocaml
|
- 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>
|
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
|
Source: %{name}-%{version}.tar.xz
|
||||||
Requires: ocaml-findlib
|
Requires: ocaml-findlib
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
|
BuildRequires: ocaml-findlib
|
||||||
|
BuildRequires: ocaml-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A composable build system for OCaml
|
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
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} PREFIX=%{_prefix}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
#make_install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
./_boot/default/bin/main/main_dune.exe install --destdir '%{buildroot}' dune --build-dir _boot
|
||||||
mkdir -p %{buildroot}%{_mandir}/man5
|
find '%{buildroot}' -ls
|
||||||
cp -av _boot/default/bin/main/main_dune.exe %{buildroot}%{_bindir}/dune
|
rm -rfv %{buildroot}%{_prefix}/doc
|
||||||
ln -sfvbn dune %{buildroot}%{_bindir}/jbuilder
|
mkdir -vp %{buildroot}%{_mandir}
|
||||||
cp -av _boot/default/doc/*.1 %{buildroot}%{_mandir}/man1/
|
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
|
||||||
cp -av _boot/default/doc/*.5 %{buildroot}%{_mandir}/man5/
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc CHANGES.md README.md
|
%doc CHANGES.md README.md
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/*/*
|
%{_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
|
%changelog
|
||||||
|
Reference in New Issue
Block a user