Summary: RPM installer/updater Name: yum Version: 3.4.3 Release: 8 License: GPLv2+ Group: System Environment/Base Source0: %{name}-%{version}.tar.gz Source1: yum.conf URL: http://yum.baseurl.org/ Patch0: yum-%{version}-makefile.patch Patch1: yum-%{version}-optpath.patch Patch2: yum-%{version}-etcdir.patch Patch3: yum-%{version}-arch.patch Patch4: cli.patch Patch5: yum-%{version}-AIX-rpm-check_error.patch Patch6: yum-%{version}-yum-utils.patch Patch7: yum-%{version}-setopt.patch Patch8: yum-%{version}-libpath.patch Patch9: yum-%{version}-logrotate.patch BuildRoot: %{_tmppath}/%{name}-%{version}root BuildArchitectures: noarch BuildRequires: python BuildRequires: gettext BuildRequires: intltool Requires: python >= 2.7 #Requires: rpm-devel-python Requires: urlgrabber >= 3.9.2 Requires: yum-metadata-parser >= 1.1.0 Requires: python-iniparse Requires: pysqlite >= 1.1.7 Conflicts: rpm >= 5-0 # Zif is a re-implementation of yum in C, however: # # 1. There is no co-operation/etc. with us. # 2. It touches our private data directly. # # ...both of which mean that even if there were _zero_ bugs in zif, we'd # never be able to change anything after the first user started using it. And # of course: # # 3. Users will never be able to tell that it isn't weird yum bugs, when they # hit them (and we'll probably never be able to debug them, without becoming # zif experts). # # ...so we have two sane choices: i) Conflict with it. 2) Stop developing yum. Conflicts: zif Obsoletes: yum-skip-broken <= 1.1.18 Obsoletes: yum-basearchonly <= 1.1.9 Obsoletes: yum-allow-downgrade < 1.1.20-0 Obsoletes: yum-plugin-allow-downgrade < 1.1.22-0 Obsoletes: yum-plugin-protect-packages < 1.1.27-0 Provides: yum-skip-broken Provides: yum-basearchonly Provides: yum-allow-downgrade Provides: yum-plugin-allow-downgrade Provides: yum-protect-packages Provides: yum-plugin-protect-packages %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 for permission as necessary. %prep %setup -q #PATCH=/opt/freeware/bin/patch %patch0 -p1 -b .makefile %patch1 -p1 -b .optpath %patch3 -p1 -b .arch #/opt/freeware/bin/patch -p2 -s < %{_sourcedir}/history.patch #%patch4 %patch5 -p1 -b .AIX-rpm-check_error %patch6 -p1 -b .yum-utils %patch7 -p1 -b .setopt %patch8 -p1 -b .libpath %patch9 -p1 -b .logroate cp %{SOURCE1} ./etc/yum.conf export SHELL=/opt/freeware/bin/bash %build make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/yum/yum.conf # install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/yum.cron (cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{_prefix}/bin/* . cd $RPM_BUILD_ROOT mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_prefix}/sbin/* . cd - ) # Ghost files: mkdir -p $RPM_BUILD_ROOT/var/lib/yum/history mkdir -p $RPM_BUILD_ROOT/var/lib/yum/plugins mkdir -p $RPM_BUILD_ROOT/var/lib/yum/yumdb touch $RPM_BUILD_ROOT/var/lib/yum/uuid mkdir -p $RPM_BUILD_ROOT/opt/freeware/etc/yum/pluginconf.d mkdir -p $RPM_BUILD_ROOT/opt/freeware/lib/yum-plugins %find_lang %name %clean #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %pre #check if rpm.rte installp is installed. typeset -i rpm_ht_3=0 rpm_rte_ver=`lslpp -Lc rpm.rte | awk 'FNR==2' | awk -F':' '{print $3}' | cut -d'.' -f1` if [[ $rpm_rte_ver -ge 4 ]] then rpm_ht_3=1 fi rpm -qa | grep "^rpm-4.9.1.3" if [[ $? -eq 0 ]] then rpm_ht_3=1 fi if [[ $rpm_ht_3 -ne 1 ]] then print "You doesn't seems to have rpm.rte 4.9.1.3 or higher version." print "Please update rpm.rte to latest version from ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/" exit 1 fi %post if [[ "$1" = "1" ]] then osver=`/usr/bin/oslevel` yum_conf=`ls /opt/freeware/etc/yum/yum.conf` if [[ $osver = "6.1.0.0" ]] then echo "[AIX_Toolbox_61]" >> $yum_conf echo "name=AIX 6.1 specific repository" >> $yum_conf echo "baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-6.1/" >> $yum_conf echo "enabled=1" >> $yum_conf echo "gpgcheck=0" >> $yum_conf echo "" >> $yum_conf elif [[ $osver = "7.1.0.0" ]] then echo "[AIX_Toolbox_71]" >> $yum_conf echo "name=AIX 7.1 specific repository" >> $yum_conf echo "baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/" >> $yum_conf echo "enabled=1" >> $yum_conf echo "gpgcheck=0" >> $yum_conf echo "" >> $yum_conf elif [[ $osver = "7.2.0.0" ]] then echo "[AIX_Toolbox_72]" >> $yum_conf echo "name=AIX 7.2 specific repository" >> $yum_conf echo "baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/" >> $yum_conf echo "enabled=1" >> $yum_conf echo "gpgcheck=0" >> $yum_conf echo "" >> $yum_conf elif [[ $osver = 5* ]] then echo "No AIX version specific repositores is being added for $osver" echo "" else echo "[AIX_Toolbox_beta]" >> $yum_conf echo "name=AIX beta repository" >> $yum_conf echo "baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/beta/" >> $yum_conf echo "enabled=1" >> $yum_conf echo "gpgcheck=0" >> $yum_conf echo "" >> $yum_conf fi elif [[ "$1" = "2" ]] then yum_conf=`ls /opt/freeware/etc/yum/yum.conf` /usr/bin/grep "plugins[[:space:]]*=[[:space:]]*1" $yum_conf if [[ $? -ne 0 ]] then perl -i -pe "BEGIN{undef $/;} s/^\[main\]$/[main]\nplugins=1/sgm" $yum_conf fi fi %files -f %{name}.lang %defattr(-, root, root) %doc README AUTHORS COPYING TODO INSTALL ChangeLog PLUGINS %config(noreplace) %{_sysconfdir}/yum/yum.conf %config(noreplace) %{_sysconfdir}/yum/version-groups.conf %dir %{_sysconfdir}/yum %dir %{_sysconfdir}/yum/protected.d %dir %{_sysconfdir}/yum/repos.d %dir %{_sysconfdir}/yum/vars %dir %{_sysconfdir}/yum/pluginconf.d %dir %{_prefix}/lib/yum-plugins %config %{_sysconfdir}/logrotate.d/%{name} %{_sysconfdir}/bash_completion.d %{_datadir}/yum-cli/* /usr/bin/* /usr/sbin/yum-updatesd #%exclude %{_datadir}/yum-cli/yumupd.py* %{_bindir}/yum %{_prefix}/sbin/yum-updatesd /opt/freeware/lib/python?.?/site-packages/yum /opt/freeware/lib/python?.?/site-packages/rpmUtils %dir /var/cache/yum %dir /var/lib/yum %ghost /var/lib/yum/uuid %ghost /var/lib/yum/history %ghost /var/lib/yum/plugins %ghost /var/lib/yum/yumdb /opt/freeware/share/man/man*/yum.* /opt/freeware/share/man/man*/yum-shell* %changelog * Mon Nov 30 2020 Sangamesh Mallayya < 3.4.3-8 - Fix lograte issues. - Add beta repository. * Thu Mar 04 2019 Sangamesh Mallayya 3.4.3-7 - Add /usr/opt/rpm/lib LIBPATH while invoking yum. - Due to newer install path chnages for rpm.rte, rpm command looks for - libraries in its new path /usr/opt/rpm lib instead of /opt/ffreeware/lib/ - When yum is run then python is changing libpath to /opt/freeware/lib and if - some incompatible libaries are present in /opt/freeware/lib causing failure - to load yum. - Make python2 as the default python for yum. * Thu Aug 28 2017 Sangamesh Mallayya 3.4.3-6 - Add changes for yum-utils ps plugin. * Thu Aug 3 2017 Sangamesh Mallayya 3.4.3-5 - Change rpm.rte version checking so that it works if rpm.rte installed - is higher 4.9.1.3. * Tue Feb 7 2017 Sangamesh Mallayya 3.4.3-4 - Change ftp link to https in yum.conf. * Thu Aug 18 2016 Sangamesh Mallayya 3.4.3-3 - Add patch to suppress yum check error related to AIX-rpm package. * Mon Aug 8 2016 Sangamesh Mallayya 3.4.3-2 - Update yum.conf file include multiple repositories for noarch, ppc-6.1, - ppc-7.1 & ppc-7.2. * Wed May 28 2014 Sangamesh Mallayya - 3.4.3 - Adapted for AIX Toolbox * Wed Apr 20 2011 James Antill - 3.4.1 - umask bug fix. * Thu Apr 14 2011 James Antill - 3.4.0 * Wed Jan 12 2011 Seth Vidal - put yum-cron back into yum and make the subpkg. Thanks To Alec Habig for maintaining this so well for so long. * Fri Jul 30 2010 Seth Vidal - 3.2.28 * Thu Mar 18 2010 Seth Vidal - 3.2.27 * Tue Feb 9 2010 Seth Vidal - 3.2.26 * Tue Oct 13 2009 Seth Vidal - 3.2.25 * Thu Sep 3 2009 Seth Vidal - 3.2.24 * Tue May 19 2009 Seth Vidal - 3.2.23 * Tue Mar 24 2009 Seth Vidal - 3.2.22 * Wed Jan 7 2009 Seth Vidal - 3.2.21 * Mon Oct 27 2008 Seth Vidal - 3.2.20 * Mon Aug 25 2008 Seth Vidal - 3.2.19 * Thu Aug 7 2008 Seth Vidal - 3.2.18 * Wed Jul 8 2008 Seth Vidal - 3.2.17 * Wed May 14 2008 Seth Vidal - 3.2.16 * Wed May 14 2008 Seth Vidal - 3.2.15 * Mon Apr 7 2008 Seth Vidal - 3.2.14 * Thu Mar 20 2008 Seth Vidal - 3.2.13 * Mon Mar 3 2008 Seth Vidal - 3.2.12 * Fri Feb 8 2008 Seth Vidal - 3.2.11 * Sun Jan 27 2008 James Bowes - Move the yumupd module to yum-updatesd * Sat Jan 26 2008 Tim Lauridsen - Added BuildRequires: intltool - Added -f %%{name}.lang to %%files - Added %%find_lang %%name to %%install * Thu Jan 24 2008 Seth Vidal - 3.2.10 * Thu Jan 24 2008 Seth Vidal - wee 3.2.9 * Wed Dec 12 2007 Seth Vidal - add pygpgme dep for new gpg key handling * Mon Dec 3 2007 Seth Vidal - 3.2.8 * Fri Oct 12 2007 Seth Vidal - 3.2.7 * Fri Oct 5 2007 Seth Vidal - 3.2.6 * Mon Sep 10 2007 Seth Vidal - 3.2.5 * Tue Aug 28 2007 Seth Vidal - 3.2.4 - add python-iniparse - it's a dep here but yum will run w/o it * Fri Jul 20 2007 Seth Vidal - 3.2.2 * Thu Jun 21 2007 Seth Vidal - 3.2.1 * Wed May 16 2007 Seth Vidal - 3.2.0 * Thu Apr 26 2007 Seth Vidal - 3.1.7 * Tue Apr 3 2007 Seth Vidal - 3.1.6 * Wed Mar 21 2007 Seth Vidal - 3.1.5 * Wed Mar 7 2007 Seth Vidal - 3.1.4 * Thu Mar 1 2007 Seth Vidal - 3.1.3 * Wed Feb 14 2007 Seth Vidal - 3.1.2 * Tue Feb 6 2007 Seth Vidal - 3.1.1 * Sun Jan 21 2007 Seth Vidal - 3.1.0 * Wed Oct 4 2006 Seth Vidal - 3.0 * Fri Sep 29 2006 Seth Vidal - 2.9.8 * Tue Sep 26 2006 Seth Vidal - 2.9.7 * Wed Sep 6 2006 Seth Vidal - 2.9.6 * Mon Aug 21 2006 Seth Vidal - 2.9.5 * Wed Aug 9 2006 Seth Vidal - 2.9.4 * Wed Jul 12 2006 Seth Vidal - 2.9.3 * Tue Jun 27 2006 Jeremy Katz - add bits for yum-updatesd subpackage * Tue Jun 27 2006 Seth Vidal - 2.9.2 * Wed Jun 21 2006 Seth Vidal - remove libxml2 dep * Sun Jun 18 2006 Seth Vidal - 2.9.1 * Tue Mar 7 2006 Seth Vidal - 2.9.0 - new dev cycle * Mon Mar 6 2006 Seth Vidal - 2.6.0 * Wed Feb 22 2006 Seth Vidal - 2.5.3 * Sun Jan 8 2006 Seth Vidal - 2.5.1 * Sun Aug 14 2005 Seth Vidal - 2.5.0 * Fri Aug 5 2005 Seth Vidal - back to libxml2-python req * Fri Jul 8 2005 Seth Vidal - 2.3.4 * Tue Jun 14 2005 Seth Vidal - 2.3.3 * Wed Apr 6 2005 Seth Vidal - added python-elementtree dep, remove libxml2 dep * Mon Apr 4 2005 Seth Vidal - 2.3.2 * Mon Mar 28 2005 Seth Vidal - add in the /etc/yum/*.yum yum shell files * Mon Mar 7 2005 Seth Vidal - 2.3.1 - get rid of old obsoletes * Fri Feb 25 2005 Gijs Hollestelle - Require python-sqlite * Fri Feb 25 2005 Seth Vidal - add yum.cron to weekly to clean packages * Mon Feb 21 2005 Seth Vidal - new devel branch - 2.3.0 * Tue Jan 25 2005 Seth Vidal - 2.1.13 * Sat Nov 27 2004 Seth Vidal - 2.1.12 * Wed Oct 27 2004 Seth Vidal - 2.1.11 * Tue Oct 19 2004 Seth Vidal - 2.1.10 * Mon Oct 18 2004 Seth Vidal - 2.1.9 - paper bag release * Mon Oct 18 2004 Seth Vidal - 2.1.8 * Wed Oct 13 2004 Seth Vidal - update to 2.1.7 - re-include yum-arch w/deprecation notice * Wed Oct 6 2004 Seth Vidal - mdcaching code and list changes - 2.1.6 * Mon Oct 4 2004 Seth Vidal - 2.1.5 - lots of minor bugfixes and corrections * Tue Sep 28 2004 Seth Vidal - 2.1.4 * Fri Sep 3 2004 Seth Vidal - big depsolver update * Wed Sep 1 2004 Seth Vidal - more changes * Tue Aug 31 2004 Seth Vidal - all new stuff for 2.1.X * Mon Sep 8 2003 Seth Vidal - brown paper-bag 2.0.3 * Sun Sep 7 2003 Seth Vidal - bump to 2.0.2 * Fri Aug 15 2003 Seth Vidal - bump to 2.0.1 * Sun Jul 13 2003 Seth Vidal - bump to 2.0 * Sat Jul 12 2003 Seth Vidal - made yum.cron config(noreplace) * Sat Jun 7 2003 Seth Vidal - add stubs to spec file for rebuilding easily with custom yum.conf and - yum.cron files * Sat May 31 2003 Seth Vidal - bump to 1.98 * Mon Apr 21 2003 Seth Vidal - bump to 1.97 * Wed Apr 16 2003 Seth Vidal - moved to fhs compliance - ver to 1.96 * Mon Apr 7 2003 Seth Vidal - updated for 1.95 betaish release - remove /sbin legacy - no longer starts up by default - do the find_lang thing * Sun Dec 22 2002 Seth Vidal - bumped ver to 0.9.4 - new spec file for rhl 8.0 * Sun Oct 20 2002 Seth Vidal - bumped ver to 0.9.3 * Mon Aug 26 2002 Seth Vidal - bumped ver to 0.9.2 * Thu Jul 11 2002 Seth Vidal - bumped ver to 0.9.1 * Thu Jul 11 2002 Seth Vidal - bumped ver to 0.9.0 * Thu Jul 11 2002 Seth Vidal - added rpm require * Sun Jun 30 2002 Seth Vidal - 0.8.9 * Fri Jun 14 2002 Seth Vidal - 0.8.7 * Thu Jun 13 2002 Seth Vidal - bumped to 0.8.5 * Thu Jun 13 2002 Seth Vidal - bumped to 0.8.4 * Sun Jun 9 2002 Seth Vidal - bumped to 0.8.2 * Thu Jun 6 2002 Seth Vidal - First packaging