Stanislav Brabec wrote:
> Rodrigo Moya wrote:
> 
> >     - Stanislav had a tool to analyze pkg-config checks for automatically 
> > update
> >       BuildRequires

I just released first working version with a documentation:

Sources:
http://pack.suse.cz/sbrabec/pkg-buildrequires/
OBS:
https://build.opensuse.org/package/show?project=home%3Asbrabec&package=pkg-buildrequires
RPMs (noarch):
http://download.opensuse.org/repositories/home:/sbrabec/


pkg-buildrequires

This package provides a way to automatically maintain RPM BuildRequires
introduced by pkg-config dependencies.

Because it is not possible to update BuildRequires from build log
directly, it must be done in two passes:

1) Run configure and analyze results.
   Compare requirements results with requirements actually uses.
   Fail if it does not equal.

2) Update BuildRequires of spec file.
   Run build again.


How to use it:

1) Add pkg-buildrequires to your BuildRequires.

2) Replace %configure by %pkg_buildrequires_configure

3) Run build and fix failure by proposed way

4) Reduce manually created BuildRequires as needed.


-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: [EMAIL PROTECTED]
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to