%define docver    6.00        

Name:             camlp5
Summary:          a preprocessor-pretty-printer of ocaml
Version:          6.11
Release:          1%{?_dist_release}

License:          distributable
Group:            Development/Languages
URL:              http://pauillac.inria.fr/camlimages/

Source0:          http://pauillac.inria.fr/~ddr/camlp5/distrib/src/%{name}-%{version}.tgz
Source1:          http://pauillac.inria.fr/~ddr/camlp5/doc/ps/%{name}-%{docver}.ps

BuildRoot:        %{_tmppath}/%{name}-%{version}-root
BuildRequires:    ocaml
Requires:         ocaml

Vendor:           Project Vine
Distribution:     Vine Linux

Packager:         inagaki

%description
Camlp5 is a preprocessor-pretty-printer of OCaml.

%prep
%setup -q
cp -p %{SOURCE1} .

%build
./configure \
	--prefix %{_prefix} \
	--libdir %{_libdir}/ocaml \
	--mandir %{_mandir} \
	--transitional

make world.opt

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
make install DESTDIR=$RPM_BUILD_ROOT

%clean
if [ -d $RPM_BUILD_ROOT ]; then %{__rm} -rf $RPM_BUILD_ROOT; fi

%files
%defattr (-,root,root)
%doc CHANGES LICENSE README
%doc %{name}-%{docver}.ps
%{_bindir}/*
%{_libdir}/ocaml/camlp5
%{_mandir}/man1/*

%changelog
* Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 6.11-1
- new upstream release

* Fri Apr 16 2010 Shu KONNO <owa@bg.wakwak.com> - 5.11-2
- rebuilt with new tool chain and ocaml 3.11.0-2

* Sat May  9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 5.11-1
- new upstream release
- built with ocaml 3.11.0
- added Packager tag

* Sun Aug  3 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 5.08-1
- new upstream release
- built with ocaml 3.10.2

* Wed Feb  6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 5.07-0vl2
- rebuilt for VineSeed

* Wed Feb  6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 5.07-0vl1
- new upstream release
- rebuilt with Ocaml 3.10.1

* Sun Dec 30 2007 Shu KONNO <owa@bg.wakwak.com> - 5.00-0vl2
- added option libdir to configure

* Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 5.00-0vl1
- initial package for Vine Linux
