[packages/opam: 2/2] use clean tarball, refer to ext_src urls from src.rpm
glen
glen at pld-linux.org
Sat Nov 23 18:20:43 CET 2013
commit 63bf1a1c49c93f60c6884b6b8f10ffd397d78a2e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 23 19:20:21 2013 +0200
use clean tarball, refer to ext_src urls from src.rpm
opam.spec | 33 +++++++++++++++++++++++++++------
1 file changed, 27 insertions(+), 6 deletions(-)
---
diff --git a/opam.spec b/opam.spec
index 0219f6e..5c889cd 100644
--- a/opam.spec
+++ b/opam.spec
@@ -1,19 +1,33 @@
-#
+# TODO:
+# - handle building without external deps. possible?
+
# Conditional build:
%bcond_without doc # do not build doc
Summary: A source-based package manager for OCaml
Name: opam
Version: 1.1.0
-Release: 0.1
+Release: 1
License: GPL
Group: Applications
-Source0: http://www.ocamlpro.com/pub/%{name}-full-%{version}.tar.gz
-# Source0-md5: 272aa408dcc77464ebf884aa44129b46
+Source0: https://github.com/ocaml/opam/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 8a6d9eae64fa1f88cddb5c96d8d96a80
+Source1: https://gforge.inria.fr/frs/download.php/31910/cudf-0.6.3.tar.gz
+# Source1-md5: 40c4e2c50ea96d0c9e565db16d20639a
+Source2: http://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz
+# Source2-md5: 3de5f4e0a95fda7b2f3819c4a655b17c
+Source3: https://github.com/ocaml/ocaml-re/archive/ocaml-re-1.2.0.tar.gz
+# Source3-md5: 5cbfc137683ef2b0e91f931577f2e673
+Source4: http://pkgs.fedoraproject.org/repo/pkgs/ocaml-ocamlgraph/ocamlgraph-1.8.1.tar.gz/5aa256e9587a6d264d189418230af698/ocamlgraph-1.8.1.tar.gz
+# Source4-md5: 5aa256e9587a6d264d189418230af698
+Source5: https://gforge.inria.fr/frs/download.php/31595/dose3-3.1.2.tar.gz
+# Source5-md5: e98ff720fcc3873def46c85c6a980a1b
+Source6: http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.3.tbz
+# Source6-md5: d63dd3b03966d65fc242246859c831c7
URL: http://opam.ocamlpro.com/
-BuildRequires: ocaml-camlp4
BuildRequires: hevea
BuildRequires: ocaml
+BuildRequires: ocaml-camlp4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -52,7 +66,14 @@ BuildArch: noarch
The %{name}-doc package contains documentation for using %{name}.
%prep
-%setup -q -n %{name}-full-%{version}
+%setup -q
+
+ln -s %{SOURCE1} src_ext
+ln -s %{SOURCE2} src_ext
+ln -s %{SOURCE3} src_ext
+ln -s %{SOURCE4} src_ext
+ln -s %{SOURCE5} src_ext
+ln -s %{SOURCE6} src_ext
%build
%configure
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opam.git/commitdiff/63bf1a1c49c93f60c6884b6b8f10ffd397d78a2e
More information about the pld-cvs-commit
mailing list