N
N
niknik112017-03-24 10:51:31
Building projects
niknik11, 2017-03-24 10:51:31

How to build rpm?

There is a project (code in python)
When building an rpm, you need to:
change file A (there are diffs)
add file B
How to describe this in a spec file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Axian Ltd., 2017-03-24
@AxianLTD

Perform an action after uploading files
%post -p /usr/bin/patch ...
Well, remove the delta file after checking the success of patch

C
CityCat4, 2017-03-24
@CityCat4

Of course, I don't know how correct this is, but looking at other people's specs, I usually do this:
Patch0: [patch-file-name].patch
%prep
...
%patch0 -p1 -b .[backup-extension]
Add the file can be patched with a zero length file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question