Hello Mates, i'm trying to build shutter in my home:saigkill. I'm using %find_lang %{name} inside %install and after the normal %file: %files -f %{name}.lang %defattr(-,root,root) %{_datadir}/locale/*/LC_MESSAGES/* %doc README COPYING But now i'm getting: error: Could not open %files file /usr/src/packages/BUILD/shutter-0.86.4/shutter.lang: No such file or directory BuildLog: https://build.opensuse.org/package/live_build_log?arch=i586&package=shutter&project=home%3Asaigkill&repository=openSUSE_Factory Has anyone an Idea, how to fix it? cu Sascha -- Sincerely Yours Sascha Manns openSUSE Community & Support Agent Maifeldstrasse 10 D-56 727 Mayen Phone: +49 2651 4014045 Email: Sascha.Manns@directbox.com Blog: http://saigkill.wordpress.com Web: http://www.saschamanns.de
2010/12/19 Sascha 'saigkill' Manns <samannsml@directbox.com>:
But now i'm getting: error: Could not open %files file /usr/src/packages/BUILD/shutter-0.86.4/shutter.lang: No such file or directory
Probably because you moved away from /usr/src/packages/BUILD/shutter-0.86.4 with the cd $RPM_BUILD_ROOT%{_datadir} before the %find_lang call. You can do the same without the cd. Or you can pushd/popd to return after the change. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Cristian, On Sunday 19 December 2010 17:30:46 Cristian Morales Vega wrote:
2010/12/19 Sascha 'saigkill' Manns <samannsml@directbox.com>:
But now i'm getting: error: Could not open %files file /usr/src/packages/BUILD/shutter-0.86.4/shutter.lang: No such file or directory
Probably because you moved away from /usr/src/packages/BUILD/shutter-0.86.4 with the
cd $RPM_BUILD_ROOT%{_datadir}
before the %find_lang call.
You can do the same without the cd. Or you can pushd/popd to return after the change. Thanks that was the hint :-)
-- Sincerely yours Sascha Manns open-slx GmbH openSUSE Community & Support Agent openSUSE Marketing Team Blog: http://saigkill.wordpress.com Web: http://www.saschamanns.de Web: http://www.open-slx.de (openSUSE Box Support German) Web: http://www.open-slx.com (openSUSE Box Support English) Open-SLX : Linux convenient, simple, secure and complete
On Sun, 19 Dec 2010 17:13:54 +0100, "Sascha 'saigkill' Manns" <samannsml@directbox.com> wrote:
Hello Mates,
i'm trying to build shutter in my home:saigkill. I'm using %find_lang %{name} inside %install and after the normal %file:
%{_datadir}/locale/*/LC_MESSAGES/*
That isn't needed. If you look into /usr/lib/rpm/find_lang.sh you'll see that it accepts the option --all-name to include all found message catalogs. See sr 56375 for my idea of handling things. HTH Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Philipp, On Monday 20 December 2010 02:01:29 Philipp Thomas wrote:
%{_datadir}/locale/*/LC_MESSAGES/*
That isn't needed. If you look into /usr/lib/rpm/find_lang.sh you'll see that it accepts the option --all-name to include all found message catalogs. Thanks for clarifying that. I've never heard about that option. Thanks :-) -- Sincerely Yours
Sascha Manns openSUSE Community & Support Agent Maifeldstrasse 10 D-56 727 Mayen Phone: +49 2651 4014045 Email: Sascha.Manns@directbox.com Blog: http://saigkill.wordpress.com Web: http://www.saschamanns.de
* Sascha 'saigkill' Manns (samannsml@directbox.com) [20101221 14:01]:
I've never heard about that option.
Me neither until I searched for something else and looked at /usr/lib/rpm/macros to see how it defined certain macros and stumbled over the definition of find_lang :) Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Cristian Morales Vega
-
Philipp Thomas
-
Philipp Thomas
-
Sascha 'saigkill' Manns