ocaml-oasis/ocaml-oasis.spec

103 lines
2.4 KiB
RPMSpec
Raw Normal View History

2017-11-16 12:57:38 +00:00
%global debug_package %{nil}
Name: ocaml-oasis
Version: 0.4.10
2017-12-02 11:22:10 +00:00
Release: 2%{?dist}
2017-11-16 12:57:38 +00:00
Summary: Tooling for building OCaml libraries and applications
License: LGPLv2+ with exceptions
URL: http://oasis.forge.ocamlcore.org/
Source0: https://forge.ocamlcore.org/frs/download.php/1694/oasis-%{version}.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-ocamlbuild-devel
BuildRequires: ocaml-findlib-devel
BuildRequires: ocamlify
BuildRequires: ocamlmod
BuildRequires: ocaml-ocamldoc
BuildRequires: help2man
%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.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{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
ocaml setup.ml -configure \
--destdir $RPM_BUILD_ROOT \
--prefix %{_prefix}
ocaml setup.ml -build
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
ocaml setup.ml -install
# generate manpage
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
help2man $RPM_BUILD_ROOT%{_bindir}/oasis \
--output $RPM_BUILD_ROOT%{_mandir}/man1/oasis.1 \
--name "Tooling for building OCaml libraries and applications" \
--version-string %{version} \
--no-info
%check
ocaml setup.ml -test
%files
%doc README.md CHANGES.txt
%license COPYING.txt
%{_bindir}/*
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmxs
%endif
%{_mandir}/man1/*
%files devel
%doc README.md CHANGES.txt
%license COPYING.txt
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%endif
%{_libdir}/ocaml/*/*.annot
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.cmt
%{_libdir}/ocaml/*/*.cmti
%{_libdir}/ocaml/*/*.ml
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/META
%changelog
2017-12-02 11:22:10 +00:00
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 0.4.10-2
- OCaml 4.06.0 rebuild.
2017-11-16 12:57:38 +00:00
* Wed Nov 15 2017 Andy Li <andy@onthewings.net> - 0.4.10-1
- Initial RPM release.