Thanks Dmitriy, Andreas, and all.
2014-07-09 14:20 GMT+09:00 1xx
2014-07-09 13:10 GMT+09:00 Dmitriy Perlow
: Christian Boltz
Wed, 09 Jul 2014 03:05:44 +0300: Am Mittwoch, 9. Juli 2014 schrieb 1xx:
- removed "Requires: git". users can select VCS.
Too bad that rpm doesn't support "or" in the Requires: tag ;-)
Nevertheless, you should add a "Recommends: git" - that's the most likely choice nowadays.
Blank subpackages can be used to resolve it: name-git that requires git and name-hg that requires mercury. Both should provide name-cvs and main package should require it.
Does it mean the following ?
I will check it on my PC.
I am checking "blank subpackages". https://build.opensuse.org/package/show/home:Mitsutoshi:spectest/spectest https://build.opensuse.org/package/view_file/home:Mitsutoshi:spectest/specte... -------- in spectest.spec -------- Name: spectest (snip) Requires: %{name}-vc %package git Summary: The git stub Group: System/Management Requires: git Provides: %{name}-vc (snip) %package bzr Summary: The bzr stub Group: System/Management Requires: bzr Provides: %{name}-vc -------- When I do not install any VCS, zypper shows spectest-git. --------
LANG=C sudo zypper install spectest Loading repository data... Reading installed packages... Resolving package dependencies...
The following 3 NEW packages are going to be installed: git spectest spectest-git 3 new packages to install. Overall download size: 61.8 KiB. After the operation, additional 2.6 KiB will be used. Continue? [y/n/? shows all options] (y): -------- And when I installed bzr, zypper shows spectest-bzr. --------
LANG=C sudo zypper install spectest Loading repository data... Reading installed packages... Resolving package dependencies...
The following 2 NEW packages are going to be installed:
spectest spectest-bzr
2 new packages to install.
Overall download size: 5.5 KiB. After the operation, additional 44.0 B
will be used.
Continue? [y/n/? shows all options] (y):
--------
It is interesting.
But I think it is too tricky.
Users may be confused.
And when building, rpmlint says
"W: suse-filelist-empty packages without any files are discouraged in SUSE."
I prefer "Recommends: git".
If I am mistaken, please tell me it.
--
1xx