Home Wiki > openSUSE talk:Packaging Conventions RPM Macros
Sign up | Login

openSUSE talk:Packaging Conventions RPM Macros

tagline: From openSUSE

 %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)