forked from pool/ocaml-rpm-macros
- Automatically package known license files in main pkg
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=7
This commit is contained in:
parent
fb5f5dff8d
commit
5bb60ff8c8
@ -2,6 +2,7 @@
|
||||
Fri Oct 4 07:56:44 UTC 2019 - ohering@suse.de
|
||||
|
||||
- Use _rpmmacrodir
|
||||
- Automatically package known license files in main pkg
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 30 14:15:16 UTC 2019 - ohering@suse.de
|
||||
|
@ -90,6 +90,17 @@ tee %{buildroot}%{_rpmmacrodir/macros.%{name} <<'_EOF_'
|
||||
%%ocaml_create_file_list \
|
||||
> %%{name}.files ;\
|
||||
> %%{name}.files.devel ;\
|
||||
for i in \
|
||||
COPYING \
|
||||
COPYING.txt \
|
||||
LICENCE \
|
||||
LICENSE \
|
||||
LICENSE.md \
|
||||
LICENSE.txt \
|
||||
;\
|
||||
do\
|
||||
test -f "$i" && echo "%%license $i" >> %%{name}.files ;\
|
||||
done ;\
|
||||
find %%{buildroot}$(ocamlc -where) | sed -ne '\
|
||||
s@^%%{buildroot}@@\
|
||||
/\\/\\(META\\|dune-package\\|opam\\)$/{\
|
||||
|
Loading…
Reference in New Issue
Block a user