Репозиторий Sisyphus
Последнее обновление: 22 июня 2018 | Пакетов: 18577 | Посещений: 11730073
en ru br
Репозитории ALT

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

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

%set_verify_elf_method textrel=relaxed
Name: ocaml-cmdliner
Version: 1.0.2
Release: alt2%ubt
Summary: Declarative definition of command line interfaces for OCaml

# In order for this to work as a "global" macro it has to come after the

# definition of Name:, evidently.
%global libname %(echo %name | sed -e 's/^ocaml-//')

License: ISC
Url: https://github.com/dbuenzli/cmdliner/
Source0: %name-%version.tar
Group: Development/ML

BuildRequires: ocaml
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-result-devel
BuildRequires(pre): rpm-build-ubt

Cmdliner allows the declarative definition of command line
interfaces for OCaml.

It provides a simple and compositional mechanism to convert
command line arguments to OCaml values and pass them to your
functions. The module automatically handles syntax errors,
help messages and UNIX man page generation. It supports
programs with single or multiple commands and respects
most of the POSIX and GNU conventions.

Cmdliner has no dependencies and is distributed under
the ISC license.

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

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


# The makefile requires some cleanup to put things in correct place.

sed 's,/lib/,/%_lib/,g' -i Makefile

# Enable debuginfo generation.

sed 's/, package(result)/, package(result), debug/g' -i _tags
sed 's/ocamlbuild/ocamlbuild -lflag -g/g' -i Makefile

# Use install -p.

sed 's/INSTALL=install/INSTALL=install -p/g' -i Makefile

make build-byte
make build-native
make build-native-dynlink

make install-common DESTDIR=%buildroot
make install-byte DESTDIR=%buildroot
make install-native DESTDIR=%buildroot
make install-native-dynlink DESTDIR=%buildroot

# Fix some spurious executable perms?

chmod -x %buildroot%_libdir/ocaml/%libname/*.cmx
chmod -x %buildroot%_libdir/ocaml/%libname/*.cmxa
chmod -x %buildroot%_libdir/ocaml/%libname/*.mli
chmod -x %buildroot%_libdir/ocaml/%libname/*.a
chmod -x %buildroot%_libdir/ocaml/%libname/META
chmod -x %buildroot%_libdir/ocaml/%libname/opam

%exclude %_libdir/ocaml/%libname/*.a
%exclude %_libdir/ocaml/%libname/*.cmxa
%exclude %_libdir/ocaml/%libname/*.cmx
%exclude %_libdir/ocaml/%libname/*.mli

%files devel


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

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