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

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

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

%set_verify_elf_method textrel=relaxed

Name:           ocaml-gsl
Version:        1.19.3
Release:        alt4%ubt
Summary:        Interface to GSL (GNU scientific library) for OCaml
Summary(ru_RU.UTF-8): п≤п╫я┌п╣я─я└п╣п╧я│ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╦ GSL п╢п╩я▐ OCaml
License:        GPLv2
Group:          Development/ML
Url:            http://mmottl.github.io/gsl-ocaml/

Provides: ocaml4-gsl
Obsoletes: ocaml4-gsl

Source: %name-%version.tar
Patch0: ocaml4-gsl-1.18.4-alt-compilation_fix.patch

# Automatically added by buildreq on Wed Jun 24 2015

BuildRequires: libgsl-devel ocaml-camlp4 ocaml-findlib ocaml-ocamlbuild ocaml-ocamldoc
BuildRequires(pre): rpm-build-ubt

%package devel
Summary: Development files for programs which will use the OcamlGSL library
Summary(ru_RU.UTF-8): п≈п╟пЁп╬п╩п╬п╡п╬я┤п╫я▀п╣ я└п╟п╧п╩я▀ п╢п╩я▐ п©я─п╬пЁя─п╟п╪п╪, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘ п╠п╦п╠п╩п╦п╬я┌п╣п╨я┐ OcamlGSL
Group: Development/ML
Requires: %name = %version-%release
Provides: ocaml-gsl-devel
Obsoletes: ocaml-gsl-devel
Conflicts: ocaml-gsl-devel

%description
This is an interface to GSL (GNU scientific library), for the
Objective Caml language.

%description devel
This package includes development files necessary for developing
programs which use interface to GSL (GNU scientific library)

%prep
%setup -q
%patch0 -p1

# п÷п╬я│п╨п╬п╩я▄п╨я┐ п╡ п╢п╦я│я┌я─п╦п╠я┐я┌п╦п╡п╣ ALT п╣я│я┌я▄ я┌п╬п╩я▄п╨п╬ ocamlfind-mini, п╦я│п©п╬п╩я▄п╥я┐п╣п╪ п╣пЁп╬.

sed -i s/ocamlfind/ocamlfind-mini/g Makefile

%build
%make

strip _build/src/dllgsl_stubs.so

%install
%define ocamlsitelib %_libdir/ocaml/site-lib
%define ocamlstublib %_libdir/ocaml/stublibs/
%define docdir %_docdir/%name-%version
export OCAMLFIND_DESTDIR=%buildroot%ocamlsitelib/
export DESTDIR=%buildroot
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs

%makeinstall

rm -f %buildroot%ocamlsitelib/gsl/*.annot
rm -f %buildroot%ocamlsitelib/gsl/*.cmx
rm -f %buildroot%ocamlsitelib/gsl/*.cmt
rm -f %buildroot%ocamlsitelib/gsl/*.cmti
rm -f %buildroot%ocamlsitelib/gsl/*.ml
rm -f %buildroot%ocamlsitelib/gsl/*.mli

mkdir -p %buildroot%ocamlstublib/
mv $OCAMLFIND_DESTDIR/stublibs/* %buildroot%ocamlstublib/

mkdir -p %buildroot/%docdir

%files
%doc COPYING.txt
%ocamlstublib/*.so
%ocamlstublib/*.so.owner
%dir %ocamlsitelib/gsl/
%ocamlsitelib/gsl/gsl.cma
%ocamlsitelib/gsl/gsl.cmxs
%ocamlsitelib/gsl/libgsl_stubs.a

%files devel
%ocamlsitelib/gsl/gsl.a
%ocamlsitelib/gsl/*.cmxa
%ocamlsitelib/gsl/*.cmi
%ocamlsitelib/gsl/META

%changelog

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

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