Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > f7271ae907c386e12d5d0bef72e37a08 > files > 2

findlib-1.2.2-2mdv2009.1.src.rpm

%define name	findlib
%define version	1.2.2
%define release	%mkrel 2

Summary:	A module packaging tool for OCaml
Name:		findlib
Version:	%{version}
Release:	%{release}
Epoch:		0
Group:		Development/Other
License:	MIT-style
Url:		http://www.ocaml-programming.de/packages/documentation/findlib/
Source0:	http://www.ocaml-programming.de/packages/%{name}-%{version}.tar.gz
BuildRequires:	ocaml >= 0:3.10
BuildRequires:	camlp4
BuildRequires:	ocaml-labltk
BuildRequires:	ncurses-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}

%package -n	ocamlfind-mini
Summary:	Minimal findlib script to be distributed with user libraries
Group:		Development/Other
Requires:	%{name} = %{epoch}:%{version}-%release

%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 metainformation can
be stored. The packages are kept in the filesystem hierarchy, but with
strict directory structure. The library contains functions to look the
directory up that stores a package, to query metainformation 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 frontends of the various OCaml compilers that can directly deal with
packages.

%description -n ocamlfind-mini
ocamlfind-mini is an OCaml script that implements a subset of the full
functionality of ocamlfind. It consists only of one file, so it is easy
to distribute it with any software.

The subset is normally sufficient to compile a library and to install
the library; but it is insufficient to link the library into an
executable. 

%prep
%setup -q

%build
./configure -mandir %{_mandir} -config %{_sysconfdir}/findlib.conf
make all opt

%install
rm -rf %{buildroot}
%make prefix=%{buildroot} PREFIX=%{buildroot} install 

install -d -m 755 %{buildroot}%{_libdir}/ocaml/ocamlfind-mini
cp -a mini/* %{buildroot}%{_libdir}/ocaml/ocamlfind-mini

# don't ship META files for standard library in this package,
# they are included in ocaml package
rm -rf %{buildroot}%{_libdir}/ocaml/site-lib/{unix,str,stdlib,threads,num,labltk,graphics,dynlink,dbm,camlp4,bigarray}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README INSTALL LICENSE doc
%config(noreplace) %{_sysconfdir}/findlib.conf
%{_bindir}/*
%{_libdir}/ocaml/site-lib  
%{_libdir}/ocaml/topfind
%{_mandir}/man*/*

%files -n ocamlfind-mini
%defattr(-,root,root)
%{_libdir}/ocaml/ocamlfind-mini/*



%changelog
* Tue Dec 09 2008 Pixel <pixel@mandriva.com> 0:1.2.2-2mdv2009.1
+ Revision: 312166
- rebuild

* Thu Aug 14 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0:1.2.2-1mdv2009.0
+ Revision: 272039
- new version

* Tue Mar 04 2008 Stefan van der Eijk <stefan@mandriva.org> 0:1.1.2-0.pl1.3mdv2008.1
+ Revision: 178241
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0:1.1.2-0.pl1.2mdv2008.1
+ Revision: 136415
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Sep 18 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0:1.1.2-0.pl1.2mdv2008.0
+ Revision: 89641
- rebuild

* Thu Jun 07 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 0:1.1.2-0.pl1.1mdv2008.0
+ Revision: 36818
- new release: 1.1.2pl1
- fix installation of safe_camlp4 (P0)
- wipe out buildroot before install

* Tue May 29 2007 Pixel <pixel@mandriva.com> 0:1.1.1-7mdv2008.0
+ Revision: 32507
- rebuild with new ocaml


* Thu Jan 25 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.1.1-6mdv2007.0
+ Revision: 113117
- move configuration into standard place
- don't ship META files for standard distribution, they are inclued in ocaml package already

* Wed Jan 24 2007 Emmanuel Andry <eandry@mandriva.org> 0:1.1.1-5mdv2007.1
+ Revision: 112961
- change buildrequires ocamltk to ocaml-labltk

* Mon Aug 07 2006 Olivier Thauvin <nanardon@mandriva.org> 0:1.1.1-4mdv2007.0
+ Revision: 53408
- rebuild
- Import findlib

* Wed Apr 26 2006 Pixel <pixel@mandriva.com> 1.1.1-3mdk
- really rebuild with new ocaml

* Tue Apr 25 2006 Pixel <pixel@mandriva.com> 1.1.1-2mdk
- rebuild for new ocaml

* Tue Apr 18 2006 Olivier Thauvin <nanardon@mandriva.org> 1.1.1-1mdk
- 1.1.1

* Sun Feb 29 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0:0.9-2mdk
- Fix DIRM (distlint)