rpms/ocaml-preludeml/devel import.log, NONE, 1.1 ocaml-preludeml.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Richard W.M. Jones rjones at fedoraproject.org
Thu Jan 15 14:12:59 UTC 2009


Author: rjones

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

Modified Files:
	.cvsignore sources 
Added Files:
	import.log ocaml-preludeml.spec 
Log Message:
Initial import.



--- NEW FILE import.log ---
ocaml-preludeml-0_1-0_10_20090113_fc11:HEAD:ocaml-preludeml-0.1-0.10.20090113.fc11.src.rpm:1232028477


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

# There are no official releases, so we just use git dates.
# This software is much more stable than the "0.1" version
# number might indicate.
%define gitdate 20090113

Name:           ocaml-preludeml
Version:        0.1
Release:        0.10.%{gitdate}%{?dist}
Summary:        OCaml utility functions

Group:          Development/Libraries
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# To recreate the source tarball, do:
#   git clone git://github.com/kig/preludeml.git
#   tar --exclude .git -cf /tmp/preludeml-%{gitdate}.tar preludeml
#   bzip2 /tmp/preludeml-%{gitdate}.tar
URL:            http://github.com/kig/preludeml/tree/master
Source0:        preludeml-%{gitdate}.tar.bz2

BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-pcre-devel
BuildRequires:  ocaml-ocamlnet-devel
BuildRequires:  ocaml-omake
BuildRequires:  ocaml-ounit-devel
BuildRequires:  ruby

%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
Prelude.ml is a collection of utility functions for OCaml programs.
Of particular interest are high level parallel combinators, which make
multicore parallelization of OCaml programs easy.


%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 preludeml


%build
omake

# Create a META file.
cat >META <<_EOF_
version = "%{version}"
requires = "pcre,unix,netstring,bigarray"
description = "OCaml utility functions"
archive(byte) = "prelude.cmo"
archive(native) = "prelude.cmxa"
_EOF_


%check
# The tests fail in various delightful ways:
# - i386 & ppc fail on 1 test (out of several hundred).  Probably a
#   64 bit assumption in the code or in the test somewhere.
# - ppc64 runs out of memory during the test.
omake test ||:


%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

ocamlfind install preludeml \
  META \
  src/prelude.ml \
  src/prelude.cmi \
  src/prelude.cmo \
  src/prelude.cmx \
  src/prelude.a \
  src/prelude.cmxa


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/ocaml/preludeml
%if %opt
%exclude %{_libdir}/ocaml/preludeml/*.a
%exclude %{_libdir}/ocaml/preludeml/*.cmx
%exclude %{_libdir}/ocaml/preludeml/*.cmxa
%endif
%exclude %{_libdir}/ocaml/preludeml/*.ml


%files devel
%defattr(-,root,root,-)
%doc LICENSE README TESTING
%if %opt
%{_libdir}/ocaml/preludeml/*.a
%{_libdir}/ocaml/preludeml/*.cmx
%{_libdir}/ocaml/preludeml/*.cmxa
%endif
%{_libdir}/ocaml/preludeml/*.ml


%changelog
* Tue Jan 13 2009 Richard W.M. Jones <rjones at redhat.com> - 0.1-0.10.20090113
- Tests require ounit & ruby.

* Tue Jan 13 2009 Richard W.M. Jones <rjones at redhat.com> - 0.1-0.4.20090113
- New upstream version 20090113, resolving licensing issues.
- Use omake to build.
- Added a check section to run automated tests.

* Sat Dec 20 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1-0.2.20080922
- Fix the META file.

* Sat Dec 20 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1-0.1.20080922
- Initial RPM release.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-preludeml/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 Jan 2009 21:25:03 -0000	1.1
+++ .cvsignore	15 Jan 2009 14:12:28 -0000	1.2
@@ -0,0 +1 @@
+preludeml-20090113.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-preludeml/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 Jan 2009 21:25:03 -0000	1.1
+++ sources	15 Jan 2009 14:12:28 -0000	1.2
@@ -0,0 +1 @@
+117903e9d545d3854e8d81f98e4ecc44  preludeml-20090113.tar.bz2




More information about the fedora-extras-commits mailing list