Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to create a rpm for this tarball and couldn't figure out which files needed to be included in the package after the install. I am used to compiling some code and including the binary output; however, since this is all python and seems to use distutils to install everything is there even bin/executable to include in the package? I thought distutils just adds the module to the appropriate 3rd party python modules dir on the target machine.

If I use:

make install DESTDIR=%{buildroot}

what would be the appropriate output to include in the rpm package, i.e., under %files?

I came across an already made .spec file here which which seemed to include the entire /usr/bin (rpm --eval %{_bindir} expands to /usr/bin on my machine) directory which seemed excessive.

share|improve this question
up vote 0 down vote accepted

Have a look at the package in the openSUSE BuildService. You can even try to build it for RHEL if you create your own project there (and add the appropriate repository).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.