After applying the attached patch, you should be able to
build RPMs using the resulting systemimager.spec file (well
almost).
This patch changes the following things:
- added new files
(si_monitor, UseYourOwnKernel.pm)
- changed
Copyright -> License (Copyright is deprecated)
- added code to
create /var/lock/systemimager (needed by si_monitor)
- added
%configure
- Added
requirement for perl-TermReadKey (needed by si_monitor)
You still need to change %define ver to the right version
and also apply this proposed patch:
Thanks,
Bernard
Index: systemimager.spec =================================================================== --- systemimager.spec (revision 3153) +++ systemimager.spec (working copy) @@ -14,7 +14,7 @@ Name: %name Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System Source0: http://download.sourceforge.net/systemimager/%{name}-%{ver}.tar.bz2 BuildRoot: /tmp/%{name}-%{ver}-root @@ -34,13 +34,13 @@ Summary: Software that automates Linux installs, software distribution, and production deployment. Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System BuildRoot: /tmp/%{name}-%{ver}-root Packager: dann frazier <[EMAIL PROTECTED]> URL: http://systemimager.org/ Distribution: System Installation Suite -Requires: rsync >= 2.4.6, systemimager-common = %{version}, perl-AppConfig, dosfstools, /sbin/chkconfig, perl, perl-XML-Simple +Requires: rsync >= 2.4.6, systemimager-common = %{version}, perl-AppConfig, dosfstools, /sbin/chkconfig, perl, perl-XML-Simple, perl-TermReadKey AutoReqProv: no %description server @@ -65,7 +65,7 @@ Summary: Software that automates Linux installs, software distribution, and production deployment. Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System BuildRoot: /tmp/%{name}-%{ver}-root Packager: dann frazier <[EMAIL PROTECTED]> @@ -96,7 +96,7 @@ Summary: Software that automates Linux installs, software distribution, and production deployment. Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System BuildRoot: /tmp/%{name}-%{ver}-root Packager: dann frazier <[EMAIL PROTECTED]> @@ -127,7 +127,7 @@ Summary: Software that automates Linux installs, software distribution, and production deployment. Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System BuildRoot: /tmp/%{name}-%{ver}-root Packager: dann frazier <[EMAIL PROTECTED]> @@ -160,7 +160,7 @@ Summary: Software that automates Linux installs, software distribution, and production deployment. Version: %ver Release: %rel -Copyright: GPL +License: GPL Group: Applications/System BuildRoot: /tmp/%{name}-%{ver}-root Packager: dann frazier <[EMAIL PROTECTED]> @@ -190,6 +190,13 @@ process. %changelog +* Sun Jun 26 2005 Bernard Li <[EMAIL PROTECTED]> +- Updated Copyright -> License (deprecated) +- Added si_monitor and UseYourOwnKernel.pm to %files +- Added commands to create /var/lock/systemimager in %post server +- Added %configure command +- Added requirement for perl-TermReadKey + * Sun Dec 19 2004 Josh Aas <[EMAIL PROTECTED]> - Here is another patch for RPM building. With this patch, you should be able to make an srpm, install it, build from the spec file ("rpmbuild @@ -299,6 +306,7 @@ %prep %setup -q +%configure make -j11 get_source @@ -371,7 +379,7 @@ mv /etc/systemimager/rsyncd.conf \ /etc/systemimager/rsyncd.conf-before-rsync-stubs - ## leave an extra copy around so the postinst knows to make stub files from it + ## leave an extra copy around so the Postinst knows to make stub files from it cp /etc/systemimager/rsyncd.conf-before-rsync-stubs \ /etc/systemimager/rsyncd.conf-before-rsync-stubs.tmp echo "done." @@ -446,6 +454,11 @@ /sbin/chkconfig --add systemimager-server-rsyncd fi +if [ ! -d /var/lock/systemimager ]; then + rm -rf /var/lock/systemimager + mkdir /var/lock/systemimager +fi + %preun server /etc/init.d/systemimager-server-rsyncd stop @@ -465,6 +478,7 @@ fi fi +rm -rf /var/lock/systemimager %files common %defattr(-, root, root) @@ -505,6 +519,7 @@ %prefix/sbin/si_cpimage %prefix/sbin/si_getimage %prefix/sbin/si_mk* +%prefix/sbin/si_monitor %prefix/sbin/si_mvimage %prefix/sbin/si_netbootmond %prefix/sbin/si_pushupdate @@ -513,6 +528,7 @@ %prefix/bin/si_mk* %prefix/lib/systemimager/perl/SystemImager/Server.pm %prefix/lib/systemimager/perl/SystemImager/Config.pm +%prefix/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm %prefix/lib/systemimager/perl/confedit %prefix/lib/systemimager/perl/BootMedia/* %prefix/share/man/man5/systemimager*