#
# Conditional build:
-
%bcond_without emacs # without emacs subpackage
%bcond_without x # without X11 support
%bcond_without tk # without Tcl/Tk support
%bcond_with db3 # use db3 instead of db 4.x
-
+#
# --without x11 implies --without tk
%{!?with_x:%undefine with_tk}
Patch1: %{name}-db3.patch
Patch2: %{name}-objinfo.patch
Patch3: %{name}-mano.patch
+# needs update for ocaml 3.08
#Patch4: %{name}-unused-var-warning.patch
-#Patch5: %{name}-3.07-patch2.diffs
-#Patch6: %{name}-emacs_batch_mode.patch
URL: http://caml.inria.fr/
%{?with_x:BuildRequires: XFree86-devel}
%{?with_db3:BuildRequires: db3-devel}
BuildRequires: xemacs
BuildRequires: xemacs-common
BuildRequires: xemacs-fsf-compat-pkg
-
%endif
Requires: ocaml-runtime = %{version}-%{release}
Provides: ocaml-ocamldoc
Summary: Emacs mode for OCaml
Summary(pl): Tryb OCamla dla Emacsa
Group: Development/Tools
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description emacs
Emacs mode files for Objective Caml language.
%patch2 -p1
%patch3 -p1
#%patch4 -p1
-#%patch5 -p1
-#%patch6 -p1
%build
-cp /usr/share/automake/config.sub config/gnu
+cp -f /usr/share/automake/config.sub config/gnu
./configure \
-cc "%{__cc} %{rpmcflags}" \
-bindir %{_bindir} \