openSUSE talk:Packaging Conventions RPM Macros

Jump to: navigation, search

%find_lang syntax

I tried

 %find_lang --with-man mandb

And I got the message

 --with-man not found

The SUSE package says

 %find_lang mandb --with-man

so the correct syntax is probably %find_lang name options. --Yecril71pl 15:56, 14 October 2011 (MDT)

Yup. If you look for %find_lang inside /usr/lib/rpm/macros you'll be driven to /usr/lib/rpm/find-lang.sh where, by looking at the code, seems to me that script options order is quite strict: $0 TOP_DIR PACKAGE_NAME [prefix] with dir having to go at first. Could someone kindly confirm (or just tell me I'm plainly wrong :) )? -on openSUSE 12.1- --Acsaf 16:12, 8 May 2012 (MDT)

%sles_version is 0 on SLE_11_SP1

%sles_version is found to be 0 in suse ibs. Maybe it works for obs (untested).--Jnweiger 15:02, 5 February 2013 (MST)


%make macro ?

Is there a %make macro? It is mentioned in the text(for %make_jobs) but never explained...

There is only a %make_jobs, but not a %make macro. Depending on buildsystem used, there are some specific ones as well, like %meson_build, %cmake_build, … --Dimstar 11:40, 7 March 2019 (CET)