My current way of building packages from srpm:
yumdownloader --source $p
sudo yum-builddep *.src.rpm
- if some build deps not found, repeat the above steps for each of them
rpmbuild --rebuild *.src.rpm
sudo yum --nogpgcheck install ../RPMS/*/*.rpm
- if some install deps not found, repeat the above steps for each of them
There is still too much manual work. I need some better tool, which can:
resolve srpm name more reliably.
yumdownloadercan't always guess it:
[git@dioptase SRPMS]$ yumdownloader --source pdf-tools Enabling rhel-source repository Enabling epel-source repository No Match for argument pdf-tools Nothing to download
( In this case
pdf-tools-0.29a-2.1.el6.noarch.rpmis built along with
Automatically build and install from source the dependencies missing in the repos (both build and install deps).
RPMS/*/, so I won't need to deal with rpm filenames.