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

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
Url: http://forge.ocamlcore.org/projects/ocaml-gettext

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
BuildRequires(pre):rpm-build-ubt

%description
Ocaml-gettext provides support for internationalization of Ocaml
programs.

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.

%prep
%setup

%patch1 -p1
%patch2 -p1

%build
# Parallel builds don't work.
unset MAKEFLAGS
autoreconf -fisv
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
 --libdir=%_libdir \
 --disable-camomile \
 --with-docbook-stylesheet=%_datadir/sgml/docbook/xsl-stylesheets
make all

%install
# 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

%files
%doc COPYING
%_libdir/ocaml/gettext
%_libdir/ocaml/gettext-stub
%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
%_libdir/ocaml/stublibs/*.so
%_libdir/ocaml/stublibs/*.so.owner

%files devel
%doc README CHANGELOG TODO
# %doc build/share/doc/html/*
%_libdir/ocaml/gettext/*.a
%_libdir/ocaml/gettext/*.cmxa
%_libdir/ocaml/gettext/*.cmx
%_libdir/ocaml/gettext-stub/*.a
%_libdir/ocaml/gettext-stub/*.cmxa
%_libdir/ocaml/gettext-stub/*.cmx
%_libdir/ocaml/gettext/*.ml
%_libdir/ocaml/gettext/*.mli
%_libdir/ocaml/gettext-stub/*.ml
%_bindir/ocaml-gettext
%_bindir/ocaml-xgettext

%changelog

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