Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37679247
en ru br
Репозитории ALT

Группа :: Разработка/ML
Пакет: ocaml-cstruct

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define  modulename cstruct

# TODO: async

%define opamodules cstruct,cstruct-unix,cstruct-lwt,cstruct-sexp
Name:    ocaml-%modulename
Version: 6.0.1
Release: alt1
Summary: access C-like structures directly from OCaml
License: ISC
Group:   Development/ML
URL:     https://github.com/mirage/ocaml-cstruct
Source:  %name-%version.tar
Patch0:   %name-%version-%release.patch
BuildRequires: dune
BuildRequires: ocaml-bigarray-compat-devel
BuildRequires: ocaml-fmt-devel
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-sexplib-devel
BuildRequires: ocaml-alcotest-devel
BuildRequires: ocaml-migrate-parsetree-devel
BuildRequires: ocaml-cppo
BuildRequires: ocaml-alcotest-devel
BuildPreReq: rpm-build-ocaml >= 1.1

%description
Cstruct is a library and syntax extension to make it easier to access C-like
structures directly from OCaml.  It supports both reading and writing to these
structures, and they are accessed via the `Bigarray` module.

%package devel
Summary: Development files for %name
Group: Development/ML
Requires: %name = %EVR

%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.

%prep
%setup
%patch0 -p1

%build
%dune_build -p %opamodules

%install
%dune_install `echo "%opamodules"|tr ',' ' '`

%check
%dune_check -p %opamodules

%files -f ocaml-files.runtime
%doc README.md
%_libdir/ocaml/%{modulename}/*.js

%files devel -f ocaml-files.devel

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin