Jonathan Chen wrote: > This is what I am trying to do for creating an rpm file... > > 1) Get the abc.tar.gz > 2) Extract abc.tar.gz into the dir I want the precompiled copy to be at. > 3) Run postinstall scripts. > > I believe the %prep or %build part is not needed. But for some reason, > I just can't get the rpm to be created. > > Can anyone give me a link where I can read a how to for my scenario? > Most ones on the net are for compiling and it does not apply to my > problem. Thanks! You are right that you don't need a %build script. But the %prep is still useful to unpacking the tar file. I would still use it. In your %install just copy the files to your BuildRoot. Then use %files normally. I will show a simple concept example at the end of this message. Bob Summary: simple a example of binary blob rpm packaging Name: mybinaryblob Version: 1.1 Release: 1 Copyright: GPL Packager: Your Name <your@xxxxxxxxxxxxxxxxxxx> BuildRoot: %{_tmppath}/%{name}-build Source: binaryblob.tar.gz %description A simple example of rpm packaging of a binary blob. %prep %setup -q %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} cp $RPM_SOURCE_DIR/binaryblob $RPM_BUILD_ROOT%{_bindir}/ cp $RPM_SOURCE_DIR/myblob.README README cp $RPM_SOURCE_DIR/myblob.COPYING COPYING %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README COPYING %{_bindir}/binaryblob _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list