From 612246a85c650da3d8a9ed8747ab37e53f427a57 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Jan 11 2010 12:06:04 +0000 Subject: Imported from review (BZ 445068). --- diff --git a/.cvsignore b/.cvsignore index e69de29..39ddd7e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +release-1.2.20.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..f01fc09 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ocaml-bin-prot-1_2_20-2_fc11:HEAD:ocaml-bin-prot-1.2.20-2.fc11.src.rpm:1263211413 diff --git a/ocaml-bin-prot.spec b/ocaml-bin-prot.spec new file mode 100644 index 0000000..83b4dce --- /dev/null +++ b/ocaml-bin-prot.spec @@ -0,0 +1,145 @@ +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%define debug_package %{nil} + +Name: ocaml-bin-prot +Version: 1.2.20 +Release: 2%{?dist} +Summary: Read and write OCaml values in a type-safe binary protocol + +Group: Development/Libraries +License: LGPLv2+ with exceptions +URL: http://ocaml.janestcapital.com/?q=node/13 +Source0: http://hg.ocaml.info/release/bin-prot/archive/release-%{version}.tar.bz2 +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 +BuildRequires: ocaml-ounit-devel +BuildRequires: ocaml-type-conv >= 1.5.0 +BuildRequires: chrpath +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 +This library contains functionality for reading and writing OCaml +values in a type-safe binary protocol. These functions are extremely +efficient and provide users with a convenient and safe way of +performing I/O on any extensionally defined data type. This means that +functions, objects, and values whose type is bound through a +polymorphic record field are not supported, but everything else is. + +As of now, there is no support for cyclic or shared values. Cyclic +values will lead to non-termination whereas shared values, besides +requiring significantly more space when encoded, may lead to a +substantial increase in memory footprint when they are read back in. + + +%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 bin-prot-release-%{version} +dos2unix LICENSE.Tywith + + +%build +make + +cat > README.Fedora < - 1.2.20-2 +- The final license of the code is LGPLv2+ with the OCaml linking + exception. It was derived from earlier BSD code. +- Don't duplicate the license files across base and -devel packages. +- Add note to spec about inclusion of *.ml file in -devel package. + +* Mon Oct 12 2009 Richard W.M. Jones - 1.2.20-1 +- New upstream version 1.2.20. + +* Sat Sep 5 2009 Richard W.M. Jones - 1.2.18-1 +- New upstream version 1.2.18. + +* Fri May 16 2008 Richard W.M. Jones - 1.0.5-3 +- Force signed chars when compiling, as per comment from upstream author. +- Remove the part in the description which says this is only + supported on little endian architectures. + +* Mon May 12 2008 Richard W.M. Jones - 1.0.5-2 +- Remove ExclusiveArch, but add a Fedora README file warning about + shortcomings on non-x86 architectures. +- Added missing dependency ocaml-type-conv. +- Move *.ml file to devel package. + +* Sat May 3 2008 Richard W.M. Jones - 1.0.5-1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..41b8e30 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +92ff341e99844f2ef705a1defdd8f1ac release-1.2.20.tar.bz2