diff --git a/ocaml-camlimages.spec b/ocaml-camlimages.spec index e419a95..e36c4f9 100644 --- a/ocaml-camlimages.spec +++ b/ocaml-camlimages.spec @@ -1,6 +1,8 @@ +%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) + Name: ocaml-camlimages Version: 4.1.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: OCaml image processing library Group: Development/Libraries @@ -72,7 +74,9 @@ cp -pr License.txt htmlref $RPM_BUILD_ROOT/usr/share/doc/ocaml-camlimages %doc README License.txt %{_libdir}/ocaml/camlimages %exclude %{_libdir}/ocaml/camlimages/*.a +%if %{opt} %exclude %{_libdir}/ocaml/camlimages/*.cmxa +%endif # There aren't any *.cmx files #%exclude %{_libdir}/ocaml/camlimages/*.cmx %exclude %{_libdir}/ocaml/camlimages/*.mli @@ -83,13 +87,18 @@ cp -pr License.txt htmlref $RPM_BUILD_ROOT/usr/share/doc/ocaml-camlimages %files devel %doc htmlref %{_libdir}/ocaml/camlimages/*.a +%if %{opt} %{_libdir}/ocaml/camlimages/*.cmxa +%endif # There aren't any *.cmx files #%{_libdir}/ocaml/camlimages/*.cmx %{_libdir}/ocaml/camlimages/*.mli %changelog +* Wed Jul 22 2015 Richard W.M. Jones - 4.1.0-14 +- Enable bytecode compilation. + * Wed Jun 24 2015 Richard W.M. Jones - 4.1.0-13 - ocaml-4.02.2 final rebuild.