On jeudi, 28 février 2019 15.50:56 h CET Dan Čermák wrote:
Hi Chris,
Chris Coutinho <chrisbcoutinho@gmail.com> writes:
Hello,
I'm attempting to build a package for numerical simulations, that includes examples in /usr/share/<name>. I'm running into the 'arch-dependent-file-in-usr-share' error because there are sample binaries included in some sub-directories, and I'm looking to this list for some guidance.
I read the guidelines on
https://en.opensuse.org/openSUSE:Packaging_checks
And the suggestion was to put the binaries into
%libexecdir/packagename
Am I supposed to move the binaries there manually and add the path to PATH in the spec file?
I think moving the binaries after the installation to %libexecdir/%{name} is a viable solution. However, I don't think that you should modify $PATH, especially if these are examples that the average user doesn't need to run.
If you think that after installing your package one of the examples should be in $PATH, rather move them to %{_bindir} instead.
Regards, Chris
Cheers,
Dan
the other way around, if it is examples, I guess they can be considered as documentation ? and as such goes to /usr/share/doc/packagename normally there's no complain here, and it offer a benefit to have them in a separate package, those who wont need them didn't bloat their system with. But it's a rough guess, you have to decide if it is better or not. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe supporter GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org