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 # For versioning, please see the native Fedora package.
8 %define alphatag 20020319
10 Name: mingw32-ocaml-curses
13 Summary: MinGW Windows OCaml bindings for ncurses
16 Group: Development/Libraries
18 URL: http://savannah.nongnu.org/projects/ocaml-tmk/
19 Source0: ocaml-curses-%{alphatag}.tar.gz
22 Patch1000: mingw32-ocaml-curses-0.1-build.patch
23 Patch1001: mingw32-ocaml-curses-0.1-win32-functions.patch
25 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28 BuildRequires: mingw32-filesystem >= 35
29 BuildRequires: mingw32-gcc
30 BuildRequires: mingw32-binutils
31 BuildRequires: mingw32-ocaml >= 3.11.0+beta1-9
32 BuildRequires: mingw32-ocaml-findlib
33 BuildRequires: mingw32-pdcurses
37 OCaml bindings for curses.
41 %setup -q -c -n %{name}-%{alphatag}
53 OCAMLC=%{_mingw32_target}-ocamlopt \
54 OCAMLOPT=%{_mingw32_target}-ocamlopt \
55 OCAMLMKLIB=%{_mingw32_target}-ocamlmklib \
56 CURSES=%{_mingw32_libdir}/pdcurses.dll.a opt
60 version = "%{version}"
61 description = "OCaml bindings for ncurses"
63 archive(byte) = "mlcurses.cma"
64 archive(native) = "mlcurses.cmxa"
69 rm -rf $RPM_BUILD_ROOT
71 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
72 export DESTDIR=$RPM_BUILD_ROOT
73 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
75 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
77 ocamlfind install curses META *.cmi *.cmx *.cmxa *.a *.mli
82 rm -rf $RPM_BUILD_ROOT
87 %{_libdir}/%{_mingw32_target}-ocaml/curses/
91 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-3
92 - Use ocamlfind to install in the correct location.
93 - Install the META file.
94 - Fix the version number in changelog.
96 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-2