Enable bytecode builds.
- Disable the ocaml-camomile-data package on bytecode builds.
This commit is contained in:
parent
aa9a0752b7
commit
f70ead5cbd
@ -2,7 +2,7 @@
|
||||
|
||||
Name: ocaml-camomile
|
||||
Version: 0.8.5
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Unicode library for OCaml
|
||||
|
||||
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
|
||||
@ -15,8 +15,6 @@ Source0: http://downloads.sourceforge.net/camomile/camomile-%{version}.ta
|
||||
# Use ocamlopt -g option to enable debuginfo.
|
||||
Patch1: camomile-0.8.3-enable-debug.patch
|
||||
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
BuildRequires: ocaml >= 3.12.1-12
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
@ -40,6 +38,7 @@ The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%if %opt
|
||||
%package data
|
||||
Summary: Data files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
@ -48,6 +47,7 @@ Requires: %{name} = %{version}-%{release}
|
||||
%description data
|
||||
The %{name}-data package contains data files for developing
|
||||
applications that use %{name}.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
@ -60,7 +60,11 @@ applications that use %{name}.
|
||||
# Parallel builds don't work.
|
||||
unset MAKEFLAGS
|
||||
./configure --prefix=%{_prefix} --datadir=%{_datadir} --libdir=%{_libdir}
|
||||
%if %opt
|
||||
make
|
||||
%else
|
||||
make byte
|
||||
%endif
|
||||
make dochtml
|
||||
make man
|
||||
|
||||
@ -104,13 +108,19 @@ cp tools/camomilelocaledef.opt $RPM_BUILD_ROOT%{_bindir}/camomilelocaledef
|
||||
%{_libdir}/ocaml/camomile/*.mli
|
||||
|
||||
|
||||
%if %opt
|
||||
%files data
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_datadir}/camomile/
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-11
|
||||
- Enable bytecode builds.
|
||||
- Disable the ocaml-camomile-data package on bytecode builds.
|
||||
|
||||
* Tue Jun 23 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-10
|
||||
- Bump release and rebuild.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user