- Bump release and rebuild for new OCaml on ARM.
- Enable ppc64 support for camomile.
This commit is contained in:
parent
0411e7864f
commit
490a3ee3ad
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: ocaml-gettext
|
Name: ocaml-gettext
|
||||||
Version: 0.3.4
|
Version: 0.3.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: OCaml library for i18n
|
Summary: OCaml library for i18n
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -25,19 +25,11 @@ BuildRequires: libxml2
|
|||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
|
|
||||||
# When https://bugzilla.redhat.com/show_bug.cgi?id=438486 is fixed
|
|
||||||
# we can remove the ifarch ppc64 stuff in this file. In the meantime
|
|
||||||
# we have to build without camomile on ppc64.
|
|
||||||
%ifnarch ppc64
|
|
||||||
BuildRequires: ocaml-camomile-devel >= 0.8.1
|
BuildRequires: ocaml-camomile-devel >= 0.8.1
|
||||||
BuildRequires: ocaml-camomile-data
|
BuildRequires: ocaml-camomile-data
|
||||||
%endif
|
|
||||||
|
|
||||||
# ocaml-gettext program needs camomile data files, but only if it was
|
# ocaml-gettext program needs camomile data files
|
||||||
# compiled with camomile (hence not on ppc64 - see above). BZ 446919.
|
|
||||||
%ifnarch ppc64
|
|
||||||
Requires: ocaml-camomile-data
|
Requires: ocaml-camomile-data
|
||||||
%endif
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
|
||||||
@ -70,7 +62,6 @@ The %{name}-devel package contains libraries and signature files for
|
|||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
%ifnarch ppc64
|
|
||||||
%package camomile
|
%package camomile
|
||||||
Summary: Parts of %{name} which depend on Camomile
|
Summary: Parts of %{name} which depend on Camomile
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -92,7 +83,6 @@ Requires: %{name}-devel = %{version}-%{release}
|
|||||||
The %{name}-camomile-devel package contains libraries and
|
The %{name}-camomile-devel package contains libraries and
|
||||||
signature files for developing applications that use
|
signature files for developing applications that use
|
||||||
%{name}-camomile.
|
%{name}-camomile.
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -103,20 +93,14 @@ signature files for developing applications that use
|
|||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
%ifarch ppc64
|
|
||||||
--disable-camomile \
|
|
||||||
%else
|
|
||||||
--enable-test \
|
--enable-test \
|
||||||
%endif
|
|
||||||
--with-docbook-stylesheet=/usr/share/sgml/docbook/xsl-stylesheets
|
--with-docbook-stylesheet=/usr/share/sgml/docbook/xsl-stylesheets
|
||||||
make all
|
make all
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%ifnarch ppc64
|
|
||||||
pushd test
|
pushd test
|
||||||
../_build/bin/test
|
../_build/bin/test
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -134,9 +118,7 @@ find _build -name '*.o' -exec rm {} \;
|
|||||||
|
|
||||||
ocamlfind install gettext _build/lib/gettext/*
|
ocamlfind install gettext _build/lib/gettext/*
|
||||||
ocamlfind install gettext-stub _build/lib/gettext-stub/*
|
ocamlfind install gettext-stub _build/lib/gettext-stub/*
|
||||||
%ifnarch ppc64
|
|
||||||
ocamlfind install gettext-camomile _build/lib/gettext-camomile/*
|
ocamlfind install gettext-camomile _build/lib/gettext-camomile/*
|
||||||
%endif
|
|
||||||
install -m 0755 _build/bin/ocaml-gettext $RPM_BUILD_ROOT%{_bindir}/
|
install -m 0755 _build/bin/ocaml-gettext $RPM_BUILD_ROOT%{_bindir}/
|
||||||
install -m 0755 _build/bin/ocaml-xgettext $RPM_BUILD_ROOT%{_bindir}/
|
install -m 0755 _build/bin/ocaml-xgettext $RPM_BUILD_ROOT%{_bindir}/
|
||||||
|
|
||||||
@ -188,7 +170,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/ocaml-xgettext
|
%{_bindir}/ocaml-xgettext
|
||||||
|
|
||||||
|
|
||||||
%ifnarch ppc64
|
|
||||||
%files camomile
|
%files camomile
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
@ -210,10 +191,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/ocaml/gettext-camomile/*.cmx
|
%{_libdir}/ocaml/gettext-camomile/*.cmx
|
||||||
%endif
|
%endif
|
||||||
%{_libdir}/ocaml/gettext-camomile/*.mli
|
%{_libdir}/ocaml/gettext-camomile/*.mli
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-2
|
||||||
|
- Bump release and rebuild for new OCaml on ARM.
|
||||||
|
- Enable ppc64 support for camomile.
|
||||||
|
|
||||||
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-1
|
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-1
|
||||||
- New upstream version 0.3.4.
|
- New upstream version 0.3.4.
|
||||||
- Remove patch, now upstream.
|
- Remove patch, now upstream.
|
||||||
|
Loading…
Reference in New Issue
Block a user