Article View: fa.caml
Article #24Re: [Caml-list] Re: opam packages wrapped inside a spec file
From: Florent Monnier
Date: Thu, 30 May 2013 20:06
Date: Thu, 30 May 2013 20:06
59 lines
5705 bytes
5705 bytes
2013/05/30, Francois Berenger wrote: > On 05/30/2013 06:29 AM, Florent Monnier wrote: [...] >> For fun I've played with wrapping an opam package inside a rpm package. >> I just have to tar.gz the package directory and in the .spec file, sed >> the archive field for a file:// path (because not allowed to get >> something from outside) seded with the archives in the SOURCES >> directory of the rpm package. I init Opam and repo remove the internet >> one (again nothing from outside), then install in the path that >> rpmbuild wants. >> There is still one detail that won't be able to be done by a script >> it's when there's a C lib dependency, because Opam don't provide yet >> any feature for this. But this will probably come for 2.0. So it's >> potentially possible to create .rpm's for all Opam packages with >> almost no or very few human work. This kind of rpm's won't fit the >> Mageia packaging policy though, but we could change it to allow this, >> or put an unofficial rpm repo somewhere else. > > Will this procedure be automated? > > Automatic creation of RPMs from OPAM packages. > I am very interested by this. Here is the early result of playing with this: http://www.linux-nantes.org/%7Efmonnier/ocaml/opam/wrap-rpm/ you can see it's only the opam package wrapped inside a .spec file. A more clean solution would of course to make an opam2spec script to really create a .spec file that would look very close to a human made spec file. But I think that this second solution would need more human work thant the dirty one. This second would maybe even take as many time as if it's completely made by hand because there would be more details to edit I think. And the dirty wrap method has also the advantage to stay very close to the original one. > Will this procedure be automated? This one seems to give an acceptable result. (only README LICENSE and api-doc are missing) I guess this one could be used as a template by a script for the others. > Automatic creation of RPMs from OPAM packages. > I am very interested by this. need to add the homepages and licenses fields in opam files if we want this script to be able to fill the equivalent fields of the .spec files. Also the C lib dependency needs to be found to add the BuildRequires fields. Otherwise it seems that most of it can be automated. -- -- Caml-list mailing list. Subscription management and archives: https://sympa.inria.fr/sympa/arc/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
Technical Details
Message-ID:
<fa.gVZ+H9BTN8dQmBcg8ku/ugt7rfk@ifi.uio.no>Path:
arc1-ca.pugleaf.net!d5ni22557pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,c9ffbdfa078e859f,start
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.68.198.5 with SMTP id iy5mr1574223pbc.3.1369944371750;
Thu, 30 May 2013 13:06:11 -0700 (PDT)
Path: arc1-ca.pugleaf.net!d5ni22557pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Florent Monnier <monnier.florent@gmail.com>
Newsgroups: fa.caml
Subject: Re: [Caml-list] Re: opam packages wrapped inside a spec file
Date: Thu, 30 May 2013 20:06:11 UTC
Organization: Internet mailing list
Lines: 59
Sender: caml-list-request@inria.fr
Message-ID: <fa.gVZ+H9BTN8dQmBcg8ku/ugt7rfk@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1369944371 5058 129.240.7.9 (30 May 2013 20:06:11 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 30 May 2013 20:06:11 +0000 (UTC)
Cc: caml-list@inria.fr
To: Francois Berenger <berenger@riken.jp>
X-IronPort-AV: E=Sophos;i="4.87,772,1363129200";
d="scan'208";a="19691358"
X-Original-To: caml-list@sympa.inria.fr
Delivered-To: caml-list@sympa.inria.fr
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AoUDAPupp1HRVdSzjWdsb2JhbABZFoMjs0aOSAQEAXYIFg4BAQEBBwsLCRIGJIIjAQEEQQEbHQEDAREFCw1QAREBBQEiLodfAQMJBgydQoxIgn2EdwoZJw1Yh3QBBQyPEINeA5c+j1sWKYQ3Og
X-IPAS-Result: AoUDAPupp1HRVdSzjWdsb2JhbABZFoMjs0aOSAQEAXYIFg4BAQEBBwsLCRIGJIIjAQEEQQEbHQEDAREFCw1QAREBBQEiLodfAQMJBgydQoxIgn2EdwoZJw1Yh3QBBQyPEINeA5c+j1sWKYQ3Og
X-IronPort-AV: E=Sophos;i="4.87,772,1363129200";
d="scan'208";a="19689184"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:cc:content-type;
bh=QugqKeUxu+y5HDahMTsOv0r2tnBJGkptY+fvUWFLlv4=;
b=rKzj6Vy12j5qMx7P9yZcjuPFSHf1oEftuHyMgvmpr4tfs1nu3V+s/VVwYCOotsf8ob
4Up/I4uxSWFDul4j3XkwoXvqtjFwSd70w0YNEB8/4fPu0TF2HnlMg4scI1efaeuS/b6y
pz8ZYIDmIivxsDu1bDeXxM83FpDxR9tWkLfZeKxJ6/7g14UFB9uwvZun3kwJETYqyU6m
5HqrWNP7cd+4xhZkFJqIoj/vwDycv/OMVEgGQoO4HKCPoX2ntAhF2pHEH/3lRnPqCP1z
t6jjWEUggZ74rJQ/QAz4MJMxr/iElY5ZcSG55zJ5AIiRl8LnuLDHcNRmkdNbzKPVHpyf
RXeg==
X-Received: by 10.180.79.200 with SMTP id l8mr131826wix.60.1369942661757; Thu,
30 May 2013 12:37:41 -0700 (PDT)
X-Validation-by: monnier.florent@gmail.com
X-Sequence: 6849
X-no-archive: yes
List-Id: <caml-list.inria.fr>
List-Archive: <http://sympa.inria.fr/sympa/arc/caml-list>
List-Help: <mailto:sympa_inria@inria.fr?subject=help>
List-Owner: <mailto:caml-list-request@inria.fr>
List-Post: <mailto:caml-list@inria.fr>
List-Subscribe: <mailto:sympa_inria@inria.fr?subject=subscribe%20caml-list>
List-Unsubscribe: <mailto:sympa_inria@inria.fr?subject=unsubscribe%20caml-list>
Original-Date: Thu, 30 May 2013 21:37:41 +0200
Original-Message-Id: <CAE1DttC84yoURMfXETFgjf93qNRPBhPD7mpHdt6vOtS9YQBY-w@mail.gmail.com>
Bytes: 5399
Content-Type: text/plain; charset=ISO-8859-1