Hello I hope you don't mind top posting...
Anyway here is full stuff anyway:
steki@nb0015:~> grep find_lang /usr/lib/rpm/macros
# %find_lang %{name}
%find_lang %{_rpmconfigdir}/find-lang.sh %{buildroot}
if you wanna see script use
steki@nb0015:~> cat `rpm --eval %{_rpmconfigdir}`/find-lang.sh
or just output use
steki@nb0015:~> `rpm --eval %{_rpmconfigdir}`/find-lang.sh
Usage: /usr/lib/rpm/find-lang.sh TOP_DIR PACKAGE_NAME [prefix]
where TOP_DIR is
the top of the tree containing the files to be processed--should be
$RPM_BUILD_ROOT usually. TOP_DIR gets sed'd out of the output list.
PACKAGE_NAME is the %{name} of the package. This should also be
the basename of the .mo files. the output is written to
PACKAGE_NAME.lang unless $3 is given in which case output is written
to $3 (note that $3 is appended to if given).
Additional options:
--without-gnome do not find GNOME help files
--without-kde do not find KDE help files
--with-qt find Qt translation files
--with-man find localized man pages
--all-name match all package/domain names
--without-mo do not find locale files
steki@nb0015:~>
On Mon, Nov 15, 2010 at 9:19 AM, Paul Elliott
Where is %find_lang documented?
What parameters does it take and what does it do?
I am not looking for cargo cult programming examples, but real documentation.
google is useless it gives the address of a gazzilion spec files that use it.
Why is it that packaging can only be learned as folklore?
-- Paul Elliott 1(512)837-1096 pelliott@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkzg7RcACgkQiv9zpDRc3ZnmBgCeLaExMonN7QON+tWNGjVSGSIk QtYAoJJvm4tGM1m4qQt9IhnjeXmCjNnS =ngkW -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org