Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37410946
en ru br
Репозитории ALT
S:1.2.4-alt2
5.1: 1.0.4-alt4
4.1: 1.0.4-alt4
4.0: 1.0.4-alt3
www.altlinux.org/Changes

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

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

%set_verify_elf_method textrel=relaxed

Name: ocaml-mysql
Version: 1.2.4
Release: alt2

Summary: MySQL bindings for OCaml
License: LGPLv2.1
Group: Development/ML

URL: http://ygrek.org.ua/p/ocaml-mysql/
# https://github.com/ygrek/ocaml-mysql
Source: ocaml-mysql-%version.tar
Patch0: ocaml-mysql-1.2.2-alt-mysql8-transition.patch

Requires: %name-runtime = %version-%release

BuildRequires: ocaml-findlib libMySQL-devel zlib-devel chrpath

%package runtime
Summary: MySQL bindings for OCaml
Group: Development/ML
Conflicts: %name < %version-%release

%description
ocaml-mysql is a package for OCaml that provides access to MySQL
databases. It consists of low level functions implemented in C and
a module Mysql intended for application development.

%description runtime
ocaml-mysql is a package for OCaml that provides access to MySQL
databases. It consists of low level functions implemented in C and
a module Mysql intended for application development.

%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}

%prep
%setup -q

%patch0 -p0

%build
%configure
make all opt

%install
export OCAMLFIND_LDCONF=ignore
export OCAMLFIND_DESTDIR=%buildroot%_libdir/ocaml/site-lib
mkdir -p $OCAMLFIND_DESTDIR
%makeinstall_std

#remove rpath

chrpath -d %buildroot%_libdir/ocaml/site-lib/mysql/dllmysql_stubs.so

# move runtime to stublibs

mkdir -p %buildroot%_libdir/ocaml/stublibs
mv %buildroot%_libdir/ocaml/site-lib/mysql/dllmysql_stubs.so %buildroot%_libdir/ocaml/stublibs

%files
%dir %_libdir/ocaml/site-lib/mysql
%_libdir/ocaml/site-lib/mysql/*
%doc CHANGES README

%files runtime
%_libdir/ocaml/stublibs/dll*.so

%changelog

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

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