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-0.15.beta1
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
32 Requires: mingw32-pdcurses
36 OCaml bindings for curses.
40 %setup -q -n ocaml-curses-%{version}
51 OCAMLC=%{_mingw32_target}-ocamlc \
52 OCAMLOPT=%{_mingw32_target}-ocamlopt \
53 OCAMLMKLIB=%{_mingw32_target}-ocamlmklib \
54 OCAMLMKLIB_FLAGS="-L%{_mingw32_libdir}" \
58 # Build the test program just to check that everything is OK.
59 %{_mingw32_target}-ocamlopt -I . \
67 rm -rf $RPM_BUILD_ROOT
69 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
70 export DESTDIR=$RPM_BUILD_ROOT
71 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
73 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
74 ocamlfind install curses META *.cmi *.cmx *.cmxa *.a *.mli
78 rm -rf $RPM_BUILD_ROOT
83 %{_libdir}/%{_mingw32_target}-ocaml/curses/
87 * Sat Jan 24 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-5
90 * Sun Nov 23 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-4
91 - Rebuild against newest OCaml cross-compiler.
93 * Sat Nov 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
94 - Rebuild against new pdcurses.
96 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
97 - Runtime requires PDCurses library.
99 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
100 - New upstream version 1.0.3 with proper support for Windows
103 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-4
104 - libmlcurses.a contained a copy of pdcurses.dll.a in error.
106 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-3
107 - Use ocamlfind to install in the correct location.
108 - Install the META file.
109 - Fix the version number in changelog.
111 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-2