| 1 | %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|---|
| 2 |
|
|---|
| 3 | Summary: RPM installer/updater
|
|---|
| 4 | Name: yum
|
|---|
| 5 | Version: 3.2.27
|
|---|
| 6 | Release: 6%{?dist}
|
|---|
| 7 | License: GPLv2+
|
|---|
| 8 | Group: System Environment/Base
|
|---|
| 9 | Source0: http://yum.baseurl.org/download/3.2/%{name}-%{version}.tar.gz
|
|---|
| 10 | Source1: python-wrapper.zip
|
|---|
| 11 |
|
|---|
| 12 | Patch0: yum-os2.diff
|
|---|
| 13 |
|
|---|
| 14 | URL: http://yum.baseurl.org/
|
|---|
| 15 |
|
|---|
| 16 | BuildArch: noarch
|
|---|
| 17 | BuildRequires: python
|
|---|
| 18 | BuildRequires: gettext
|
|---|
| 19 | BuildRequires: intltool
|
|---|
| 20 |
|
|---|
| 21 | Conflicts: pirut < 1.1.4
|
|---|
| 22 |
|
|---|
| 23 | Requires: python >= 2.4, rpm-python, rpm >= 0:4.4.2
|
|---|
| 24 | #Requires: python-iniparse
|
|---|
| 25 | Requires: python-sqlite
|
|---|
| 26 | Requires: urlgrabber >= 3.1.0-0
|
|---|
| 27 | Requires: yum-metadata-parser >= 1.1.0
|
|---|
| 28 | #Requires: pygpgme
|
|---|
| 29 | Obsoletes: yum-skip-broken <= 1.1.18
|
|---|
| 30 | Obsoletes: yum-basearchonly <= 1.1.9
|
|---|
| 31 | Obsoletes: yum-allow-downgrade < 1.1.20-0
|
|---|
| 32 | Obsoletes: yum-plugin-allow-downgrade < 1.1.22-0
|
|---|
| 33 | Obsoletes: yum-plugin-protect-packages < 1.1.27-0
|
|---|
| 34 | Provides: yum-skip-broken
|
|---|
| 35 | Provides: yum-basearchonly
|
|---|
| 36 | Provides: yum-allow-downgrade
|
|---|
| 37 | Provides: yum-plugin-allow-downgrade
|
|---|
| 38 | Provides: yum-protect-packages
|
|---|
| 39 | Provides: yum-plugin-protect-packages
|
|---|
| 40 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 41 |
|
|---|
| 42 | Requires: python
|
|---|
| 43 | Requires: python(abi) = %{python_version}
|
|---|
| 44 |
|
|---|
| 45 | %description
|
|---|
| 46 | Yum is a utility that can check for and automatically download and
|
|---|
| 47 | install updated RPM packages. Dependencies are obtained and downloaded
|
|---|
| 48 | automatically, prompting the user for permission as necessary.
|
|---|
| 49 |
|
|---|
| 50 | %package updatesd
|
|---|
| 51 | Summary: Update notification daemon
|
|---|
| 52 | Group: Applications/System
|
|---|
| 53 | Requires: yum = %{version}-%{release}
|
|---|
| 54 | Requires: dbus-python
|
|---|
| 55 | Requires: pygobject2
|
|---|
| 56 | Requires(preun): /sbin/chkconfig
|
|---|
| 57 | Requires(post): /sbin/chkconfig
|
|---|
| 58 | Requires(preun): /sbin/service
|
|---|
| 59 | Requires(post): /sbin/service
|
|---|
| 60 |
|
|---|
| 61 | %description updatesd
|
|---|
| 62 | yum-updatesd provides a daemon which checks for available updates and
|
|---|
| 63 | can notify you when they are available via email, syslog or dbus.
|
|---|
| 64 |
|
|---|
| 65 | %package debug
|
|---|
| 66 | Summary: HLL debug data for exception handling support.
|
|---|
| 67 |
|
|---|
| 68 | %description debug
|
|---|
| 69 | HLL debug data for exception handling support.
|
|---|
| 70 |
|
|---|
| 71 | %prep
|
|---|
| 72 | %setup -q -a 1
|
|---|
| 73 | %patch0 -p1
|
|---|
| 74 |
|
|---|
| 75 | %build
|
|---|
| 76 | export MAKESHELL="/@unixroot/usr/bin/sh"
|
|---|
| 77 | export PERL_SH_DIR="/@unixroot/usr/bin"
|
|---|
| 78 | make
|
|---|
| 79 |
|
|---|
| 80 | %install
|
|---|
| 81 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 82 | export MAKESHELL="/@unixroot/usr/bin/sh"
|
|---|
| 83 | export PERL_SH_DIR="/@unixroot/usr/bin"
|
|---|
| 84 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 85 | #install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/yum.conf
|
|---|
| 86 | #mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d $RPM_BUILD_ROOT/usr/lib/yum-plugins
|
|---|
| 87 |
|
|---|
| 88 | # for now, move repodir/yum.conf back
|
|---|
| 89 | #mv $RPM_BUILD_ROOT/%{_sysconfdir}/yum/repos.d $RPM_BUILD_ROOT/%{_sysconfdir}/yum.repos.d
|
|---|
| 90 | #rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum.conf
|
|---|
| 91 |
|
|---|
| 92 | # yum-updatesd has moved to the separate source version
|
|---|
| 93 | rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum-updatesd.conf
|
|---|
| 94 | rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/yum-updatesd
|
|---|
| 95 | rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/dbus-1/system.d/yum-updatesd.conf
|
|---|
| 96 | rm -f $RPM_BUILD_ROOT/%{_sbindir}/yum-updatesd
|
|---|
| 97 | rm -f $RPM_BUILD_ROOT/%{_mandir}/man*/yum-updatesd*
|
|---|
| 98 | rm -f $RPM_BUILD_ROOT/%{_datadir}/yum-cli/yumupd.py*
|
|---|
| 99 |
|
|---|
| 100 | # Ghost files:
|
|---|
| 101 | mkdir -p $RPM_BUILD_ROOT/%{_var}/lib/yum/history
|
|---|
| 102 | mkdir -p $RPM_BUILD_ROOT/%{_var}/lib/yum/plugins
|
|---|
| 103 | mkdir -p $RPM_BUILD_ROOT/%{_var}/lib/yum/yumdb
|
|---|
| 104 | touch $RPM_BUILD_ROOT/%{_var}/lib/yum/uuid
|
|---|
| 105 |
|
|---|
| 106 | #build exe wrapper
|
|---|
| 107 | gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | #%find_lang %name
|
|---|
| 111 |
|
|---|
| 112 | %clean
|
|---|
| 113 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 114 |
|
|---|
| 115 | %files
|
|---|
| 116 | # -f %{name}.lang
|
|---|
| 117 | %defattr(-, root, root, -)
|
|---|
| 118 | %doc README AUTHORS COPYING TODO INSTALL ChangeLog
|
|---|
| 119 | %config(noreplace) %{_sysconfdir}/yum/yum.conf
|
|---|
| 120 | %dir %{_sysconfdir}/yum
|
|---|
| 121 | %config(noreplace) %{_sysconfdir}/yum/version-groups.conf
|
|---|
| 122 | #%dir %{_sysconfdir}/yum/protected.d
|
|---|
| 123 | %dir %{_sysconfdir}/yum/repos.d
|
|---|
| 124 | #%dir %{_sysconfdir}/yum/vars
|
|---|
| 125 | %config(noreplace) %{_sysconfdir}/logrotate.d/yum
|
|---|
| 126 | %{_sysconfdir}/bash_completion.d
|
|---|
| 127 | %dir %{_datadir}/yum-cli
|
|---|
| 128 | %{_datadir}/yum-cli/*
|
|---|
| 129 | %{_bindir}/yum
|
|---|
| 130 | %{_bindir}/yum.exe
|
|---|
| 131 | #%{python_sitelib}/yum
|
|---|
| 132 | #%{python_sitelib}/rpmUtils
|
|---|
| 133 | %{_libdir}/*
|
|---|
| 134 | %dir %{_var}/cache/yum
|
|---|
| 135 | %dir %{_var}/lib/yum
|
|---|
| 136 | %ghost %{_var}/lib/yum/uuid
|
|---|
| 137 | %ghost %{_var}/lib/yum/history
|
|---|
| 138 | %ghost %{_var}/lib/yum/plugins
|
|---|
| 139 | %ghost %{_var}/lib/yum/yumdb
|
|---|
| 140 | %{_mandir}/man*/yum.*
|
|---|
| 141 | %{_mandir}/man*/yum-shell*
|
|---|
| 142 | # plugin stuff
|
|---|
| 143 | #%dir %{_sysconfdir}/yum/pluginconf.d
|
|---|
| 144 | #%dir /usr/lib/yum-plugins
|
|---|
| 145 | %{_usr}/share/locale/*
|
|---|
| 146 | %exclude %{_bindir}/*.dbg
|
|---|
| 147 |
|
|---|
| 148 | %files debug
|
|---|
| 149 | %defattr(-,root,root)
|
|---|
| 150 | %{_bindir}/*.dbg
|
|---|
| 151 |
|
|---|
| 152 | %changelog
|
|---|
| 153 | * Mon Apr 07 2014 yd
|
|---|
| 154 | - build for python 2.7.
|
|---|
| 155 |
|
|---|
| 156 | * Fri Mar 21 2014 yd
|
|---|
| 157 | - build wrapper agains pythonX.Y.exe
|
|---|
| 158 | - r396, makefiles updates for unixroot and python virtualenv changes.
|
|---|
| 159 | - added debug package with symbolic info for exceptq.
|
|---|