1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
7 Name: mingw32-ocaml-curses
10 Summary: MinGW Windows OCaml bindings for ncurses
13 Group: Development/Libraries
15 URL: http://savannah.nongnu.org/projects/ocaml-tmk/
16 Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/ocaml-curses-%{version}.tar.gz
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21 BuildRequires: mingw32-filesystem >= 35
22 BuildRequires: mingw32-gcc
23 BuildRequires: mingw32-binutils
24 BuildRequires: mingw32-ocaml >= 3.11.0+beta1-9
25 BuildRequires: mingw32-ocaml-findlib
26 BuildRequires: mingw32-pdcurses
28 # Upstream package doesn't come with a configure script so
29 # we have to rebuild it.
30 BuildRequires: autoconf, automake, libtool
34 OCaml bindings for curses.
38 %setup -q -n ocaml-curses-%{version}
49 OCAMLC=%{_mingw32_target}-ocamlc \
50 OCAMLOPT=%{_mingw32_target}-ocamlopt \
51 OCAMLMKLIB=%{_mingw32_target}-ocamlmklib \
52 OCAMLMKLIB_FLAGS="-L%{_mingw32_libdir}" \
56 # Build the test program just to check that everything is OK.
57 %{_mingw32_target}-ocamlopt -I . \
61 -cclib "-L%{_mingw32_libdir} pdcurses.dll.a"
65 rm -rf $RPM_BUILD_ROOT
67 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
68 export DESTDIR=$RPM_BUILD_ROOT
69 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
71 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
72 ocamlfind install curses META *.cmi *.cmx *.cmxa *.a *.mli
76 rm -rf $RPM_BUILD_ROOT
81 %{_libdir}/%{_mingw32_target}-ocaml/curses/
85 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
86 - New upstream version 1.0.3 with proper support for Windows
89 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-4
90 - libmlcurses.a contained a copy of pdcurses.dll.a in error.
92 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-3
93 - Use ocamlfind to install in the correct location.
94 - Install the META file.
95 - Fix the version number in changelog.
97 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-2