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-calendar
10 Summary: MinGW Windows OCaml library for managing dates and times
13 Group: Development/Libraries
15 URL: http://www.lri.fr/~signoles/prog.en.html#calendar
16 Source0: http://www.lri.fr/~signoles/prog/calendar/calendar-%{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 >= 1.2.2-7
29 Objective Caml library for managing dates and times.
33 %setup -q -n calendar-%{version}
37 export OCAMLFIND_CONF=/etc/i686-pc-mingw32-ocamlfind.conf
39 %{_mingw32_configure} \
41 OCAMLC=i686-pc-mingw32-ocamlc \
42 OCAMLCDOTOPT=i686-pc-mingw32-ocamlc \
43 OCAMLOPT=i686-pc-mingw32-ocamlopt \
44 OCAMLOPTDOTOPT=i686-pc-mingw32-ocamlopt \
45 OCAMLDEP=i686-pc-mingw32-ocamldep
50 rm -rf $RPM_BUILD_ROOT
52 export OCAMLFIND_CONF=/etc/i686-pc-mingw32-ocamlfind.conf
53 export DESTDIR=$RPM_BUILD_ROOT
54 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
56 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
61 rm -rf $RPM_BUILD_ROOT
66 %{_libdir}/%{_mingw32_target}-ocaml/calendar/
70 * Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-5
71 - Rebuild for mingw32-gcc 4.4
73 * Sun Nov 23 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-4
74 - Rebuild with newly named mingw32-ocaml cross-compiler.
76 * Thu Nov 20 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-3
77 - Override ocamlc.opt, ocamlopt.opt in case a compatible native
78 compiler is also installed.
80 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-2
81 - Force rebuild with latest OCaml compiler.
83 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-1
84 - Initial RPM release.