rpms/ocaml-reins/devel import.log, NONE, 1.1 ocaml-reins.spec, NONE, 1.1 reins-destdir-debian.patch, NONE, 1.1 reins-install-cmi-debian.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Richard W.M. Jones rjones at fedoraproject.org
Fri Sep 5 19:10:25 UTC 2008


Author: rjones

Update of /cvs/pkgs/rpms/ocaml-reins/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13722/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log ocaml-reins.spec reins-destdir-debian.patch 
	reins-install-cmi-debian.patch 
Log Message:
Initial import.



--- NEW FILE import.log ---
ocaml-reins-0_1a-2_fc10:HEAD:ocaml-reins-0.1a-2.fc10.src.rpm:1220641770


--- NEW FILE ocaml-reins.spec ---
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}

Name:           ocaml-reins
Version:        0.1a
Release:        2%{?dist}
Summary:        Library of OCaml persistent data structures

Group:          Development/Libraries
License:        LGPLv2 with exceptions
URL:            http://ocaml-reins.sourceforge.net/
Source0:        http://garr.dl.sourceforge.net/sourceforge/ocaml-reins/ocaml-reins-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:         reins-destdir-debian.patch
Patch1:         reins-install-cmi-debian.patch

BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-ocamldoc
BuildRequires:  ocaml-omake
BuildRequires:  ocaml-ounit-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
Reins is a collection of persistent data structures for OCaml.

In addition to providing a large collection of data structures, the
O'Caml Reins project also includes several features that I hope will
make developing O'Caml applications easier such as a random testing
framework and a collection of "standard" modules.

Current features:

* List data types:
   o Single linked lists (compatible with the standard library type)
   o O(1) catenable lists
   o Acyclic double linked lists
   o Random access lists with O(1) hd/cons/tl and O(log i) lookup/update
     for i'th element
* Double ended queues
* Sets/Maps:
   o AVL
   o Red/Black
   o Big-endian Patricia
   o Splay
* Heaps:
   o Binomial
   o Skew Binomial
* Zipper style cursor interfaces
* Persistent, bi-directional cursor based iterators (currently only
  for lists and sets)
* All standard types hoisted into the module level (Int, Bool, etc...)
* A collection of functor combinators to minimize boilerplate (e.g.,
  constructing compare or to_string functions)
* Quickcheck testing framework
   o Each structure provides a gen function that can generate a random
     instance of itself
* Completely safe code. No -unsafe or references to Obj.*
* Consistent function signatures. For instance, all fold functions take
  the accumulator in the same position.
* All operations use no more than O(log n) stack space (except for a
  few operations on splay trees which currently have O(log n) expected
  time, but O(n) worst case)


%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
%patch0 -p1
%patch1 -p1


%build
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
omake --config
omake doc


%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
omake install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING LGPL-2.1
%{_libdir}/ocaml/reins
%if %opt
%exclude %{_libdir}/ocaml/reins/*.a
%exclude %{_libdir}/ocaml/reins/*.cmxa
%exclude %{_libdir}/ocaml/reins/*.cmx
%endif
%exclude %{_libdir}/ocaml/reins/*.mli


%files devel
%defattr(-,root,root,-)
%doc AUTHORS COPYING LGPL-2.1 doc/html
%if %opt
%{_libdir}/ocaml/reins/*.a
%{_libdir}/ocaml/reins/*.cmxa
%{_libdir}/ocaml/reins/*.cmx
%endif
%{_libdir}/ocaml/reins/*.mli


%changelog
* Wed Sep  3 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1a-2
- Use normal versioning scheme.

* Sat Aug 30 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1-0.1.a
- Initial RPM release.

reins-destdir-debian.patch:

--- NEW FILE reins-destdir-debian.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_DESTDIR.dpatch by Mike Furr <mfurr at debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad ocaml-reins-0.1a~/config.omake ocaml-reins-0.1a/config.omake
--- ocaml-reins-0.1a~/config.omake	2007-10-02 18:09:15.312445370 -0400
+++ ocaml-reins-0.1a/config.omake	2007-10-02 18:09:24.105535886 -0400
@@ -7,7 +7,12 @@
 	  exit 1
 	OCAMLDEP_MODULES_ENABLED = $(OCAMLDEP_MODULES_AVAILABLE)
 	OCAMLDEP=$(OCAMLDEP_MODULES)
-	PREFIX=$(shell ocamlc -where)
+	if $(not $(defined PREFIX))
+	  PREFIX=$(shell ocamlc -where)
+	  export
+	if $(defined-env OCAMLFIND_DESTDIR)
+	  PREFIX = $(getenv OCAMLFIND_DESTDIR)
+	  export
 	VERSION=0.1a
 	ConfMsgChecking(oUnit)
 	OUNIT_DIR=$(shell ocamlfind query oUnit)

reins-install-cmi-debian.patch:

--- NEW FILE reins-install-cmi-debian.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_INSTALL_CMI.dpatch by Mike Furr <mfurr at debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad ocaml-reins-0.1a~/src/OMakefile ocaml-reins-0.1a/src/OMakefile
--- ocaml-reins-0.1a~/src/OMakefile	2007-10-02 17:26:23.000000000 -0400
+++ ocaml-reins-0.1a/src/OMakefile	2007-10-02 17:26:54.705359854 -0400
@@ -52,5 +52,5 @@
 
 install: META $(REINS_LIB)
 	mkdir -p $(PREFIX)/reins
-	ocamlfind install reins META $(REINS_LIB) $(REINS_CMX) \
+	ocamlfind install reins META $(REINS_LIB) $(REINS_CMX) reins.cmi \
 	  $(filter-exists $(addsuffix .mli, $(FILES)))


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-reins/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Sep 2008 16:59:57 -0000	1.1
+++ .cvsignore	5 Sep 2008 19:09:54 -0000	1.2
@@ -0,0 +1 @@
+ocaml-reins-0.1a.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-reins/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Sep 2008 16:59:57 -0000	1.1
+++ sources	5 Sep 2008 19:09:54 -0000	1.2
@@ -0,0 +1 @@
+696fa73fcce636f8710b7a83be613383  ocaml-reins-0.1a.tar.gz




More information about the fedora-extras-commits mailing list