One way is to exclude those files in the "files" section of the specfile.<div><br><div><br></div><div>%files</div><div>%exclude <i style="color:rgb(34,34,34);font-size:14px">%{_datadir}/applications/%{<wbr>name}.desktop</i><br style="color:rgb(34,34,34);font-size:14px"><span style="color:rgb(34,34,34);font-size:14px">%exclude </span><i style="color:rgb(34,34,34);font-size:14px">%{_datadir}/icons/hicolor/*/<wbr>apps/%{name}.png</i><br><br><br>/Niel<br>On Wednesday, August 15, 2018, Dylan Van Assche via Devel <<a href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Martin,<br></div><div><br></div><div>Oh okay :) I'm still struggling with the spec file.<br></div><div>If I remove those lines I mentioned the build fails again.<br></div><div><br></div><div>My goal: Remove the icons, desktop file, ... to reduce it to a simple command line tool: qrail-tests in the terminal should be the only thing I need.<br></div><div>I updated my source code on the development branch. It's building but with a desktop file, icons, ...<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan<br></div><div><br></div><div><div><div><br></div></div><div>Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On 15 August 2018 9:04 AM, Martin Kampas <<a href="mailto:martin.kampas@jolla.com" target="_blank">martin.kampas@jolla.com</a>> wrote:<br></div><div> <br></div><blockquote type="cite"><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div>Hi Dylan,<br></div><div><br></div><div>Sounds reasonable. The "console" CONFIG option will have any effect on win32-only. It is not needed on other OSes.<br></div><div><br></div><div>BR,<br></div><div>Martin<br></div><div><br></div><div style="font-family:Times New Roman;color:#000000;font-size:16px"><div><hr><br></div><div style="direction:ltr"><span style="font-family:Tahoma"><span style="font-size:13px"><span style="color:#000000"><b>From:</b> Devel [<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.<wbr>sailfishos.org</a>] on behalf of Dylan Van Assche via Devel [<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>]<br> <b>Sent:</b> Wednesday, August 15, 2018 9:34 AM<br> <b>To:</b> Sailfish OS Developers mailing list<br> <b>Subject:</b> Re: [SailfishDevel] RPM build error<br> </span></span></span></div><div><br></div><div><div>Hi,<br></div><div><br></div><div>Thanks for the help! Removing that line in my spec file fixed the problem.<br></div><div>David's solution is the same by adding some stuff to copy for that line in the spec file and works too :)<br></div><div><br></div><div>Since we're talking about spec files, I only care about a simple console application for the tests.<br></div><div>If I remove the following things from the spec file:<br></div><div><div>- <i>%{_datadir}/applications/%{<wbr>name}.desktop</i><br></div><div> -<i> %{_datadir}/icons/hicolor/*/<wbr>apps/%{name}.png</i><br></div></div><div><br></div><div>And set the CONFIG in the pro file from <i>sailfishapp</i> to <i>console</i> I can build a console application for Sailfish OS I think?<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan Van Assche<br></div><div><br></div><div><div><div><br></div></div><div>Sent with <a href="https://protonmail.com" target="_blank"> ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div>On 15 August 2018 6:02 AM, Martin Kampas <<a href="mailto:martin.kampas@jolla.com" target="_blank">martin.kampas@jolla.com</a>> wrote:<br></div><div><br></div><blockquote type="cite"><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div>Hi Dylan,<br></div><div><br></div><div>I believe the reason for this error is that you list "%{_datadir}/%{name}" under the "%files" section in qrail.spec while it is not being created by the "%install" step. I couldn't verify because for me there are more errors that prevent the build to proceed
that far.<br></div><div><br></div><div>BR,<br></div><div>Martin<br></div><div><br></div><div style="font-family:Times New Roman;color:#000000;font-size:16px"><div><hr><br></div><div style="direction:ltr"><span style="font-family:Tahoma"><span style="font-size:13px"><span style="color:rgb(0,0,0)"><b>From:</b> Devel [<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.<wbr>sailfishos.org</a>] on behalf of Dylan Van Assche
via Devel [<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>]<br> <b>Sent:</b> Tuesday, August 14, 2018 8:20 PM<br> <b>To:</b> Sailfish OS Developers mailing list<br> <b>Subject:</b> [SailfishDevel] RPM build error</span></span></span></div><div><br></div><div><div>Hi,<br></div><div><br></div><div>I'm having some trouble with building my test application for my QRail shared library.<br></div><div>The RPM can't be build for some reason, I'm not sure why...<br></div><div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:rgb(170,0,0)">error: File not found: /home/deploy/installroot/usr/<wbr>share/qrail-tests</span> <span style="color:rgb(170,0,0)">File not found: /home/deploy/installroot/usr/<wbr>share/qrail-tests</span><br></p><div><span style="color:rgb(170,0,0)">19:58:02: The process "/home/dylan/.config/<wbr>SailfishOS-SDK/mer-sdk-tools/<wbr>Sailfish OS Build Engine/SailfishOS-2.2.0.29-<wbr>armv7hl/deploy" exited with code 1.</span><br></div><div><span style="color:rgb(170,0,0)">Error while building/deploying project qrail-tests (kit: SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine))</span><br></div><div><span style="color:rgb(170,0,0)">The kit SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine) has configuration issues which might be the root cause for this problem.</span><br></div><div><span style="color:rgb(170,0,0)">When executing step "RPM"</span><br></div><div><br></div></div><div><div><div><br></div></div></div><div><div>I haven't seen this error in any other project I did with the Sailfish SDK, I haven absolutely no idea what the cause of this is.<br></div><div>Here's a link to my Github repo where you can find my code: <a href="https://github.com/DylanVanAssche/QRail" target="_blank"> https://github.com/<wbr>DylanVanAssche/QRail</a>. The application is in the folder 'tests', which provides tests for the QRail library.<br></div></div><div><br></div><div>Any idea's?<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan Van Assche<br></div></div></div></div></blockquote><div><br></div></div></div></div></blockquote><div><br></div></blockquote></div></div>