dynamic filelist
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-stdlib-shims?expand=0&rev=2
This commit is contained in:
parent
7ef6719856
commit
f037075582
@ -51,35 +51,54 @@ developing applications that use %{name}.
|
||||
%install
|
||||
%ocaml_dune_install
|
||||
|
||||
> %{name}.files
|
||||
> %{name}.files.devel
|
||||
find %{buildroot}$(ocamlc -where) | sed -ne '
|
||||
s@^%{buildroot}@@
|
||||
/\/\(META\|dune-package\|opam\)$/{
|
||||
w %{name}.files.devel
|
||||
s@\/[^/]\+$@@
|
||||
s@^@%%dir @
|
||||
w %{name}.files.devel
|
||||
s@\/[^/]\+$@@
|
||||
w %{name}.files.devel
|
||||
d
|
||||
}
|
||||
/\/[^/]\+\.\(a\|cmx\|cmxa\|cma\|cmi\|cmt\|cmti\|ml\|mli\)$/{
|
||||
w %{name}.files.devel
|
||||
s@\/[^/]\+$@@
|
||||
s@^@%%dir @
|
||||
w %{name}.files.devel
|
||||
s@\/[^/]\+$@@
|
||||
w %{name}.files.devel
|
||||
d
|
||||
}
|
||||
/\/[^/]\+\.\(cmxs\)$/{
|
||||
w %{name}.files
|
||||
s@\/[^/]\+$@@
|
||||
s@^@%%dir @
|
||||
w %{name}.files
|
||||
s@\/[^/]\+$@@
|
||||
w %{name}.files
|
||||
d
|
||||
}
|
||||
p
|
||||
'
|
||||
for i in %{name}.files %{name}.files.devel
|
||||
do
|
||||
sort -u $i > $$
|
||||
mv $$ $i
|
||||
done
|
||||
head -n 1234 %{name}.files %{name}.files.devel
|
||||
|
||||
%check
|
||||
%ocaml_dune_test
|
||||
|
||||
%files
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%dir %{_libdir}/ocaml
|
||||
%dir %{_libdir}/ocaml/*
|
||||
%if 0%{?ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/*/*.cmxs
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%dir %{_libdir}/ocaml
|
||||
%dir %{_libdir}/ocaml/*
|
||||
%if 0%{?ocaml_native_compiler}
|
||||
%{_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/*/META
|
||||
%{_libdir}/ocaml/*/opam
|
||||
%{_libdir}/ocaml/*/dune-package
|
||||
%files devel -f %{name}.files.devel
|
||||
|
||||
%changelog
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user