# If you are nice, you follow the whole SRPM tree build .. thing. # Alternatively, sometimes, you just want to make a quickie binary rpm # from stuff you have already installed in their proper place. # This spec file helps you do that with a minimum of fuss. # # Use "rpmbuild -bb thisfile.spec" to take the appropriate files # in /usr/local (or whereever you have installed them) # and shove into a package under /usr/src/redhat/RPMS/$ARCH # Update all "REPLACE" fields, and fill in files list at end of file Name: REPLACE Version: REPLACE Release: 1 Summary: REPLACE in usrlocal License: REPLACE Group: Application/extras # Requires: pkgnames, here %description # uncomment and fill out if you like %prep # we have no source, so nothing here %build echo you should have already built it yourself by hand %install echo you should have already installed it by hand %changelog # skip %files # Put actual full path of all related files and symlinks below here # Useful trick for many software packages to autogenerate the list: # rm -r /tmp/root; make DESTDIR=/tmp/root install # find /tmp/root -type f -o -type l |sed 's:/tmp/root::' >>thisfile.spec