Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 38e588cb48ddc97802d8b03f7577c0a6 > files > 2

ocaml-newt-0.9-4.mga3.src.rpm

Name:           ocaml-newt
Version:        0.9
Release:        %mkrel 4
Summary:        OCaml library for using newt text mode window system
License:        LGPLv2+ with exceptions
Group:          Development/OCaml
URL:            http://people.redhat.com/~rjones/ocaml-newt/
Source0:        http://people.redhat.com/~rjones/ocaml-newt/ocaml-newt-%{version}.tar.gz
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-camlidl-devel
BuildRequires:  newt-devel
Requires: newt-devel

%description
This is a set of OCaml bindings to newt.

The newt windowing system is a terminal-based window and widget
library designed for writing applications with a simple, but
user-friendly, interface.  While newt is not intended to provide the
rich feature set advanced applications may require, it has proven to
be flexible enough for a wide range of applications (most notably, Red
Hat's installation process).

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

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%prep
%setup -q

%build
./configure --libdir=%{_libdir}
# Dependencies are broken in the upstream package.
make newt_int.mli
rm -f .depend
make depend
make all
make opt
make doc

%install
rm -rf %{buildroot}
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/newt
make install

%files
%doc COPYING.LIB INSTALL README
%dir %{_libdir}/ocaml/newt/
%{_libdir}/ocaml/newt/META
%{_libdir}/ocaml/newt/*.cma
%{_libdir}/ocaml/newt/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

%files devel
%doc html/
%{_libdir}/ocaml/newt/*.a
%{_libdir}/ocaml/newt/*.cmxa
%{_libdir}/ocaml/newt/*.cmx
%{_libdir}/ocaml/newt/*.mli


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.9-4.mga3
+ Revision: 361493
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Oct 01 2012 blue_prawn <blue_prawn> 0.9-3.mga3
+ Revision: 301673
- new rpm group for ocaml

* Tue Mar 27 2012 malo <malo> 0.9-2.mga2
+ Revision: 227202
- add missing Requires to newt-devel

* Fri Mar 23 2012 blue_prawn <blue_prawn> 0.9-1.mga2
+ Revision: 225914
- imported package ocaml-newt