[opensuse-packaging] Is there a macro for both BuildRequires and Requires?
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
All, I think Requires and BuildRequires are disjoint / independent. I have a package that has about 20 Requires. I'd like to have a %check section for it, but I'll need all those requires at build time as well to do that. Is there a clean solution? Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/45bf5eef0471996074efa055ea252116.jpg?s=120&d=mm&r=g)
El 23/09/12 21:46, Greg Freemyer escribió:
All,
I think Requires and BuildRequires are disjoint / independent.
I have a package that has about 20 Requires. I'd like to have a %check section for it, but I'll need all those requires at build time as well to do that.
Is there a clean solution?
No, there is no macro for both and the %check section is not intended for that purpose. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5208f59307a2705ba9811a153406f094.jpg?s=120&d=mm&r=g)
I found many cases, where it makes sense to list all (or most) Requires also as Buildrequires. First it is a good way to assert that the required packages actually exist. Second, every package should run a test suite within %check (even if it is only a trivial test - it will catch a bug sooner or later), then those tests often need all the runtime dependencies to be there. I usually place a comment '# Requires for test suite' followed by Buildrequires lines copied from Requires. Cheers, jw "Cristian Rodríguez" <crrodriguez@opensuse.org> schrieb:
El 23/09/12 21:46, Greg Freemyer escribió:
All,
I think Requires and BuildRequires are disjoint / independent.
I have a package that has about 20 Requires. I'd like to have a %check section for it, but I'll need all those requires at build time as well to do that.
Is there a clean solution?
No, there is no macro for both and the %check section is not intended for that purpose.
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-- Paint it green. Juergen Weigert, SUSE documentation.
participants (3)
-
Cristian Rodríguez
-
Greg Freemyer
-
Juergen Weigert