Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c948dac9ead950fc3947dd666a3d5ee8 > files > 1

ocaml-bdb-4.3.21-3mdv2008.0.src.rpm

%define up_name ocamlbdb
%define name	ocaml-bdb
%define version	4.3.21
%define release	%mkrel 3

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	OCaml interface to Berkeley-DB
Source: 	http://www.eecs.harvard.edu/~stein/%{up_name}-%{version}.tar.bz2
URL:		http://www.eecs.harvard.edu/~stein/
License:	GPL
Group:		Development/Other
BuildRequires:	ocaml
BuildRequires:	db4-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
CamlGI is a library to enable you to write CGI and FastCGI in OCaml. It is
written 100% in OCaml so should run on many platforms. The library supports
multiple simultaneous connections and request multiplexing while presenting an
easy to use interface.

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	db4-devel
Requires:	%{name} = %{version}-%{release}

%description devel
This package contains the development files needed to build applications
using %{name}.

%prep
%setup -q -n %{up_name}-%{version}

%build
make BDB_DIR=%{_prefix} CFLAGS="-I%{_libdir}/ocaml/"

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}/%{ocaml_sitelib}/bdb 
install -m 644 bdb.cma bdb.cmi libcamlbdb.a %{buildroot}/%{ocaml_sitelib}/bdb

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING CREDITS README
%dir %{ocaml_sitelib}/bdb
%{ocaml_sitelib}/bdb/*.cmi

%files devel
%defattr(-,root,root)
%{ocaml_sitelib}/bdb/*
%exclude %{ocaml_sitelib}/bdb/*.cmi


%changelog
* Sat Sep 01 2007 Guillaume Rousse <guillomovitch@mandriva.org> 4.3.21-3mdv2008.0
+ Revision: 77595
- drop macro definition, now in rpm-mandriva-setup
  ship .cmi file in non-devel subpackage


* Tue Feb 20 2007 Guillaume Rousse <guillomovitch@mandriva.org> 4.3.21-2mdv2007.0
+ Revision: 123144
- requires corresponding native devel package

* Mon Feb 19 2007 Guillaume Rousse <guillomovitch@mandriva.org> 4.3.21-1mdv2007.1
+ Revision: 122841
- fix build dependencies

* Mon Feb 19 2007 Guillaume Rousse <guillomovitch@mandriva.org> 4.3.21-1mdv2007.1
- first mdv release