<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
30.05.2010 21:19, Pavel Alexeev (aka Pahan-Hubbitus) пишет:
<blockquote cite="mid:4C029E2B.50805@ru.bir.ru" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
21.05.2010 20:58, Panu Matilainen пишет:
<blockquote
cite="mid:alpine.LFD.2.00.1005211956120.19129@localhost"
type="cite">
<pre wrap="">On Fri, 21 May 2010, Kevin Kofler wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Pavel Alexeev (aka Pahan-Hubbitus) wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I think because macroses should be included before it processed as shell
script.
Is there some variant of %include or similar?
</pre>
</blockquote>
<pre wrap="">AFAIK, no. E.g. in kde-filesystem, we end up defining things twice, once for
the specfile itself and once for the .macros file:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://cvs.fedoraproject.org/viewvc/rpms/kde-filesystem/devel/kde-filesystem.spec?revision=1.49&view=markup">http://cvs.fedoraproject.org/viewvc/rpms/kde-filesystem/devel/kde-filesystem.spec?revision=1.49&view=markup</a>
</pre>
</blockquote>
<pre wrap="">And neither of you actually thought to try whether %include works? :D
Hint: it does, in spec files.
        - Panu -
</pre>
</blockquote>
Thanks for the answers.<br>
Panu, you are sure? I try, and rpmbuild encountered error -
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="https://bugzilla.redhat.com/show_bug.cgi?id=597835">https://bugzilla.redhat.com/show_bug.cgi?id=597835</a>
</blockquote>
Sorry for the answer to themselves.<br>
Now, when bug fixed and rpm hit rawhide I can continue test it
suggestion. And it does not work on strange manner - it is not
produce any error, but also does nothing!<br>
So, in minimal spec file was attached in the bug I have now in
%prep:<br>
%include %{SOURCE0}<br>
%{testmacros}<br>
exit 102<br>
<br>
And at build time no TEST appeared:<br>
$ LANG=C rpmbuild -ba test.spec<br>
+ umask 022<br>
+ cd /home/pasha/SOFT/rpmbuild/BUILD<br>
+ LANG=C<br>
+ export LANG<br>
+ unset DISPLAY<br>
+ exit 102<br>
error: Bad exit status from
/home/pasha/SOFT/rpmbuild/BUILD/_tmp/rpm-tmp.ECc7qg (%prep)<br>
Bad exit status from
/home/pasha/SOFT/rpmbuild/BUILD/_tmp/rpm-tmp.ECc7qg (%prep)<br>
<br>
Please, can you more describe how it should work? What is
prerequisites? May be link on detailed explanation?<br>
<br>
</body>
</html>