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-pdcurses
36 OCaml bindings for curses.
40 %setup -q -c -n %{name}-%{alphatag}
52 OCAMLC=%{_mingw32_target}-ocamlopt \
53 OCAMLOPT=%{_mingw32_target}-ocamlopt \
54 OCAMLMKLIB=%{_mingw32_target}-ocamlmklib \
55 CURSES=%{_mingw32_libdir}/pdcurses.dll.a opt
59 version = "%{version}"
60 description = "OCaml bindings for ncurses"
62 archive(byte) = "mlcurses.cma"
63 archive(native) = "mlcurses.cmxa"
68 rm -rf $RPM_BUILD_ROOT
70 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
71 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml/curses
72 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml/stublibs
75 install mlcurses.cmxa mlcurses.a *.cmi *.cmx *.mli \
76 $RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml/curses
77 # XXX Not really clear if this file is necessary.
78 install dllmlcurses.dll \
79 $RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml/stublibs
84 rm -rf $RPM_BUILD_ROOT
89 %{_libdir}/%{_mingw32_target}-ocaml/curses/
90 %{_libdir}/%{_mingw32_target}-ocaml/stublibs/dllmlcurses.dll
94 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-2