- ocaml-runtime provides ocaml(runtime) = 3.10.0, and
ocaml-find-requires.sh modified so that it adds this requires to other packages. Now can upgrade base ocaml packages without needing to rebuild everything else.
This commit is contained in:
parent
6a495c8e9b
commit
34cb4f24e6
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -
|
||||
# OCaml-specific "find-requires" for RPM.
|
||||
# By Richard W.M. Jones <rjones@redhat.com>
|
||||
# $Id: ocaml-find-requires.sh,v 1.7 2007/06/11 15:03:17 rjones Exp $
|
||||
# $Id: ocaml-find-requires.sh,v 1.1 2007/07/02 15:13:39 gemi Exp $
|
||||
|
||||
#set -x
|
||||
|
||||
@ -66,8 +66,7 @@ grep -Ev "$ignore_modules_re" |
|
||||
sort -u
|
||||
|
||||
if [ -n "$emit_compiler_version" ]; then
|
||||
# Every OCaml program depends on the precise version of the
|
||||
# compiler which was used to compile it.
|
||||
# rpm -q --qf '%{NAME} = %{VERSION}-%{RELEASE}\n' ocaml
|
||||
echo "ocaml = `cat /usr/lib*/ocaml/fedora-ocaml-release`"
|
||||
# Every OCaml program depends on the version of the
|
||||
# runtime which was used to compile it.
|
||||
echo "ocaml(runtime) = `cat /usr/lib*/ocaml/fedora-ocaml-release`"
|
||||
fi
|
||||
|
10
ocaml.spec
10
ocaml.spec
@ -1,6 +1,6 @@
|
||||
Name: ocaml
|
||||
Version: 3.10.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
|
||||
Summary: Objective Caml compiler and programming environment
|
||||
|
||||
@ -38,6 +38,7 @@ BuildRequires: mesa-libGLU-devel
|
||||
Requires: gcc
|
||||
Requires: ncurses-devel
|
||||
Requires: gdbm-devel
|
||||
Provides: ocaml(compiler) = %{version}
|
||||
ExcludeArch: ppc64
|
||||
|
||||
%description
|
||||
@ -54,6 +55,7 @@ and a comprehensive library.
|
||||
Group: System Environment/Libraries
|
||||
Summary: Objective Caml runtime environment
|
||||
Requires: util-linux-ng
|
||||
Provides: ocaml(runtime) = %{version}
|
||||
|
||||
%description runtime
|
||||
Objective Caml is a high-level, strongly-typed, functional and
|
||||
@ -421,6 +423,12 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 3.10.0-6
|
||||
- ocaml-runtime provides ocaml(runtime) = 3.10.0, and
|
||||
ocaml-find-requires.sh modified so that it adds this requires
|
||||
to other packages. Now can upgrade base ocaml packages without
|
||||
needing to rebuild everything else.
|
||||
|
||||
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 3.10.0-5
|
||||
- Don't include the release number in fedora-ocaml-release file, so
|
||||
that packages built against this won't depend on the Fedora release.
|
||||
|
Loading…
Reference in New Issue
Block a user