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

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

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

%set_verify_elf_method textrel=relaxed
Name: ocaml-expat
Version: 1.1.0
Release: alt2%ubt
Summary: OCaml wrapper for the Expat XML parsing library
License: MIT
Group: Development/ML

Url: http://www.xs4all.nl/~mmzeeman/ocaml/
Source0: %name-%version.tar

BuildRequires(pre):rpm-build-ubt
BuildRequires: ocaml
BuildRequires: ocaml-findlib-devel, libexpat-devel, chrpath
BuildRequires: util-linux-ng, gawk

%description
An ocaml wrapper for the Expat XML parsing library. It allows you to
write XML-Parsers using the SAX method. An XML document is parsed on
the fly without needing to load the entire XML-Tree into memory.

%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.

%prep
%setup

%build
make depend
make all \
 allopt \
 OCAMLC="ocamlc.opt -g" \
 OCAMLOPT="ocamlopt.opt -g"

%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%_libdir/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install

# Remove rpath from stublibs .so file.

chrpath --delete $RPM_BUILD_ROOT%_libdir/ocaml/stublibs/*.so

%files
%doc LICENCE README changelog
%_libdir/ocaml/expat
%_libdir/ocaml/stublibs/*.so
%_libdir/ocaml/stublibs/*.so.owner
%exclude %_libdir/ocaml/expat/*.a
%exclude %_libdir/ocaml/expat/*.cmxa
%exclude %_libdir/ocaml/expat/*.mli

%files devel
%doc LICENCE README changelog
%_libdir/ocaml/expat/*.a
%_libdir/ocaml/expat/*.cmxa
%_libdir/ocaml/expat/*.mli

%changelog

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

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