Linux / UNIX Tech Support Forum
This is a discussion on How to apply patch to rpm spec file. within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi I have src.rpm and patch for rpm spec file. How can i apply the patch to spec file itself ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
I have src.rpm and patch for rpm spec file. How can i apply the patch to spec file itself when building binary rpms ?(other than patch command). Can anyone help to me ? |
| Sponsored Links | ||
|
|
|
||||
|
You cannot apply patch while building same rpm file. Are you talking about 3rd spec file?
__________________
Vivek Gite Linux Evangelist |
|
||||
|
Not really, you've to use the patch command or write a shell script wrapper:
Code:
#!/bin/bash SPEC=/path/to/foo.spec patch -p1 < $SPEC rpmbuild -bb $SPEC
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| centos , rebuilding rpms , redhat , rhel , rpm , spec , src.rpm |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference of two directories, compressing and creating a patch file | Phanindra | Shell scripting | 1 | 04-09-2009 12:02 PM |
| CentOS Linux Kernel Patch Update | Rahul.Kolan | CentOS / RHEL / Fedora | 7 | 27-08-2008 07:34 PM |
| shell script to search specific file from txt file inside zip file and extract it | aasif.shaikh | Shell scripting | 2 | 31-05-2008 06:44 PM |
| Apply CentOS Linux package security updates from the Internet | raj | CentOS / RHEL / Fedora | 0 | 22-04-2008 01:53 AM |
| Daylight patch for Linux | sweta | Linux software | 1 | 22-03-2007 12:56 AM |