This is a multi-part message in MIME format. --------------080206000101080508030407 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Howdy Hi, Again, this is not say we want or need these changes in the product, this is just what we have done. This is our spec file for 0.9.1, though it is using the August 3 daily release, with our fix for 'list new' in it. Some of the minor and major changes 1) We have divided it into two rpms, yum and yum-conf. We have made them both be dependant on each other, but not on the version number of either. I have to say I hate circular dependancies, but this way we will be able to change the binaries (yum) without affecting a users configuration, and vice versa. 2) We have a dynamic yum.conf file. It is dynamic at rpm install, not a constantly changing file. This way we are able to use the same rpms for both our 7.1.1, 73rolling, and when it's released our 7.3.1 release. (I have also attached the template file) We also made a minor tweek in the Makefile. 3) Instead of doing a condrestart we just do a restart. This is because we want this on by default. We will be using this to push out our security updates, and we don't want someone skipped because they didn't turn it on. Troy -- __________________________________________________ Troy Dawson dawson@xxxxxxxx (630)840-6468 Fermilab ComputingDivision/OSS CSI Group __________________________________________________ --------------080206000101080508030407 Content-Type: text/plain; name="yum-0.9.1.spec" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="yum-0.9.1.spec" Summary: RPM installer/updater Name: yum Version: 0.9.1 Release: 4f2 License: GPL Group: System Environment/Base Source: %{name}-%{version}.tar.gz URL: http://www.dulug.duke.edu/yum/ BuildRoot: %{_tmppath}/%{name}-%{version}root BuildArchitectures: noarch BuildRequires: rpm-python python >= 1.5.2 Requires: rpm-python >= 4.0.2 perl python >= 1.5.2 rpm >= 4.0.2 Requires: %{name}-conf Prereq: /sbin/chkconfig, /sbin/service %description Yum is a utility that can check for and automatically download and install updated RPM packages. Dependencies are obtained and downloaded automatically prompting the user as necessary. %package conf Summary: Configuration files for yum. Group: System Environment/Base Requires: %{name} %description conf Configuration files to setup yum.conf, as well as setup yum in you daily cron. %prep %setup -q %build %configure make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post conf if [ -f /etc/yum.conf ] ; then mv -f /etc/yum.conf /etc/yum.conf.%{version}.%{release} fi RELEASE="$(cat /etc/fermi-release | cut -d' ' -f4 | tr -d .)" cat /etc/yum.conf.template | sed "s:FERMIRELEASE:$RELEASE:" > /etc/yum.conf /sbin/chkconfig --add yum /sbin/chkconfig yum on /sbin/service yum restart >> /dev/null exit 0 %preun conf if [ $1 = 0 ]; then /sbin/chkconfig --del yum /sbin/service yum stop >> /dev/null fi exit 0 %files %defattr(-, root, root) %doc README AUTHORS COPYING TODO INSTALL %{_libdir}/yum/* %{_sbindir}/yum %{_sbindir}/yum-arch /var/cache/yum %{_mandir}/man*/* %files conf %defattr(-, root, root) %{_sysconfdir}/yum.conf.template %config %{_sysconfdir}/cron.daily/yum.cron %config %{_sysconfdir}/init.d/%{name} %config %{_sysconfdir}/logrotate.d/%{name} %changelog * Thu Aug 16 2002 Troy Dawson <dawson@xxxxxxxx> - Changes the spec file, so that there is a yum, and a yum-conf. * Wed Aug 15 2002 Troy Dawson <dawson@xxxxxxxx> - Put in the latest patches from Seth. Put in fix for yum list new. * Thu Jul 11 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - bumped ver to 0.9.1 * Thu Jul 11 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - bumped ver to 0.9.0 * Thu Jul 11 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - added rpm require * Sun Jun 30 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - 0.8.9 * Fri Jun 14 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - 0.8.7 * Thu Jun 13 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - bumped to 0.8.5 * Thu Jun 13 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - bumped to 0.8.4 * Sun Jun 9 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - bumped to 0.8.2 * Thu Jun 6 2002 Seth Vidal <skvidal@xxxxxxxxxxxx> - First packaging --------------080206000101080508030407 Content-Type: text/plain; name="yum.conf.template" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="yum.conf.template" [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log [server] name=Fermi Linux FERMIRELEASE main baseurl=ftp://linux21.fnal.gov/linux/FERMIRELEASE/i386/RedHat/RPMS/ [updates] name=FERMIRELEASE updates baseurl=ftp://linux21.fnal.gov/linux/FERMIRELEASE/i386/updates/RedHat/RPMS/ --------------080206000101080508030407--