Name: ocaml-syck Version: 0.1.1 Release: %mkrel 2 Summary: Syck bindings for OCaml, allowing to read and write YAML files License: MIT Group: Development/Other URL: http://ocaml-syck.sourceforge.net/ Source0: http://downloads.sourceforge.net/ocaml-syck/ocaml-syck-%{version}.tar.gz Requires: ocaml Requires: libsyck0 BuildRequires: libsyck-devel BuildRequires: ocaml-findlib %description The ocaml-syck library provides Syck bindings for OCaml, allowing an OCaml program to read and write YAML files. %package devel Summary: Development files for %{name} Group: Development/Other Requires: %{name} = %{version}-%{release} Requires: libsyck-devel %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q %build ./configure make OBJ=cmo LIB=cma OCAMLC=ocamlc make OBJ=cmx LIB=cmxa pushd yaml mkdir -p doc ocamldoc -colorize-code -html yamlNode.mli yamlParser.mli -d doc popd mv yaml/doc . %install rm -rf %{buildroot} export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs ocamlfind install syck yaml/{META,*.mli,*.cmi,*.cma,*.a,*.cmxa,*.cmx,dll*.so} %files %doc COPYING %dir %{_libdir}/ocaml/syck %{_libdir}/ocaml/syck/META %{_libdir}/ocaml/syck/*.cma %{_libdir}/ocaml/syck/*.cmi %{_libdir}/ocaml/stublibs/*.so* %files devel %doc TODO %doc doc/ %{_libdir}/ocaml/syck/*.a %{_libdir}/ocaml/syck/*.cmxa %{_libdir}/ocaml/syck/*.cmx %{_libdir}/ocaml/syck/*.mli %changelog * Thu Mar 29 2012 malo <malo> 0.1.1-2.mga2 + Revision: 227419 - adding missing requires to libsyck-devel * Wed Mar 28 2012 blue_prawn <blue_prawn> 0.1.1-1.mga2 + Revision: 227354 - imported package from Mandriva * Wed Jun 16 2010 Florent Monnier <blue_prawn@mandriva.org> + Revision: 548128 - generating and providing the doc * Wed Jun 16 2010 Florent Monnier <blue_prawn@mandriva.org> + Revision: 548127 - import ocaml-syck