%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) %define debug_package %{nil} Name: ocaml-deriving Version: 0.1.1a Release: 3%{?dist} Summary: Extension to OCaml for deriving functions from types Group: Development/Libraries License: MIT URL: http://code.google.com/p/deriving/ Source0: http://deriving.googlecode.com/files/deriving-%{version}.tar.gz Patch0: ocaml-deriving-no-link-libs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel %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 Extension to OCaml for deriving functions from type declarations. Includes derivers for pretty-printing, type-safe marshalling with structure-sharing, dynamic typing, equality, and more. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n deriving-0.1.1 %patch0 %build make cat >META < - 0.1.1a-3 - Fix the License tag (MIT not BSD). * Wed Mar 5 2008 Richard W.M. Jones - 0.1.1a-2 - Remove ExcludeArch ppc64. * Fri Feb 29 2008 Richard W.M. Jones - 0.1.1a-1 - New upstream release which includes the license file. - Patch OCamlMakefile so it doesn't statically link system libs with the library. * Thu Feb 28 2008 Richard W.M. Jones - 0.1.1-1 - Initial RPM release. - Lacks a license file so we cannot release it for review yet.