building rpm from zip file

Jordan Sissel jls at semicomplete.com
Wed Aug 1 16:45:30 UTC 2012


On Tue, Jul 31, 2012 at 9:38 PM, Zippy Zeppoli <zippyzeppoli at gmail.com>wrote:

> Hi List,
> I was wondering, is there a way to take a zip file that just needs to be
> extracted to a given directory and build the rpm based off the zip file
> without creating a spec file?
>
> I saw in some documentation the use of a command as follows:
>
> rpmbuild -tb somezip.zip
>
> I looked in the man page but didn't see a description for -tb. Is this a
> valid usage?
>
>
I don't have zip support in fpm, yet, but you could do this:

% unzip foo-1.2.3.zip
% fpm -s dir -t rpm -n foo -v 1.2.3 ./

For more details: https://github.com/jordansissel/fpm

-Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20120801/7ab704b5/attachment.html>


More information about the Rpm-list mailing list