# Based off files from Mike Harris # %_topdir defines the top directory to be used for RPM building purposes # By defaultROOT of the buildsystem %_topdir %(echo $HOME)/src/rpm # %_sourcedir is where the source code tarballs, patches, etc. will be # placed after you do an "rpm -ivh somepackage.1.0-1.src.rpm" %_pkgtopdir %{_topdir}/%{name}-%{version} %_sourcedir %{_pkgtopdir} # %_specdir is where the specfile gets placed when installing a src.rpm. I # prefer the specfile to be in the same directory as the source tarballs, etc. %_specdir %{_pkgtopdir} # %_tmppath is where temporary scripts are placed during the RPM build # process as well as the %_buildroot where %install normally dumps files # prior to packaging up the final binary RPM's. %_tmppath /tmp/rpm # %_builddir is where source code tarballs are decompressed, and patches then # applied when building an RPM package %_builddir %{_tmppath} # %_buildroot is where files get placed during the %install section of spec # file processing prior to final packaging into rpms. This is oddly named # and probably should have been called "%_installroot" back when it was # initially added to RPM. Alas, it was not. ;o) %_buildroot %{_tmppath}/%{name}-%{version}-root # %_rpmdir is where binary RPM packages are put after being built. %_rpmdir %{_topdir}/rpms # %_srcrpmdir is where src.rpm packages are put after being built. %_srcrpmdir %{_topdir}/srpms # Customized tags for local builds # %packager is the info that will appear in the "Packager:" field in the # RPM header on built packages. By default I have it read your username # and hostname. This should be customized appropriately. # %packager Joe Blow #%packager %(echo ${USER}@)%(hostname) %packager Samat Jain %vendor hotnudiegirls.com Enterprises %distribution Unspecified # GNU GPG config below #%_signature gpg #%_gpg_name Joe Blow #%_gpg_path %(echo $HOME)/.gnupg # %_rpmfilename defines the naming convention of the produced RPM packages, # and should not be modified. It is listed here because I am overriding # RPM's default behaviour of dropping binary RPM's each in their own # separate subdirectories. I hate that. Grrr. %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm # The following will try to create any missing directories required above # (Not implemented yet)