Name : gyum Version : 1.0 Release : 1.fc1 License : GPL Summary : Graphical User Interface for Yum Group : System Environment/Base URL : http://fedoranews.org/tchung/gyum Vendor : FedoraNEWS.ORG Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source : %{name}-%{version}.tar.gz BuildArch : noarch BuildRequires : python BuildRequires : gettext Obsoletes : yum-phoebe yumi yumgui Requires : yum >= 2.0.7 Requires : python, rpm-python, rpm >= 0:4.1.1, libxml2-python, pygtk2 >= 2.0 Prereq : /sbin/chkconfig, /sbin/service %description Graphical User Interface for Yum %prep rm -rf %{buildroot} ####################################################################### # setup macro # -a num : Only unpack source number after changing to the directory # -b num : Only unpack source number before changing to the directory # -c : Create directory before unpacking. # -D : Do not delete the directory before unpacking # -n name : Name the directory as name # -q : Run quiety with minimum output # -T : Disable the automatic unpacking of the archives. ####################################################################### %setup %build ./py-compile *.py ######################################################### # Common Red Hat RPM macros (rpm --showrc for more info) # {_sourcedir} : /usr/src/redhat/SOURCES # {_builddir} : /usr/src/redhat/BUILD # {_tmppath} : /var/tmp # {_libdir} : /usr/lib # {_bindir} : /usr/bin # {_datadir} : /usr/share # {_mandir} : /usr/share/man # {_docdir} : /usr/share/doc # {buildroot} # {name} # {version} # {release} ######################################################### %install mkdir -p %{buildroot}%{_datadir}/yum mkdir -p %{buildroot}%{_bindir}/yum install -m755 gyum.pyc %{buildroot}%{_datadir}/yum/. install -m755 progress_bar.pyc %{buildroot}%{_datadir}/yum/. install -m755 gyum %{buildroot}%{_datadir}/yum/. install -m755 gyum.png %{buildroot}%{_datadir}/yum/. ln -s /usr/bin/consolehelper %{buildroot}%{_bindir}/gyum chmod +x %{buildroot}%{_datadir}/yum/gyum mkdir -p %{buildroot}%{_sysconfdir}/pam.d mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps install -m755 gyum.pam %{buildroot}%{_sysconfdir}/pam.d/gyum install -m755 gyum.console.app %{buildroot}%{_sysconfdir}/security/console.apps/gyum %clean rm -rf %{buildroot} %files ##################################################### # defattr sets the default attributes for all files ##################################################### %defattr(-, root, root) %{_datadir}/yum/* %{_bindir}/gyum %config(noreplace) %{_sysconfdir}/pam.d/gyum %config(noreplace) %{_sysconfdir}/security/console.apps/gyum %changelog * Fri Jul 30 2004 Thomas Chung - Initial RPM Build