Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 67d599a8bae210417e6aa25e761b47b1 > files > 2

ocaml-bitstring-1.9.8-1mdv2009.0.src.rpm

%define name	ocaml-bitstring
%define version	1.9.8
%define release	%mkrel 1

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Bitstrings and bitstring matching for OCaml
License:	LGPL
Group:		Development/Other
URL:		http://code.google.com/p/bitstring
Source:	    http://bitstring.googlecode.com/files/%{name}-%{version}.tar.gz	
BuildRequires:	ocaml
BuildRequires:	camlp4
BuildRequires:  findlib
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
The ocaml-bitstring project adds Erlang-style bitstrings and matching over
bitstrings as a syntax extension and library for OCaml.

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

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

%prep
%setup -q

%build
%configure2_5x
make 

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}/%{ocaml_sitelib}
install -d -m 755 %{buildroot}/%{ocaml_sitelib}/stublibs
export OCAMLFIND_DESTDIR=%{buildroot}/%{ocaml_sitelib}
make install OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{ocaml_sitelib}"
rm -f %{buildroot}/%{ocaml_sitelib}/stublibs/*.so.owner

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README TODO COPYING COPYING.LIB CHANGES
%dir %{ocaml_sitelib}/bitstring
%{ocaml_sitelib}/bitstring/*.cmi

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


%changelog
* Tue Sep 02 2008 Guillaume Rousse <guillomovitch@mandriva.org> 1.9.8-1mdv2009.0
+ Revision: 279045
- new version

* Thu Aug 14 2008 Guillaume Rousse <guillomovitch@mandriva.org> 1.9.7-1mdv2009.0
+ Revision: 271756
- import ocaml-bitstring


* Thu Aug 14 2008 Guillaume Rousse <guillomovitch@mandriva.org> 1.9.7-1mdv2009.0
- first mdv release