[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH 03 of 14] Add upstream ocaml-findlib RPM spec file by Richard W.M. Jones <rjones@xxxxxxxxxx>



# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1275056240 -3600
# Node ID 1a8747ee6e7aeee4e2812e9b26e9da9c67b4d5c1
# Parent  0ad336c1ec1de1ec5834d377fba0fe12def307fa
Add upstream ocaml-findlib RPM spec file by Richard W.M. Jones 
<rjones@xxxxxxxxxx>

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 0ad336c1ec1d -r 1a8747ee6e7a findlib.spec
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/findlib.spec      Fri May 28 15:17:20 2010 +0100
@@ -0,0 +1,165 @@
+%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
+%define debug_package %{nil}
+
+Name:           ocaml-findlib
+Version:        1.2.1
+Release:        5%{?dist}
+Summary:        Objective CAML package manager and build helper
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://projects.camlcity.org/projects/findlib.html
+Source0:        http://download.camlcity.org/download/findlib-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  ocaml >= 3.09.2
+BuildRequires:  camlp4
+BuildRequires:  labltk
+BuildRequires:  ocaml-ocamldoc
+BuildRequires:  m4, ncurses-devel
+BuildRequires:  gawk
+
+%description
+Objective CAML package manager and build helper.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -n findlib-%{version}
+
+
+%build
+ocamlc -version
+ocamlc -where
+(cd tools/extract_args && make)
+tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp 
ocamlmktop ocamlopt ocamldep ocamldoc ||:
+cat src/findlib/ocaml_args.ml
+./configure -config %{_sysconfdir}/ocamlfind.conf \
+  -bindir %{_bindir} \
+  -sitelib `ocamlc -where` \
+  -mandir %{_mandir} \
+  -with-toolbox
+make all
+%if %opt
+make opt
+%endif
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# Grrr destdir grrrr
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+make install prefix=$RPM_BUILD_ROOT OCAMLFIND_BIN=$RPM_BUILD_ROOT%{_bindir}
+mv $RPM_BUILD_ROOT/$RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE doc/README
+%config(noreplace) %{_sysconfdir}/ocamlfind.conf
+%{_bindir}/*
+%{_mandir}/man1/*
+%{_mandir}/man5/*
+%{_libdir}/ocaml/*/META
+%{_libdir}/ocaml/topfind
+%{_libdir}/ocaml/findlib
+%if %opt
+%exclude %{_libdir}/ocaml/findlib/*.a
+%exclude %{_libdir}/ocaml/findlib/*.cmxa
+%endif
+%exclude %{_libdir}/ocaml/findlib/*.mli
+%exclude %{_libdir}/ocaml/findlib/Makefile.config
+%exclude %{_libdir}/ocaml/findlib/make_wizard
+%exclude %{_libdir}/ocaml/findlib/make_wizard.pattern
+%{_libdir}/ocaml/num-top
+
+
+%files devel
+%defattr(-,root,root,-)
+%doc LICENSE doc/README doc/guide-html
+%if %opt
+%{_libdir}/ocaml/findlib/*.a
+%{_libdir}/ocaml/findlib/*.cmxa
+%endif
+%{_libdir}/ocaml/findlib/*.mli
+%{_libdir}/ocaml/findlib/Makefile.config
+%{_libdir}/ocaml/findlib/make_wizard
+%{_libdir}/ocaml/findlib/make_wizard.pattern
+
+
+%changelog
+* Thu Apr 24 2008 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.2.1-5
+- Removed dependency generation for EL-4.
+- ocaml-camlp4 -> camlp4, ocaml-labltk -> labltk for this ancient
+  version of OCaml.
+
+* Mon Apr 21 2008 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.2.1-3
+- New upstream URLs.
+
+* Sat Mar  1 2008 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.2.1-2
+- Experimental rebuild for ppc64.
+
+* Tue Feb 12 2008 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.2.1-1
+- New upstream version 1.2.1.
+
+* Thu Sep  6 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-14
+- Ignore Parsetree module, it's a part of the toplevel.
+
+* Mon Sep  3 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-13
+- Bump version to force rebuild against ocaml -6 release.
+
+* Thu Aug 30 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-12
+- Added BR: gawk.
+
+* Thu Aug 30 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-11
+- Force rebuild because of changed BRs in base OCaml.
+
+* Thu Aug  2 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-10
+- BR added ocaml-ocamldoc so that ocamlfind ocamldoc works.
+- Fix path of camlp4 parsers in Makefile.
+
+* Thu Jul 12 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-9
+- Added ExcludeArch: ppc64
+
+* Thu Jul 12 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-8
+- Expanded tabs to spaces.
+- Readded conditional opt section for files.
+
+* Wed Jul 04 2007 Xavier Lamien <lxtnow[at]gmail.com> - 1.1.2pl1-7
+- Fixed BR.
+
+* Wed Jun 27 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-6
+- Fix configure line.
+- Install doc/guide-html.
+- Added dependency on ncurses-devel.
+
+* Mon Jun 11 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-5
+- Build against 3.10.
+- Update to latest package guidelines.
+
+* Sat Jun  2 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-4
+- Handle bytecode-only architectures.
+
+* Sat May 26 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-3
+- Missing builddep m4.
+
+* Fri May 25 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-2
+- Use OCaml find-requires and find-provides.
+
+* Fri May 18 2007 Richard W.M. Jones <rjones@xxxxxxxxxx> - 1.1.2pl1-1
+- Initial RPM release.
+

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.