Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f2574ba247 |
@ -2,16 +2,12 @@
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
# Documentation adds a circular dependency, so by
|
||||
# default we build without.
|
||||
%bcond_with doc
|
||||
|
||||
%global srcname mew-vi
|
||||
%global upname mew_vi
|
||||
|
||||
Name: ocaml-%{srcname}
|
||||
Version: 0.5.0
|
||||
Release: 8%{?dist}
|
||||
Release: 5%{?dist}.1
|
||||
Summary: Modal Editing Witch, VI interpreter
|
||||
|
||||
License: MIT
|
||||
@ -21,9 +17,7 @@ Source0: %{url}/archive/%{version}/%{upname}-%{version}.tar.gz
|
||||
BuildRequires: ocaml >= 4.02.3
|
||||
BuildRequires: ocaml-dune >= 1.1.0
|
||||
BuildRequires: ocaml-mew-devel >= 0.1.0
|
||||
%if %{with doc}
|
||||
BuildRequires: ocaml-odoc
|
||||
%endif
|
||||
BuildRequires: ocaml-react-devel
|
||||
|
||||
%description
|
||||
@ -42,31 +36,25 @@ Requires: ocaml-react-devel%{?_isa}
|
||||
The %{name}-devel package contains libraries and signature
|
||||
files for developing applications that use %{name}.
|
||||
|
||||
%if %{with doc}
|
||||
%package docs
|
||||
Summary: Documentation for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description docs
|
||||
Documentation for %{name}.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -n %{upname}-%{version}
|
||||
|
||||
%build
|
||||
dune build %{?_smp_mflags}
|
||||
%if %{with doc}
|
||||
dune build %{?_smp_mflags} @doc
|
||||
%endif
|
||||
|
||||
%install
|
||||
dune install --destdir=%{buildroot}
|
||||
|
||||
%if %{with doc}
|
||||
# We do not want the dune markers
|
||||
find _build/default/_doc/_html -name .dune-keep -delete
|
||||
%endif
|
||||
|
||||
# We do not want the ml files
|
||||
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete
|
||||
@ -105,22 +93,13 @@ find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+
|
||||
%endif
|
||||
%{_libdir}/ocaml/%{upname}/%{upname}*.cmt
|
||||
|
||||
%if %{with doc}
|
||||
%files docs
|
||||
%doc _build/default/_doc/*
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 1 16:58:00 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 0.5.0-8
|
||||
- OCaml 4.12.0 build
|
||||
- Make -docs subpackage conditional.
|
||||
|
||||
* Tue Feb 2 2021 Richard W.M. Jones <rjones@redhat.com> - 0.5.0-7
|
||||
- Bump and rebuild for updated ocaml-camomile dep (RHBZ#1923853).
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
* Wed Sep 02 2020 Richard W.M. Jones <rjones@redhat.com> - 0.5.0-5.1
|
||||
- Bump release and rebuild.
|
||||
|
||||
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 0.5.0-5
|
||||
- OCaml 4.11.1 rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user