Accepting request 828815 from devel:languages:ocaml
- Package also *.v, for Coq - Package changelog files - Enable native riscv64 OBS-URL: https://build.opensuse.org/request/show/828815 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-rpm-macros?expand=0&rev=9
This commit is contained in:
commit
5c25f0f83c
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de
|
||||||
|
|
||||||
|
- Package also *.v, for Coq
|
||||||
|
- Package changelog files
|
||||||
|
- Enable native riscv64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 14 14:14:14 UTC 2020 - ohering@suse.de
|
Thu May 14 14:14:14 UTC 2020 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -15,13 +15,14 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: ocaml-rpm-macros
|
Name: ocaml-rpm-macros
|
||||||
Version: 20200514
|
Version: 20200820
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: RPM macros for building OCaml source packages
|
Summary: RPM macros for building OCaml source packages
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/OCaml
|
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
|
Source0: ocaml-ocaml.rpm.prov_req.attr.sh
|
||||||
Source1: ocaml-findlib.rpm.prov_req.attr.sh
|
Source1: ocaml-findlib.rpm.prov_req.attr.sh
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ Source1: ocaml-findlib.rpm.prov_req.attr.sh
|
|||||||
%define do_opt 1
|
%define do_opt 1
|
||||||
%endif
|
%endif
|
||||||
%if %{without ocaml_force_enable_ocaml_opt}
|
%if %{without ocaml_force_enable_ocaml_opt}
|
||||||
%ifarch %{arm} aarch64 %{ix86} ppc ppc64 ppc64le s390x x86_64
|
%ifarch %{arm} aarch64 %{ix86} ppc ppc64 ppc64le riscv64 s390x x86_64
|
||||||
%define do_opt 1
|
%define do_opt 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -127,10 +128,22 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
|
|||||||
# Other unknown files are shown on stdout
|
# Other unknown files are shown on stdout
|
||||||
%%ocaml_create_file_list \
|
%%ocaml_create_file_list \
|
||||||
> %%{name}.files ;\
|
> %%{name}.files ;\
|
||||||
|
> %%{name}.files.changes ;\
|
||||||
> %%{name}.files.devel ;\
|
> %%{name}.files.devel ;\
|
||||||
> %%{name}.files.ldsoconf ;\
|
> %%{name}.files.ldsoconf ;\
|
||||||
> %%{name}.files.license ;\
|
> %%{name}.files.license ;\
|
||||||
> %%{name}.files.unhandled ;\
|
> %%{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 \\\
|
for license in \\\
|
||||||
COPYING \\\
|
COPYING \\\
|
||||||
COPYING.txt \\\
|
COPYING.txt \\\
|
||||||
@ -299,12 +312,17 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
|
|||||||
/\\/opam$/{\
|
/\\/opam$/{\
|
||||||
files_devel($0)\
|
files_devel($0)\
|
||||||
}\
|
}\
|
||||||
|
# Some Coq files\
|
||||||
|
/\\/[^/]+\.v$/{\
|
||||||
|
files_devel($0)\
|
||||||
|
}\
|
||||||
#\
|
#\
|
||||||
# record unknown paths\
|
# record unknown paths\
|
||||||
files_unhandled($0)\
|
files_unhandled($0)\
|
||||||
END {\
|
END {\
|
||||||
;\
|
;\
|
||||||
}' ;\
|
}' ;\
|
||||||
|
cat '%%{name}.files.changes' >> '%%{name}.files' ;\
|
||||||
cat '%%{name}.files.license' >> '%%{name}.files' ;\
|
cat '%%{name}.files.license' >> '%%{name}.files' ;\
|
||||||
if test -s %%{name}.files.ldsoconf ;\
|
if test -s %%{name}.files.ldsoconf ;\
|
||||||
then\
|
then\
|
||||||
|
Loading…
Reference in New Issue
Block a user