[opensuse-packaging] %{SourceX} not allowed in .spec %files section?
Hi. If I use something like %files A-path/a-file it works fine, but if I use %files A-path/%{source0} I get Error: File not found Is it that %{sourceX} is not allowed in the %file section? Other macros, %{name} for example, work fine. SourceX is defined in the beginning of the file an it is an icon I've uploaded, but it happens the same if it is another kind of file. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 2014-08-09 10:58, jcsl wrote:
it works fine, but if I use
%files A-path/%{source0}
I get
Error: File not found
Is it that %{sourceX} is not allowed in the %file section?
Or simply that %{source0} is an absolute pathname, and /A-path/usr/src/packages/SOURCES/s0.txt just isn't going to exist. Please, don't try to force macros on every part of the .spec file, or the reader who has to deal with your specfile at a later point. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El S�bado, 9 de agosto de 2014 11:35:22 Jan Engelhardt escribi�:
On Saturday 2014-08-09 10:58, jcsl wrote:
it works fine, but if I use
%files A-path/%{source0}
I get
Error: File not found
Is it that %{sourceX} is not allowed in the %file section?
Or simply that %{source0} is an absolute pathname, and /A-path/usr/src/packages/SOURCES/s0.txt just isn't going to exist.
Please, don't try to force macros on every part of the .spec file, or the reader who has to deal with your specfile at a later point.
Hi. It isn't my intention to force the use of macros, but once they're defined they're useful to avoid typos, and being defined in the beginning of the file I think they're quite visible too. Thanks for the hint. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
jcsl
it works fine, but if I use
%files A-path/%{source0}
I get
Error: File not found
Consider filing a bug report for rpm that it doesn't include the file name in the error message. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El Lunes, 11 de agosto de 2014 09:45:05 Andreas Schwab escribió:
jcsl
writes: it works fine, but if I use
%files A-path/%{source0}
I get
Error: File not found
Consider filing a bug report for rpm that it doesn't include the file name in the error message.
Andreas.
Hi. It was just an example. A real output example is File not found: /home/abuild/rpmbuild/BUILDROOT/xarchiver-0.5.3-13.18.1.x86_64/usr/share/pixmaps/home/abuild/rpmbuild/SOURCES/xarchiver- html.png which I think is ok, isn't it? It is nothing particular to this package, I have the same error if I use that macro in others, so what "Jan Engelhardt" suggested must be the answer. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
If you package is xarchiver I'd do something like: %{_datadir}/pixmaps/%{name}-html.png -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
jcsl
It was just an example. A real output example is
File not found: /home/abuild/rpmbuild/BUILDROOT/xarchiver-0.5.3-13.18.1.x86_64/usr/share/pixmaps/home/abuild/rpmbuild/SOURCES/xarchiver- html.png
And that didn't give you enough hints? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Damian Ivanov
-
Jan Engelhardt
-
jcsl