ocaml-merlin/ocaml-merlin.spec

127 lines
4.2 KiB
RPMSpec
Raw Normal View History

2019-03-06 13:30:07 +00:00
Name: ocaml-merlin
2020-08-06 16:34:43 +00:00
Version: 3.3.7
2020-08-21 11:55:28 +00:00
Release: 0.2.preview1%{?dist}
2019-03-06 13:30:07 +00:00
Summary: Context sensitive completion for OCaml in Vim and Emacs
%global libname %(echo %{name} | sed -e 's/^ocaml-//')
2020-08-06 16:34:43 +00:00
%global upstream_version %{version}-4.11-preview1
%global tag v%{upstream_version}
2019-03-06 13:30:07 +00:00
2019-06-28 10:21:12 +00:00
# The entire source is MIT except src/ocaml are QPL
2019-03-06 13:30:07 +00:00
License: MIT and QPL
URL: https://github.com/ocaml/%{libname}
2020-08-06 16:34:43 +00:00
Source0: https://github.com/ocaml/%{libname}/archive/%{tag}.tar.gz#/%{libname}-%{upstream_version}.tar.gz
2019-03-06 13:30:07 +00:00
BuildRequires: ocaml
2019-06-28 10:21:12 +00:00
BuildRequires: ocaml-dune >= 1.8
2019-03-06 13:30:07 +00:00
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-yojson-devel
BuildRequires: ocaml-biniou-devel
BuildRequires: ocaml-easy-format-devel
2019-06-28 10:21:12 +00:00
# For merlin-lsp
#BuildRequires: ocaml-yojson-devel >= 1.6.0
#BuildRequires: ocaml-menhir-devel
#BuildRequires: ocaml-ppx-deriving-devel
#BuildRequires: ocaml-ppx-deriving-yojson-devel
#BuildRequires: ocaml-ppx-tools-devel
#BuildRequires: ocaml-ppx-derivers-devel
#BuildRequires: ocaml-migrate-parsetree-devel
#BuildRequires: ocaml-result-devel
2019-03-06 13:30:07 +00:00
# Required for tests, not available in Fedora
#BuildRequires: craml
BuildRequires: emacs
# For byte-compile elisp
#BuildRequires: emacs-auto-complete
#BuildRequires: emacs-tuareg
# The following two are not yet available in Fedora.
# So byte compilation is disabled
#BuildRequires: emacs-company
#BuildRequires: emacs-iedit
BuildRequires: vim-enhanced
Requires: emacs-filesystem >= %{_emacs_version}
Requires: vim-filesystem
%description
Merlin is an assistant for editing OCaml code. It aims to provide the features
available in modern IDEs: error reporting, auto completion, source browsing and
much more.
%prep
2020-08-06 16:34:43 +00:00
%setup -q -n %{libname}-%{upstream_version}
2019-03-06 13:30:07 +00:00
%build
2019-06-28 10:21:12 +00:00
dune build %{_smp_mflags} --build-dir _build_%{libname} -p %{libname}
#dune build --build-dir _build_%{libname}_lsp -p %{libname}-lsp
2019-03-06 13:30:07 +00:00
%install
2019-06-28 10:21:12 +00:00
dune install --build-dir _build_%{libname} --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{libname}
#dune install --build-dir _build_%{libname}_lsp --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{libname}-lsp
2019-03-06 13:30:07 +00:00
# Reinstall vim files to Fedora default location
mkdir -p %{buildroot}%{vimfiles_root}
mv %{buildroot}%{_datadir}/%{libname}/vim/* %{buildroot}%{vimfiles_root}
rmdir %{buildroot}%{_datadir}/%{libname}/vim
rmdir %{buildroot}%{_datadir}/%{libname}
# Reinstall documents using %%doc later
rm -fr %{buildroot}%{_prefix}/doc
%check
2019-03-31 14:02:46 +00:00
# Test requirement is not satisfied in Fedora
2019-03-06 13:30:07 +00:00
%files
%doc doc/* featuremap.* README.md CHANGES.md
%license LICENSE
2019-03-06 13:30:07 +00:00
%{_bindir}/*
2019-03-31 14:02:46 +00:00
%{_libdir}/ocaml/%{libname}
2019-06-28 10:21:12 +00:00
#%{_libdir}/ocaml/%{libname}-lsp
2019-03-06 13:30:07 +00:00
%{_emacs_sitelispdir}/*
%{vimfiles_root}/*/*
%changelog
2020-08-21 11:55:28 +00:00
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 3.3.7-0.2.preview1
- OCaml 4.11.0 rebuild
2020-08-06 16:34:43 +00:00
* Fri Aug 7 2020 Robin Lee <cheeselee@fedoraproject.org> - 3.3.7-0.1.preview1
- Update to 3.3.7-preview1
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-04-18 02:00:38 +00:00
* Sat Apr 18 2020 Robin Lee <cheeselee@fedoraproject.org> - 3.3.4-1
- Update to 3.3.4 final
* Tue Mar 3 2020 Robin Lee <cheeselee@fedoraproject.org> - 3.3.4-0.1.preview1
- Update to 3.3.4-preview1, supports OCaml 4.10 (BZ#1799817, BZ#1809312)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Dec 1 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.3.3-1
- Release 3.3.3 (RHBZ#1778280)
- Fix Release tag (RHBZ#1777835)
2019-08-03 02:20:00 +00:00
* Sat Aug 3 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.3.2-1
- Update to 3.3.2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-28 10:21:12 +00:00
* Fri Jun 28 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.3.1-1
- Update to 3.3.1 (BZ#1703452)
2019-03-31 14:02:46 +00:00
* Sun Mar 31 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.2-2
- Fix ocaml library path
2019-03-06 13:30:07 +00:00
* Fri Mar 1 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.2-1
- Initial packaging