Wrap specfile conditionals to fix quilt setup

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-findlib?expand=0&rev=63
This commit is contained in:
Olaf Hering 2017-07-17 12:41:11 +00:00 committed by Git OBS Bridge
parent ad0715b29c
commit cdbad4677e
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de
- Wrap specfile conditionals to fix quilt setup
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de

View File

@ -20,7 +20,9 @@
Name: ocaml-findlib Name: ocaml-findlib
Version: 1.6.2 Version: 1.6.2
Release: 0 Release: 0
%if %{defined ocaml_preserve_bytecode}
%{ocaml_preserve_bytecode} %{ocaml_preserve_bytecode}
%endif
Summary: Objective CAML package manager and build helper Summary: Objective CAML package manager and build helper
License: MIT License: MIT
Group: Development/Libraries/Other Group: Development/Libraries/Other
@ -86,7 +88,7 @@ tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocam
-mandir %{_mandir} \ -mandir %{_mandir} \
-with-toolbox -with-toolbox
make all make all
%if %{ocaml_native_compiler} %if %{defined ocaml_native_compiler}
make opt make opt
%endif %endif
rm doc/guide-html/TIMESTAMP rm doc/guide-html/TIMESTAMP
@ -128,7 +130,7 @@ rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild
# #
%{_libdir}/ocaml/topfind %{_libdir}/ocaml/topfind
%dir %{_libdir}/ocaml/findlib %dir %{_libdir}/ocaml/findlib
%if %{ocaml_native_compiler} %if %{defined ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmxs %{_libdir}/ocaml/*/*.cmxs
%endif %endif
@ -142,7 +144,7 @@ rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild
%dir %{_libdir}/ocaml/num-top %dir %{_libdir}/ocaml/num-top
%{_libdir}/ocaml/findlib/META %{_libdir}/ocaml/findlib/META
%{_libdir}/ocaml/num-top/META %{_libdir}/ocaml/num-top/META
%if %{ocaml_native_compiler} %if %{defined ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a %{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa %{_libdir}/ocaml/*/*.cmxa
%endif %endif