Hacker News new | ask | show | jobs
by kmarc 914 days ago
RPM has a cool feature, autoprov and autoreq: lookingat your to-be-packaged files, it will check the shared libraries in it and create the list of the requirements and provided capabilities. (note that with RPMs, packages can depend not only other packages but on provided libraries too

That said, unless you have a very specific reason to, do not attempt to package stuff yourself with spec files. Just use a tool like fpm to do the heavy lifting:

https://fpm.readthedocs.io/en/latest/getting-started.html