ocaml-oasis/ocaml-oasis.spec
Fedora Release Engineering 28f59137cb - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 16:53:33 +00:00

129 lines
3.4 KiB
RPMSpec

%global debug_package %{nil}
Name: ocaml-oasis
Version: 0.4.11
Release: 7%{?dist}
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/1757/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}
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
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jul 12 2018 Richard W.M. Jones <rjones@redhat.com> - 0.4.11-5
- OCaml 4.07.0 (final) rebuild.
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.4.11-4
- Bump release and rebuild.
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.4.11-3
- Bump release and rebuild.
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.4.11-2
- OCaml 4.07.0-rc1 rebuild.
* Thu Apr 05 2018 Andy Li <andy@onthewings.net> - 0.4.11-1
- New upstream release. (#1563675)
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Dec 13 2017 Richard W.M. Jones <rjones@redhat.com> - 0.4.10-3
- Rebuild against new ocamlbuild.
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 0.4.10-2
- OCaml 4.06.0 rebuild.
* Wed Nov 15 2017 Andy Li <andy@onthewings.net> - 0.4.10-1
- Initial RPM release.