Hallo. I wrote a script, which attempts to backport packages to be compilable on older products. It means replacing of Requires and BuildRequires by an appropriate %if.
It is intended to prevent hardly maintainable %if %suse_version hell in
Factory.
If there will be an interest, I can maintain it in OpenSUSE:Tools.
Usage is trivial:
- cd to unpacked sources.
- Run it.
TODO:
- Move configuration outside script (trivial).
- Support for "this new name is already used in this repository"
(trivial - delete appropriate line or use "%if %suse_version foo ||
0%{?opensuse_bs}". (trivial)
- Support for rules more packages -> anything (not so trivial)
- Support for fixes of "has choice for" (already written, but it is not
part of this attachment, because it has a large configuration.
--
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/
backport-factory
Description: application/shellscript
