- use dune macros from ocaml-rpm-macros

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=32
This commit is contained in:
Olaf Hering 2019-09-30 16:16:57 +00:00 committed by Git OBS Bridge
parent 1f3fe103ba
commit db78d36502
2 changed files with 8 additions and 36 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 30 12:34:56 UTC 2019 - ohering@suse.de
- use dune macros from ocaml-rpm-macros
-------------------------------------------------------------------
Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de

View File

@ -31,7 +31,7 @@ Source: %{name}-%{version}.tar.xz
Requires: ocaml-findlib
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-rpm-macros
BuildRequires: ocaml-rpm-macros >= 20190930
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -60,46 +60,13 @@ rm -rfv %{buildroot}%{_prefix}/doc
mkdir -vp %{buildroot}%{_mandir}
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
%files
%files -f %{name}.files
%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
%files devel -f %{name}.files.devel
%changelog