Sophie

Sophie

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

ocaml-oasis-0.3.0-4.mga3.src.rpm

Name:           ocaml-oasis
Version:        0.3.0
Release:        %mkrel 4
Summary:        Architecture for building OCaml libraries and applications
License:        LGPL-2.1 with OCaml linking exception
Group:          Development/OCaml
URL:            http://oasis.forge.ocamlcore.org/
Source0:        http://forge.ocamlcore.org/frs/download.php/918/oasis-%{version}.tar.gz

BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-data-notation
BuildRequires:  camlp4
BuildRequires:  ocamlmod
BuildRequires:  ocamlify
BuildRequires:  ocaml-ounit
BuildRequires:  ocaml-fileutils
BuildRequires:  ocaml-type-conv

%description
OASIS generates a full configure, build and install system for your
application. It starts with a simple `_oasis` file at the toplevel of your
project and creates everything required.

It uses external tools like OCamlbuild and it can be considered as the glue
between various subsystems that do the job. It should support the following
tools: OCamlbuild, OMake (todo), OCamlMakefile (todo), ocaml-autoconf (todo)

It also features a do-it-yourself command line invocation and an internal
configure/install scheme. Libraries are managed through findlib. It has been
tested on GNU Linux and Windows.

It also allows to have standard entry points and description. It helps to
integrates your libraries and software with third parties tools like GODI.

%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 -n oasis-%{version}

%build
./configure \
    --prefix %{_prefix} \
    --libdir %{_libdir} \
    --libexecdir %{_libexecdir} \
    --exec-prefix %{_exec_prefix} \
    --bindir %{_bindir} \
    --sbindir %{_sbindir} \
    --mandir %{_mandir} \
    --datadir %{_datadir} \
    --localstatedir %{_localstatedir} \
    --sharedstatedir %{_sharedstatedir} \
    --destdir %{buildroot}

make all
make doc

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

# remove installed doc (we use the %doc macro):
rm -rf %{buildroot}/usr/share/doc/oasis/
mv api-oasis.docdir api-html

%files
%doc README.txt COPYING.txt AUTHORS.txt CHANGES.txt INSTALL.txt TODO.txt
%dir %{_libdir}/ocaml/oasis
%dir %{_libdir}/ocaml/plugin-loader
%dir %{_libdir}/ocaml/userconf
%{_bindir}/oasis
%{_libdir}/ocaml/oasis/META
%{_libdir}/ocaml/oasis/*.cmi
%{_libdir}/ocaml/oasis/*.cma
%{_libdir}/ocaml/oasis/*.cmxs
%{_libdir}/ocaml/plugin-loader/META
%{_libdir}/ocaml/plugin-loader/*.cmi
%{_libdir}/ocaml/plugin-loader/*.cma
%{_libdir}/ocaml/plugin-loader/*.cmxs
%{_libdir}/ocaml/userconf/META
%{_libdir}/ocaml/userconf/*.cmi
%{_libdir}/ocaml/userconf/*.cma
%{_libdir}/ocaml/userconf/*.cmxs

%files devel
%doc doc/
%doc api-html/
%{_libdir}/ocaml/oasis/*.cmxa
%{_libdir}/ocaml/oasis/*.cmx
%{_libdir}/ocaml/oasis/*.a
%{_libdir}/ocaml/oasis/*.mli
%{_libdir}/ocaml/oasis/*.ml
%{_libdir}/ocaml/plugin-loader/*.cmxa
%{_libdir}/ocaml/plugin-loader/*.cmx
%{_libdir}/ocaml/plugin-loader/*.a
%{_libdir}/ocaml/plugin-loader/*.ml
%{_libdir}/ocaml/userconf/*.cmxa
%{_libdir}/ocaml/userconf/*.cmx
%{_libdir}/ocaml/userconf/*.a
%{_libdir}/ocaml/userconf/*.ml


%changelog

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

* Thu Oct 11 2012 malo <malo> 0.3.0-3.mga3
+ Revision: 304536
- remove Requires on ocaml

  + blue_prawn <blue_prawn>
    - new rpm group for ocaml

* Mon Jul 16 2012 blue_prawn <blue_prawn> 0.3.0-1.mga3
+ Revision: 271196
- needs req type-conv
- needs camlp4
- imported package ocaml-oasis