Reputation: 105
I am modifying gnome-shell-3.8.xx.rpm package. I have created several patches for rpm and they are working fine. Now I want to add new source file in rpm but I am not able to find how to do it?
For patches I have followed below approach:
Upvotes: 4
Views: 6142
Reputation: 17407
Drop your patch or any other file you want to include (RPM) put all them in SOURCE directory
../SOURCES/package-1.0-my.patch
../SOURCES/service.init
Add in SPEC file
Source1: service.init
Patch0: package-1.0-my.patch
Add in %pre
section:
%prep
%setup ...
%patch0 -p1
...
...
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/service.init
Build RPM:
rpmbuild -ba ../SPEC/package.spec
Notes: Above Source1
is example you can use your file name instead of service.init
and change path to install specific location
Upvotes: 4