[opensuse-packaging] %define _with_something in prjconf file not working
Hello, I'm trying to use the '%define _with_something in the prjconf file' construction that is explained on this page: http://en.opensuse.org/Build_Service/prjconf#Macros But I don't get it to work. Some details: cyrus-imapd-kolab> osc meta prjconf server:Kolab:UNSTABLE %define _with_kolab 1 The spec file contains: %bcond_with kolab %if %{with kolab} %define pkg_perl_Cyrus_IMAP perl-Cyrus-Imap-kolab %define pkg_perl_Cyrus_SIEVE_managesieve perl-Cyrus-SIEVE- managesieve- kolab Name: cyrus-imapd-kolab BuildRequires: openldap2-devel %else %define pkg_perl_Cyrus_IMAP perl-Cyrus-Imap %define pkg_perl_Cyrus_SIEVE_managesieve perl-Cyrus-SIEVE-managesieve Name: cyrus-imapd %endif This all looks to me similar to the explanation given in the build service wiki article. I first thought perhaps it does not work with local builds, so I committed the spec file, but also the builds on the build server end up in without kolab :( build: extracting built packages... cyrus-imapd-2.3.14-30.1.i586.rpm cyrus-imapd-devel-2.3.14-30.1.i586.rpm perl-Cyrus-Imap-2.3.14-30.1.i586.rpm perl-Cyrus-SIEVE-managesieve-2.3.14-30.1.i586.rpm Can somebody tell me what I'm doing wrong?? If it would work, it would be a wonderful way to accomplish what I need! -- Richard Bos Without a home the journey is endless -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Richard Bos wrote:
Hello,
I'm trying to use the '%define _with_something in the prjconf file' construction that is explained on this page: http://en.opensuse.org/Build_Service/prjconf#Macros
But I don't get it to work.
You also need to have Macros: %_with_something 1 The %define only affects the spec file parser of the buildservice. The Macros block is for rpmbuild itself. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Ludwig Nussel
-
Richard Bos