Sisyphus repositório
Última atualização: 12 novembro 2019 | SRPMs: 17529 | Visitas: 15711786
en ru br
ALT Linux repositórios

Group :: Desenvolvimento/ML
RPM: ocaml-gettext

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%set_verify_elf_method textrel=relaxed
Name: ocaml-gettext
Version: 0.3.8
Release: alt1%ubt
Summary: OCaml library for i18n
Group: Development/ML

License: LGPLv2+ with exceptions

Source: %name-%version.tar

Patch1: ocaml-gettext-0.3.4-use-ocamlopt-g.patch
# Disable warning 31, so we can compile (with warnings) on OCaml 4.04.
Patch2: ocaml-gettext-0.3.5-disable-warning-31.patch

BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-fileutils-devel >= 0.4.4
BuildRequires: docbook-style-xsl
BuildRequires: xsltproc
BuildRequires: libxml2
BuildRequires: chrpath
BuildRequires: autoconf

Ocaml-gettext provides support for internationalization of Ocaml

Constraints :

* provides a pure Ocaml implementation,
* the API should be as close as possible to GNU gettext,
* provides a way to automatically extract translatable
 strings from Ocaml source code.

%package devel
Summary: Development files for %name
Group: Development/ML
Requires: %name = %version-%release

# BZ 446919.

Requires: ocaml-fileutils-devel >= 0.4.0

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


%patch1 -p1
%patch2 -p1

# Parallel builds don't work.
autoreconf -fisv
./configure \
 --libdir=%_libdir \
 --disable-camomile \
make all

# make install in the package is screwed up completely.  Install
# by hand instead.
export DESTDIR=%buildroot
export OCAMLFIND_DESTDIR=%buildroot%_libdir/ocaml
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p %buildroot%_bindir

# Remove *.o files - these shouldn't be distributed.

find _build -name '*.o' -exec rm {} \;

ocamlfind install gettext _build/lib/gettext/*
ocamlfind install gettext-stub _build/lib/gettext-stub/*
install -m 0755 _build/bin/ocaml-gettext %buildroot%_bindir/
install -m 0755 _build/bin/ocaml-xgettext %buildroot%_bindir/

chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so

%exclude %_libdir/ocaml/gettext/*.a
%exclude %_libdir/ocaml/gettext/*.cmxa
%exclude %_libdir/ocaml/gettext/*.cmx
%exclude %_libdir/ocaml/gettext-stub/*.a
%exclude %_libdir/ocaml/gettext-stub/*.cmxa
%exclude %_libdir/ocaml/gettext-stub/*.cmx
%exclude %_libdir/ocaml/gettext/*.ml
%exclude %_libdir/ocaml/gettext/*.mli
%exclude %_libdir/ocaml/gettext-stub/*.ml

%files devel
# %doc build/share/doc/html/*


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009