%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) %define debug_package %{nil} Name: ocaml-type-conv Version: 1.3.0 Release: 2%{?dist} Summary: OCaml base library for type conversion Group: Development/Libraries License: LGPLv2+ with exceptions and BSD URL: http://www.ocaml.info/home/ocaml_sources.html Source0: http://www.ocaml.info/ocaml_sources/type-conv-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExcludeArch: ppc64 BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel BuildRequires: dos2unix %define _use_internal_dependency_generator 0 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh %description The type-conv mini library factors out functionality needed by different preprocessors that generate code from type specifications, because this functionality cannot be duplicated without losing the ability to use these preprocessors simultaneously. %prep %setup -q -n type-conv-%{version} dos2unix LICENSE.Tywith %build make %install rm -rf $RPM_BUILD_ROOT export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs make install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE LICENSE.Tywith CHANGES COPYRIGHT README.txt VERSION %{_libdir}/ocaml/type-conv %changelog * Sat Mar 1 2008 Richard W.M. Jones - 1.3.0-2 - Add missing BR for ocaml-camlp4-devel and test build in mock. * Sun Feb 24 2008 Richard W.M. Jones - 1.3.0-1 - Initial RPM release.