Группа :: Разработка/ML
Пакет: ocaml-ocplib-endian
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%set_verify_elf_method textrel=relaxed
%define pkgname ocplib-endian
Name: ocaml-%pkgname
Version: 1.0
Release: alt1
Summary: Functions to read/write int16/32/64 from strings, bigarrays
License: LGPLv2+
Group: Development/ML
Url: https://github.com/OCamlPro/ocplib-endian
Source0: %name-%version.tar
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-cppo
BuildRequires: ocaml-ocamlbuild-devel
BuildRequires: ocaml-ocamldoc
%description
Optimised functions to read and write int16/32/64 from strings,
bytes and bigarrays, based on primitives added in version 4.01.
The library implements three modules:
EndianString works directly on strings, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBytes works directly on bytes, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBigstring works on bigstrings (Bigarrays of chars),
and provides submodules BigEndian and LittleEndian, with their
unsafe counter-parts;
%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
%build
ocaml setup.ml -configure --enable-tests
%make_build build
%install
export OCAMLFIND_DESTDIR=%buildroot%_libdir/ocaml
mkdir -p $OCAMLFIND_DESTDIR
make install DESTDIR=%buildroot
%check
make test
%files
%doc COPYING.txt README.md CHANGES.md
%_libdir/ocaml/%pkgname
%exclude %_libdir/ocaml/%pkgname/*.a
%exclude %_libdir/ocaml/%pkgname/*.cmxa
%exclude %_libdir/ocaml/%pkgname/*.cmx
%exclude %_libdir/ocaml/%pkgname/*.mli
%files devel
%_libdir/ocaml/%pkgname/*.a
%_libdir/ocaml/%pkgname/*.cmxa
%_libdir/ocaml/%pkgname/*.cmx
%_libdir/ocaml/%pkgname/*.mli
%changelog
…
Полный changelog можно просмотреть здесь
%define pkgname ocplib-endian
Name: ocaml-%pkgname
Version: 1.0
Release: alt1
Summary: Functions to read/write int16/32/64 from strings, bigarrays
License: LGPLv2+
Group: Development/ML
Url: https://github.com/OCamlPro/ocplib-endian
Source0: %name-%version.tar
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-cppo
BuildRequires: ocaml-ocamlbuild-devel
BuildRequires: ocaml-ocamldoc
%description
Optimised functions to read and write int16/32/64 from strings,
bytes and bigarrays, based on primitives added in version 4.01.
The library implements three modules:
EndianString works directly on strings, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBytes works directly on bytes, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBigstring works on bigstrings (Bigarrays of chars),
and provides submodules BigEndian and LittleEndian, with their
unsafe counter-parts;
%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
%build
ocaml setup.ml -configure --enable-tests
%make_build build
%install
export OCAMLFIND_DESTDIR=%buildroot%_libdir/ocaml
mkdir -p $OCAMLFIND_DESTDIR
make install DESTDIR=%buildroot
%check
make test
%files
%doc COPYING.txt README.md CHANGES.md
%_libdir/ocaml/%pkgname
%exclude %_libdir/ocaml/%pkgname/*.a
%exclude %_libdir/ocaml/%pkgname/*.cmxa
%exclude %_libdir/ocaml/%pkgname/*.cmx
%exclude %_libdir/ocaml/%pkgname/*.mli
%files devel
%_libdir/ocaml/%pkgname/*.a
%_libdir/ocaml/%pkgname/*.cmxa
%_libdir/ocaml/%pkgname/*.cmx
%_libdir/ocaml/%pkgname/*.mli
%changelog
…
Полный changelog можно просмотреть здесь