2019-07-26 21:28:56 +00:00
|
|
|
# version 1.1.0
|
|
|
|
%global commit 6a2ed28ba68cddab6927ac27a9b991f01ea85ec5
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:12})
|
|
|
|
|
|
|
|
Name: ocaml-charinfo-width
|
|
|
|
Version: 1.1.0
|
2019-08-11 22:11:10 +00:00
|
|
|
Release: 3%{?dist}
|
2019-07-26 21:28:56 +00:00
|
|
|
Summary: Determine column width for a character
|
|
|
|
|
|
|
|
%global libname charInfo_width
|
|
|
|
|
|
|
|
# MIT-licensed according to opam metadata.
|
|
|
|
# Issue filed here: https://bitbucket.org/zandoye/charinfo_width/issues/1/include-mit-license-copying-file
|
|
|
|
License: MIT
|
|
|
|
URL: https://bitbucket.org/zandoye/charinfo_width/
|
|
|
|
Source0: https://bitbucket.org/zandoye/charinfo_width/get/%{version}.tar.gz#/%{libname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-result-devel
|
|
|
|
BuildRequires: ocaml-camomile-devel
|
|
|
|
|
|
|
|
BuildRequires: ocaml-dune
|
|
|
|
|
|
|
|
%description
|
|
|
|
Determine column width for a character
|
|
|
|
|
|
|
|
This module is implemented purely in OCaml and the width function
|
|
|
|
follows the prototype of POSIX's wcwidth.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and
|
|
|
|
signature files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n zandoye-charinfo_width-%{shortcommit}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# It might be nice to have a %jbuilder macro that just does this.
|
|
|
|
dune build -p %{libname} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/ocaml/%{libname}/
|
|
|
|
cp -aLr _build/install/default/lib/%{libname}/* %{buildroot}%{_libdir}/ocaml/%{libname}/
|
|
|
|
|
|
|
|
%files
|
|
|
|
#license LICENSE
|
|
|
|
%doc README.md CHANGES.md
|
|
|
|
%{_libdir}/ocaml/%{libname}
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.cmx
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
#license LICENSE
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/*/*.a
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
|
|
|
%{_libdir}/ocaml/*/*.cmx
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/*/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-08-11 22:11:10 +00:00
|
|
|
* Sun Aug 11 2019 Ben Rosser <rosser.bjr@gmail.com> - 1.1.0-3
|
|
|
|
- Rebuilt for camomile 1.0.2.
|
|
|
|
|
2019-08-01 08:37:07 +00:00
|
|
|
* Thu Aug 01 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-2
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
2019-07-26 21:28:56 +00:00
|
|
|
* Thu Jul 18 2019 Ben Rosser <rosser.bjr@gmail.com> - 1.1.0-1
|
|
|
|
- Initial package.
|