S
S
Spheniscus2016-08-30 10:16:43
linux
Spheniscus, 2016-08-30 10:16:43

How to automate rebuilding of src.rpm packages?

Good afternoon.
I have centos 7.2 x86 and, as you know, there is no epel repository for it, but some packages from this repository are necessary for my tasks.
I do it like this:

  1. I download the necessary src.rpm package from the epel repository.
  2. Install it with rpm -Uvh
  3. I go to ~/rpmbuild/SPEC
  4. I put the dependencies necessary for the package with the yum-builddep file.spec command
  5. Then I build the package with the command rpmbuild -ba file.spec

When building, at stage 4, there may be problems with dependencies, namely, you need a package that is not in the default repository and also needs to be built and installed. Hence the question - how can you automate the rebuilding of the src.rpm package so that the missing package is downloaded independently, built and installed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BOPOHA, 2016-09-08
@BOPOHA

you can use public services based on OBS, or COPR.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question