diff --git a/ocaml-pgocaml.spec b/ocaml-pgocaml.spec index d70432a..21200ed 100644 --- a/ocaml-pgocaml.spec +++ b/ocaml-pgocaml.spec @@ -53,7 +53,7 @@ make depend %if %opt make all OCAMLOPTFLAGS=-g %else -make META pGOCaml_config.ml pgocaml.cma pa_pgsql.cmo pgocaml_prof +make META pGOCaml_config.ml pgocaml.cma pa_pgsql.cmo %endif make doc @@ -68,8 +68,10 @@ ocamlfind install pgocaml META *.mli *.cmi *.cmx *.cma *.cmxa *.a pa_*.cmo ocamlfind install pgocaml META *.mli *.cmi *.cma pa_*.cmo %endif +%if %opt mkdir -p $RPM_BUILD_ROOT%{_bindir} install -m 0755 pgocaml_prof $RPM_BUILD_ROOT%{_bindir} +%endif %files @@ -81,7 +83,9 @@ install -m 0755 pgocaml_prof $RPM_BUILD_ROOT%{_bindir} %exclude %{_libdir}/ocaml/pgocaml/*.cmx %endif %exclude %{_libdir}/ocaml/pgocaml/*.mli +%if %opt %{_bindir}/pgocaml_prof +%endif %files devel