Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
Re: [opensuse-buildservice] RPM Macro %cmake_kde4
  • From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@xxxxxxxxx>
  • Date: Mon, 4 Jan 2010 19:42:26 +0100
  • Message-id: <201001041942.26516.pedro.lopez.cabanillas@xxxxxxxxx>
On Monday, January 4, 2010, Lubos Lunak wrote:
On Sunday 27 of December 2009 14:07:03 Pedro Lopez-Cabanillas wrote:
Hi,

The "%cmake_kde4" RPM macro doesn't accept arbitrary arguments?

I need in "kmidimon" (OBS project "home:plcl:kde4") a boolean
option "STATIC_ASEQMM" controlling if the libaseqmm library is built and
statically linked to kmidimon, or the shared library is used instead. So
my first guess was to do something like this in kmidimon.spec:

%build
%cmake_kde4 -DSTATIC_ASEQMM=NO

%cmake_kde4 -- <args> . I think that is the normal way to pass arbitrary
arguments to any rpm macro.

%configure --enable-something works fine, as Pavol Rusnak commented in [Bug
567350] http://bugzilla.novell.com/show_bug.cgi?id=567350

But the above syntax fails. Looks like the macro doesn't accept arguments
other than "-d builddir".

By the way, I don't understand why is needed the option "-d" for out of
source builds in RPM specs. Out of source is convenient for a developer,
or to hand building a program, but RPM already provides a disposable
building environment, so building out of source is redundant, IMO.

Some KDE packages do not build in-source, IIRC.

It never happened to me, but you may be right. Anyway, if this is a workaround
for a few packages, there is no need to "strongly recommend" its usage:
http://en.opensuse.org/index.php?title=Packaging/SUSE_Macros/KDE4_Macros

BTW2. Is there an upstream repository for the macros.kde4 file?

The kde4-filesystem OBS package is the original source of macros.kde4 .

Thanks.

--
Lubos Lunak
openSUSE Boosters team, KDE developer
l.lunak@xxxxxxx , l.lunak@xxxxxxx

Regards,
Pedro
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References