- Package also /etc/ld.so.conf.d
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=22
This commit is contained in:
parent
5e807c3ee5
commit
523a87652d
@ -6,6 +6,7 @@ Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de
|
|||||||
- Package also *.cmo
|
- Package also *.cmo
|
||||||
- Package also *.so.owner
|
- Package also *.so.owner
|
||||||
- Package also *.o
|
- Package also *.o
|
||||||
|
- Package also /etc/ld.so.conf.d
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 4 07:56:44 UTC 2019 - ohering@suse.de
|
Fri Oct 4 07:56:44 UTC 2019 - ohering@suse.de
|
||||||
|
@ -90,6 +90,7 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
|
|||||||
%%ocaml_create_file_list \
|
%%ocaml_create_file_list \
|
||||||
> %%{name}.files ;\
|
> %%{name}.files ;\
|
||||||
> %%{name}.files.devel ;\
|
> %%{name}.files.devel ;\
|
||||||
|
> %%{name}.files.ldsoconf ;\
|
||||||
> %%{name}.files.unhandled ;\
|
> %%{name}.files.unhandled ;\
|
||||||
for i in \\\
|
for i in \\\
|
||||||
COPYING \\\
|
COPYING \\\
|
||||||
@ -124,7 +125,17 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
|
|||||||
w %%{name}.files.devel\
|
w %%{name}.files.devel\
|
||||||
d\
|
d\
|
||||||
}\
|
}\
|
||||||
/\\/[^/]\\+\\.\\(cmxs\\|so\\|so.owner\\)$/{\
|
/\\/[^/]\\+\\.\\(so\\|so.owner\\)$/{\
|
||||||
|
w %%{name}.files\
|
||||||
|
s@\\/[^/]\\+$@@\
|
||||||
|
s@^@%%dir @\
|
||||||
|
w %%{name}.files\
|
||||||
|
w %%{name}.files.ldsoconf\
|
||||||
|
s@\\/[^/]\\+$@@\
|
||||||
|
w %%{name}.files\
|
||||||
|
d\
|
||||||
|
}\
|
||||||
|
/\\/[^/]\\+\\.\\(cmxs\\)$/{\
|
||||||
w %%{name}.files\
|
w %%{name}.files\
|
||||||
s@\\/[^/]\\+$@@\
|
s@\\/[^/]\\+$@@\
|
||||||
s@^@%%dir @\
|
s@^@%%dir @\
|
||||||
@ -136,12 +147,29 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
|
|||||||
w %%{name}.files.unhandled\
|
w %%{name}.files.unhandled\
|
||||||
d\
|
d\
|
||||||
' ;\
|
' ;\
|
||||||
for i in %%{name}.files %%{name}.files.devel ;\
|
for i in \\\
|
||||||
|
%%{name}.files \\\
|
||||||
|
%%{name}.files.devel \\\
|
||||||
|
%%{name}.files.ldsoconf \\\
|
||||||
|
%%{name}.files.unhandled \\\
|
||||||
|
;\
|
||||||
do\
|
do\
|
||||||
sort -u $i > $$ ;\
|
sort -u $i > $$ ;\
|
||||||
mv $$ $i ;\
|
mv $$ $i ;\
|
||||||
done ;\
|
done ;\
|
||||||
head -n 1234 %%{name}.files %%{name}.files.devel %%{name}.files.unhandled ;\
|
if test -s %%{name}.files.ldsoconf ;\
|
||||||
|
then \
|
||||||
|
ldsoconfd='/etc/ld.so.conf.d' ;\
|
||||||
|
mkdir -vp "%%{buildroot}${ldsoconfd}" ;\
|
||||||
|
sort -u %%{name}.files.ldsoconf > "%%{buildroot}${ldsoconfd}/%%{name}.conf" ;\
|
||||||
|
echo "%config %%{buildroot}${ldsoconfd}/%%{name}.conf" >> %%{name}.files ;\
|
||||||
|
fi ;\
|
||||||
|
head -n 1234 \\\
|
||||||
|
%%{name}.files \\\
|
||||||
|
%%{name}.files.devel \\\
|
||||||
|
%%{name}.files.ldsoconf \\\
|
||||||
|
%%{name}.files.unhandled \\\
|
||||||
|
;\
|
||||||
%%{nil}
|
%%{nil}
|
||||||
|
|
||||||
# setup.ml comes from oasis, but this is here for libs oasis depends on
|
# setup.ml comes from oasis, but this is here for libs oasis depends on
|
||||||
|
Loading…
Reference in New Issue
Block a user