- Package also *.v, for Coq

- Package changelog files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=45
This commit is contained in:
Olaf Hering 2020-08-21 17:06:21 +00:00 committed by Git OBS Bridge
parent 819290d21a
commit 49a6a32fff
2 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de
- Package also *.v, for Coq
- Package changelog files
-------------------------------------------------------------------
Thu May 14 14:14:14 UTC 2020 - ohering@suse.de

View File

@ -15,13 +15,14 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ocaml-rpm-macros
Version: 20200514
Version: 20200820
Release: 0
Summary: RPM macros for building OCaml source packages
License: GPL-2.0-only
Group: Development/Languages/OCaml
Url: https://build.opensuse.org/project/show/devel:languages:ocaml
URL: https://build.opensuse.org/project/show/devel:languages:ocaml
Source0: ocaml-ocaml.rpm.prov_req.attr.sh
Source1: ocaml-findlib.rpm.prov_req.attr.sh
@ -127,10 +128,22 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
# Other unknown files are shown on stdout
%%ocaml_create_file_list \
> %%{name}.files ;\
> %%{name}.files.changes ;\
> %%{name}.files.devel ;\
> %%{name}.files.ldsoconf ;\
> %%{name}.files.license ;\
> %%{name}.files.unhandled ;\
for changes in \\\
CHANGELOG.md \\\
CHANGES \\\
CHANGES.md \\\
CHANGES.txt \\\
ChangeLog \\\
Changelog \\\
;\
do\
test -f "${changes}" && echo "%%%%doc ${changes}" >> '%%{name}.files.changes' ;\
done ;\
for license in \\\
COPYING \\\
COPYING.txt \\\
@ -299,12 +312,17 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
/\\/opam$/{\
files_devel($0)\
}\
# Some Coq files\
/\\/[^/]+\.v$/{\
files_devel($0)\
}\
#\
# record unknown paths\
files_unhandled($0)\
END {\
;\
}' ;\
cat '%%{name}.files.changes' >> '%%{name}.files' ;\
cat '%%{name}.files.license' >> '%%{name}.files' ;\
if test -s %%{name}.files.ldsoconf ;\
then\