🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.caml
Article #25

Re: [Caml-list] Re: opam packages wrapped inside a spec file

#25
From: Malcolm Matalka
Date: Thu, 30 May 2013 20:11
66 lines
6288 bytes
Have you looked at fpm (https://github.com/jordansissel/fpm) for
producing RPMs and debs from an arbitrary directory structure?

/M

Florent Monnier <monnier.florent@gmail.com> writes:

> 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.77WHNt3l1RojaJEjMIFgWm7f+4c@ifi.uio.no>
Path: arc1-ca.pugleaf.net!hv6ni25271wib.1!nntp.google.com!goblin2!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
References: <fa.gVZ+H9BTN8dQmBcg8ku/ugt7rfk@ifi.uio.no>

Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,c9ffbdfa078e859f
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.180.206.107 with SMTP id ln11mr251709wic.7.1369944688242;
        Thu, 30 May 2013 13:11:28 -0700 (PDT)
Path: arc1-ca.pugleaf.net!hv6ni25271wib.1!nntp.google.com!goblin2!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Malcolm Matalka <mmatalka@gmail.com>
Newsgroups: fa.caml
Subject: Re: [Caml-list] Re: opam packages wrapped inside a spec file
Date: Thu, 30 May 2013 20:11:26 UTC
Organization: Internet mailing list
Lines: 66
Sender: caml-list-request@inria.fr
Message-ID: <fa.77WHNt3l1RojaJEjMIFgWm7f+4c@ifi.uio.no>
References: <fa.gVZ+H9BTN8dQmBcg8ku/ugt7rfk@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1369944686 5315 129.240.7.9 (30 May 2013 20:11:26 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 30 May 2013 20:11:26 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cc: Francois Berenger <berenger@riken.jp>,  caml-list@inria.fr
To: Florent Monnier <monnier.florent@gmail.com>
X-IronPort-AV: E=Sophos;i="4.87,772,1363129200"; 
   d="scan'208";a="19691813"
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: ArgAAEqxp1FKfVKyjWdsb2JhbABZFoJSUcIXfhYOAQEBAQcLCwkSBiSCIwEBBAFAARsdAQMBCwYFCw0JJQ8BBA0CEQEFASITG4dfAQMJBgELnTGMSIJ9hHoKGScNWId0AQUMjDiCWAeDVwOVWIFmjB2DPj+ENQ
X-IPAS-Result: ArgAAEqxp1FKfVKyjWdsb2JhbABZFoJSUcIXfhYOAQEBAQcLCwkSBiSCIwEBBAFAARsdAQMBCwYFCw0JJQ8BBA0CEQEFASITG4dfAQMJBgELnTGMSIJ9hHoKGScNWId0AQUMjDiCWAeDVwOVWIFmjB2DPj+ENQ
X-IronPort-AV: E=Sophos;i="4.87,772,1363129200"; 
   d="scan'208";a="16254780"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:to:cc:subject:references:date:in-reply-to:message-id
         :user-agent:mime-version:content-type;
        bh=QytgFX50DOM3tKBkGP7T4c3tTCTdl8WDVCd7zAs6rEQ=;
        b=QcBECwnWbKlY2meL7iETCxe7yFwbjBCr9h54UuOmLmwGe+IAo6EcAMYLRtDPl2L3CI
         SQxpNxi6VqpmgWqPMW57eJ0hkILJRJ3sqjnXb0GuOBhHETZ5PYt38ATVUqj5sN/5hHTP
         vwjDJZRX2zlUjqED/a44BiqZFiXVwEdcuQLZAV54L4IaCCtuFQlEB+XjKEjERrzFtbRZ
         Lh+93zfBtr/tdO5KiOcN3vlMtLsgaR9j+OpIPLUCFpOXfudkv7dPJdZlHJzkl8urC1mf
         4GXJDsT3Uk0ajS5195jO2Ht281PycWKmkm2jWAIqoQZsA1TEr7cNfOVaRVuhoVaqUcGP
         UPdA==
X-Received: by 10.194.110.133 with SMTP id ia5mr6388342wjb.35.1369944677463;
        Thu, 30 May 2013 13:11:17 -0700 (PDT)
In-Reply-To: <CAE1DttC84yoURMfXETFgjf93qNRPBhPD7mpHdt6vOtS9YQBY-w@mail.gmail.com>
 (Florent Monnier's message of "Thu, 30 May 2013 21:37:41 +0200")
X-Sequence: 6850
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 20:11:16 +0000
Original-Message-Id: <87obbsns7v.fsf@gmail.com>
Original-References: <CAE1DttC84yoURMfXETFgjf93qNRPBhPD7mpHdt6vOtS9YQBY-w@mail.gmail.com>
Content-Type: text/plain