Hallo.

Here is my attempt to help with creating BuildRequires
semi-automatically. It now works for pkg-config checks.

It is an initial version, which does not have any automation support.

It may move major part of BuildRequires into auto-generated part.

It works nice on my tests.

Warning: It does not check for disabled features.

INSTALL:

Install script-pkg-config somewhere outside your $PATH.

Set PKG_WRAP_DIR in pkg-buildrequires-wrap to your directory, where
pkg-config resides.

HOWTO:
cd to unpacked sources
pkg-buildrequires-wrap ./configure --enable-foo ...

It will create pkg-buildrequires-wrap.log


cd anywhere
pkg-create-buildrequires 
unpacked_sources_directory_where_you_run_pkg-buildrequires-wrap

It will analyze pkg-buildrequires-wrap.log and create pkg-buildrequires.log

pkg-create-buildrequires foo.spec

It will pick pkg-buildrequires-wrap.log and update foo.spec

-- 
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/

Attachment: pkg-buildrequires-wrap
Description: application/shellscript

Attachment: pkg-create-buildrequires
Description: application/shellscript

Attachment: pkg-update-buildrequires
Description: application/shellscript

Attachment: pkg-config
Description: application/shellscript

Reply via email to