rpm_spec_env.Command(specfile, specfile_in, rpm_spec_action)
env.InstallAs(sourcefile, tar_gz)
+ Local(sourcefile)
targets = [ noarch_rpm, src_rpm ]
cmd = "$RPMBUILD --define '_topdir $(%s$)' -ba $SOURCES" % topdir
python setup.py build
%install
-python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --install-lib=/usr/lib/scons --install-scripts=/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/man/man1
gzip -c scons.1 > $RPM_BUILD_ROOT/usr/man/man1/scons.1.gz
gzip -c sconsign.1 > $RPM_BUILD_ROOT/usr/man/man1/sconsign.1.gz
- Support a MAXLINELINELENGTH construction variable on Win32 systems
to control when a temporary file is used for long command lines.
+ - Make how we build .rpm packages not depend on the installation
+ locations from the distutils being used.
+
From Gary Oberbrunner:
- Report the target being built in error messages when building