%define up_name findlib Summary: A module packaging tool for OCaml Name: ocaml-%{up_name} Version: 1.3.3 Release: %mkrel 8 Group: Development/OCaml License: BSD Url: http://projects.camlcity.org/projects/findlib.html Source0: http://download.camlcity.org/download/%{up_name}-%{version}.tar.gz BuildRequires: ocaml-compiler BuildRequires: ocaml-compiler-libs BuildRequires: camlp4 BuildRequires: ocaml-labltk BuildRequires: ncurses-devel Requires: ocaml-compiler = %(rpm -q --qf '%{VERSION}' ocaml-compiler) Obsoletes: %{up_name} < %{version} %description The findlib library provides a scheme to manage reusable software components (packages), and includes tools that support this scheme. Packages are collections of OCaml modules for which meta-information can be stored. The packages are kept in the file-system hierarchy, but with strict directory structure. The library contains functions to look the directory up that stores a package, to query meta-information about a package, and to retrieve dependency information about multiple packages. There is also a tool that allows the user to enter queries on the command-line. In order to simplify compilation and linkage, there are new front-ends of the various OCaml compilers that can directly deal with packages. %package devel Summary: Development files for %{name} Group: Development/OCaml 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 %{up_name}-%{version} %build ./configure \ -bindir %{_bindir} \ -mandir %{_mandir} \ -config %{_sysconfdir}/findlib.conf \ -sitelib `ocamlc -where` \ -with-toolbox make all %ifnarch %mips make opt %endif %install rm -rf %{buildroot} %make prefix=%{buildroot} PREFIX=%{buildroot} install # don't ship META files for standard library in this package, # they are included in ocaml package, # [IMPORTANT] so when this package is updated, update too # the tarball that contain these files (Source5) in the ocaml package! rm -f %{buildroot}%{_libdir}/ocaml/bigarray/META rm -f %{buildroot}%{_libdir}/ocaml/camlp4/META rm -f %{buildroot}%{_libdir}/ocaml/dbm/META rm -f %{buildroot}%{_libdir}/ocaml/dynlink/META rm -f %{buildroot}%{_libdir}/ocaml/graphics/META rm -f %{buildroot}%{_libdir}/ocaml/labltk/META rm -f %{buildroot}%{_libdir}/ocaml/num/META rm -f %{buildroot}%{_libdir}/ocaml/num-top/META rm -f %{buildroot}%{_libdir}/ocaml/stdlib/META rm -f %{buildroot}%{_libdir}/ocaml/str/META rm -f %{buildroot}%{_libdir}/ocaml/threads/META rm -f %{buildroot}%{_libdir}/ocaml/unix/META rm -f %{buildroot}%{_libdir}/ocaml/ocamlbuild/META rm -f %{buildroot}%{_libdir}/ocaml/compiler-libs/META # In order to update the [Source5] field of ocaml.spec, # in the findlib source directory run the ./configure script # with camlp4 and ocaml-labltk properly installed, then: # tar cfj findlib-1.3.3-ocaml-4.00.0-meta-files.tar.bz2 site-lib-src/*/META %files %doc LICENSE %config(noreplace) %{_sysconfdir}/findlib.conf %{_bindir}/* %{_mandir}/man*/* %{_libdir}/ocaml/findlib %{_libdir}/ocaml/topfind %{_libdir}/ocaml/num-top %exclude %{_libdir}/ocaml/findlib/*.a %exclude %{_libdir}/ocaml/findlib/*.cmxa %exclude %{_libdir}/ocaml/findlib/*.mli %exclude %{_libdir}/ocaml/findlib/Makefile.config %exclude %{_libdir}/ocaml/findlib/make_wizard %exclude %{_libdir}/ocaml/findlib/make_wizard.pattern %files devel %doc LICENSE doc doc/README doc/guide-html %{_libdir}/ocaml/findlib/*.a %{_libdir}/ocaml/findlib/*.cmxa %{_libdir}/ocaml/findlib/*.mli %{_libdir}/ocaml/findlib/Makefile.config %{_libdir}/ocaml/findlib/make_wizard %{_libdir}/ocaml/findlib/make_wizard.pattern %changelog * Sat Mar 09 2013 rtp <rtp> 1.3.3-8.mga3 + Revision: 401976 - enable build with ocaml opt on arm * Sat Jan 12 2013 umeabot <umeabot> 1.3.3-7.mga3 + Revision: 361349 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Oct 09 2012 fwang <fwang> 1.3.3-6.mga3 + Revision: 303839 - rebuild fo rnew ocaml-compiler * Sun Sep 30 2012 malo <malo> 1.3.3-5.mga3 + Revision: 301002 - rebuild for new ocaml * Sat Sep 29 2012 blue_prawn <blue_prawn> 1.3.3-4.mga3 + Revision: 300022 - added -bindir configure option - compiler-libs/META - new rpm group for ocaml * Sat Jul 21 2012 malo <malo> 1.3.3-3.mga3 + Revision: 273128 - fix requires to ocaml-compiler * Sat Jul 21 2012 malo <malo> 1.3.3-2.mga3 + Revision: 273121 - fix requires for ocaml-compiler * Sat Jul 21 2012 malo <malo> 1.3.3-1.mga3 + Revision: 273106 - update to 1.3.3 * Sat Mar 03 2012 blue_prawn <blue_prawn> 1.2.8-1.mga2 + Revision: 217454 - updated to new version 1.2.8 * Sun Oct 02 2011 shlomif <shlomif> 1.2.7-1.mga2 + Revision: 150980 - New version - 1.2.7 - thanks to Malo * Sun Oct 02 2011 fwang <fwang> 1.2.6-3.mga2 + Revision: 150885 - add requires on ocaml * Sun Oct 02 2011 fwang <fwang> 1.2.6-2.mga2 + Revision: 150871 - rebuild for new ocaml * Mon Mar 07 2011 saispo <saispo> 1.2.6-1.mga1 + Revision: 66114 - imported package ocaml-findlib