Home:ALL Converter>steps needed to create binary package for distribution in linux

steps needed to create binary package for distribution in linux

Ask Time:2013-03-26T04:11:32         Author:user1655072

Json Formatter

I am little confused on how to create a complete binary package using rpmbuild from a project I just created (already compiled binary).

my current project contain similar format as this user (Packaging proprietary software for Linux) Where I have

  • foo (binary)
  • data
  • libs
  • foo.sh

libs will contain all the shared libraries the project requires, and foo.sh is a script that sets LD_LIBRARY_PATH to include libs. Therefore, the user will execute foo.sh and the program should start.

I am looking at the tutorial from this site (rpm tutorial)

I understand to create a rpm I create a build area use rpmdev-setuptree I can create a spec file use cd ~/rpmbuild/SPECS; rpmdev-newspec foo and if I got a good SOURCES folder I can build it with rpmbuild -ba foo.spec

But I have no idea how to setup the SOURCES directory. The tutorial stated (here) that I should create a tarball and place all my source file in it and put in SOURCE directory. What would be the source file in my case?

Author:user1655072,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15623834/steps-needed-to-create-binary-package-for-distribution-in-linux
yy