SCIENTIFIC-LINUX-USERS Archives

May 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Sommerseth <[log in to unmask]>
Reply To:
David Sommerseth <[log in to unmask]>
Date:
Sat, 23 May 2015 07:49:56 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On 23 May 2015 08:13:40 CEST, ToddAndMargo <[log in to unmask]> wrote:
>Hi All,
>
>I have a src rpm.  What is the easiest way to go into it,
>edit the spec file, get back out?
>
>Many thanks,
>-T


As your ordinary user (not root):

$ rpm -i whatever.src.rpm
$ cd ~/rpmbuild/SPECS
$ vim/emacs/gedit whatever.spec
$ rpmbuild -bs whatever.spec

Remeber that you should normally increase the Release tag number and add an entry in the %changelog section towards the end. You can alsorun rpmlint on the spec file to do some sanity checks.
--
kind regards,

David Sommerseth

ATOM RSS1 RSS2