1
0

- 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:
Olaf Hering 2019-10-04 08:02:30 +00:00 committed by Git OBS Bridge
parent fb5f5dff8d
commit 5bb60ff8c8
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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\\)$/{\