Initial import.
This commit is contained in:
parent
989962af11
commit
b721b3ba39
|
@ -0,0 +1,2 @@
|
|||
*.src.rpm
|
||||
/charInfo_width-1.1.0.tar.gz
|
|
@ -0,0 +1,74 @@
|
|||
# version 1.1.0
|
||||
%global commit 6a2ed28ba68cddab6927ac27a9b991f01ea85ec5
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:12})
|
||||
|
||||
Name: ocaml-charinfo-width
|
||||
Version: 1.1.0
|
||||
Release: 1%{?dist}
|
||||
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
|
||||
* Thu Jul 18 2019 Ben Rosser <rosser.bjr@gmail.com> - 1.1.0-1
|
||||
- Initial package.
|
Loading…
Reference in New Issue