Mailinglist Archive: opensuse-packaging (127 mails)

< Previous Next >
[opensuse-packaging] %define _with_something in prjconf file not working
  • From: Richard Bos <rbos@xxxxxxxxxxxx>
  • Date: Thu, 26 Nov 2009 22:55:53 +0100
  • Message-id: <200911262255.53361.rbos@xxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups