%define group System/Configuration/Packaging Name: urpmi Version: 2.1 Release: 7mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate Summary: User mode rpm install Requires: eject, webfetch PreReq: perl-gettext, rpmtools >= 3.1-9mdk BuildRequires: libbzip2-devel rpm-devel BuildRoot: %{_tmppath}/%{name}-buildroot Group: %{group} %description urpmi takes care of dependencies between rpms, using a pool (or pools) of rpms. You can compare rpm vs. urpmi with insmod vs. modprobe %package -n gurpmi Summary: User mode rpm GUI install Requires: urpmi grpmi gchooser gmessage Group: %{group} %description -n gurpmi gurpmi is a graphical front-end to urpmi %package -n autoirpm Summary: Auto install of rpm on demand Requires: sh-utils urpmi gurpmi xtest gmessage gurpmi Group: %{group} %description -n autoirpm Auto install of rpm on demand %prep %setup -q -n %{name} %install rm -rf $RPM_BUILD_ROOT make PREFIX=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir} install install -d $RPM_BUILD_ROOT/var/lib/urpmi/autoirpm.scripts for dir in partial headers rpms do install -d $RPM_BUILD_ROOT/var/cache/urpmi/$dir done install -m 644 autoirpm.deny $RPM_BUILD_ROOT/etc/urpmi cat <$RPM_BUILD_ROOT/etc/urpmi/inst.list # Here you can specify packages that need to be installed instead # of being upgraded (typically kernel packages). kernel kernel-smp kernel-secure kernel-enterprise kernel-linus2.2 kernel-linus2.4 kernel22 kernel22-secure kernel22-smp hackkernel EOF mkdir -p $RPM_BUILD_ROOT%{perl_sitearch} install -m 644 urpm.pm $RPM_BUILD_ROOT%{perl_sitearch} find $RPM_BUILD_ROOT%{_datadir}/locale -name %{name}.mo | \ perl -pe 'm|locale/([^/_]*)(.*)|; $_ = "%%lang($1) %{_datadir}/locale/$1$2\n"' > %{name}.lang cd $RPM_BUILD_ROOT%{_bindir} ; mv -f rpm-find-leaves urpmi_rpm-find-leaves mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/urpmi %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/$RPM_PACKAGE_NAME %preun if [ "$1" = "0" ]; then rm -rf /var/lib/urpmi/* fi exit 0 %post [ -z "$DURING_INSTALL" -a -f /var/lib/urpmi/depslist ] && %{_sbindir}/urpmi.update -a rm -f /var/lib/urpmi/depslist %preun -n autoirpm [ -x %{_sbindir}/autoirpm.uninstall ] && %{_sbindir}/autoirpm.uninstall %files -f %{name}.lang %defattr(-,root,root) %dir /etc/urpmi %dir /var/lib/urpmi %dir /var/cache/urpmi %dir /var/cache/urpmi/partial %dir /var/cache/urpmi/headers %dir /var/cache/urpmi/rpms %config(noreplace) /etc/urpmi/skip.list %config(noreplace) /etc/urpmi/inst.list %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_bindir}/urpmi_rpm-find-leaves %{_bindir}/urpmf %{_bindir}/urpmq %{_sbindir}/urpmi %{_sbindir}/urpme %{_sbindir}/urpmi.* %{_mandir}/man?/urpm* # find_lang isn't able to find man pages yet... %lang(fr) %{_mandir}/fr/man?/urpm* %{perl_sitearch}/urpm.pm %files -n gurpmi %defattr(-,root,root) /usr/X11R6/bin/gurpmi %files -n autoirpm %defattr(-,root,root) %dir /var/lib/urpmi/autoirpm.scripts %config(noreplace) /etc/urpmi/autoirpm.deny %{_sbindir}/autoirpm.* %{_mandir}/man?/autoirpm* # find_lang isn't able to find man pages yet... %lang(fr) %{_mandir}/fr/man?/autoirpm* %{_bindir}/_irpm %doc README-autoirpm-icons autoirpm.README %changelog * Thu Nov 29 2001 François Pons 2.1-7mdk - fixed -p flag with choices. - fixed -p kernel which may glob another kernel package. * Wed Nov 28 2001 François Pons 2.1-6mdk - updated requires to webfetch. - updated requires to last rpmtools needed. * Wed Nov 28 2001 François Pons 2.1-5mdk - fixed URL with trailing slashes. - added download log. * Wed Nov 28 2001 François Pons 2.1-4mdk - fixed incovation of sync method even when no files to sync. - fixed urpmq option management (-m|-M equ -du but necessary by default). - fixed %%preun of autoirpm to check previous installation. - added small doc in /etc/urpmi/inst.list file. * Tue Nov 27 2001 François Pons 2.1-3mdk - added curl support (kept wget support). - updated help for urpmi, urpmi.update and urpmi.addmedia. - fixed bad check of urpmi.addmedium for existing name. - avoid some error message if description is missing (not all). - allow any prefix for url (especially removable://...). * Tue Nov 27 2001 François Pons 2.1-2mdk - removed old optimization to get existing depslist instead of rebuilding it. * Mon Nov 26 2001 François Pons 2.1-1mdk - removed obsoleted code in urpm module. - ignore -m, -M and -c flag of urpmi/urpmq. - fixed group display of urpmq. - added -f for urpmq to display full package name. - fixed -d of urpmq. - fixed --auto-select and files of package not obsoleted but present in other registered package (no more selected). - fixed call to grpmi (no more only installation). * Wed Nov 21 2001 François Pons 2.0-7mdk - fixed missing urpmi configuration file not read. - fixed bad output of rpm files to be installed or upgraded. - fixed bad check of missing rpm files. * Mon Nov 19 2001 François Pons 2.0-6mdk - fixed --auto-select and rpm file upload. * Fri Nov 16 2001 François Pons 2.0-5mdk - added /etc/urpmi/inst.list support. * Thu Nov 15 2001 François Pons 2.0-4mdk - first stable support for updating synthesis file. * Mon Nov 12 2001 François Pons 2.0-3mdk - added minimal support for updating synthesis file (untested). - fixed requires resolution bug (thanks to Borsenkow Andrej). * Fri Nov 9 2001 François Pons 2.0-2mdk - added error message if not root. - fixed some removable device bad regexp (to support new format). - avoid installing source package (downloaded but ignored). * Tue Nov 6 2001 François Pons 2.0-1mdk - no more need for removable device selection in URL (autoprobe but need removable://) but old description still accepted. - fix some mount/umount problem. - improve -m mode speed. - obsolete -M mode (-M is still recognized on command line but same as -m). - depslist is no more calculated with dependencies (now optional). - everything now as 2.0 version. * Sat Oct 27 2001 Pixel 1.7-15mdk - fix urpme with i18n (thanks to Andrej Borsenkow) - fix urpme with regexp-like arguments (mainly things with "++") (thanks to Alexander Skwar) * Mon Sep 24 2001 François Pons 1.7-14mdk - fixed stale rpm file (filesize set to 0) in urpmi cache. * Wed Sep 19 2001 François Pons 1.7-13mdk - avoid possible error on trying to remove package. - avoid error message which are more warning. * Mon Sep 17 2001 François Pons 1.7-12mdk - fixed urpmq usage of urpm library. * Tue Sep 11 2001 François Pons 1.7-11mdk - fixed unable to add a ftp or http medium when with_hdlist is set to a value without / inside. * Tue Sep 11 2001 François Pons 1.7-10mdk - fixed error about urpmi saying package already installed. - fixed wrong propagation of indirect updates (-m mode only). * Mon Sep 10 2001 François Pons 1.7-9mdk - moved depslist computation out of loop of reading. * Mon Sep 3 2001 François Pons 1.7-8mdk - updated fr man pages (pablo). - avoid eject removable medium if --auto is given. - avoid stat in /dev directory. * Fri Aug 31 2001 François Pons 1.7-7mdk - added --allow-medium-change to urpmi. - moved autoirpm french man page to autoirpm package. * Wed Aug 29 2001 François Pons 1.7-6mdk - fixed multiple asking of same choices. - possibly fixed array error in resolving choices. - fixed wrong reference to fr man pages. * Wed Aug 29 2001 François Pons 1.7-5mdk - rebuild with latest rpm. * Thu Jul 26 2001 François Pons 1.7-4mdk - fixed tentative to always install package with -m mode. * Wed Jul 25 2001 François Pons 1.7-3mdk - really fix crazy behaviour of --auto-select. - fixed local packages install. * Wed Jul 25 2001 François Pons 1.7-2mdk - fixed crazy behaviour of --auto-select that try to select the whole word (no filtering of installed packages). * Mon Jul 23 2001 François Pons 1.7-1mdk - updated to use newer rpmtools 3.1. * Mon Jul 16 2001 Daouda Lo 1.6-14mdk - resync with cvs. * Sat Jul 14 2001 Daouda Lo 1.6-13mdk - added urpmi logrotate file - more macroz * Thu Jul 5 2001 François Pons 1.6-12mdk - fixed wrong dependencies resolution for local packages in minimal mode. - improved urpmf. - updated man pages. * Thu Jul 5 2001 François Pons 1.6-11mdk - take care of local packages. * Wed Jul 4 2001 François Pons 1.6-10mdk - fixed bad packages installed on some cases. * Mon Jul 2 2001 François Pons 1.6-9mdk - fixed missing rpmtools reference in urpm library. - changed die in fatal error. * Mon Jul 2 2001 François Pons 1.6-8mdk - fixed typo by pixel. - fixed bad reference in urpm reported by Michael Reinsch. - fixed dependencies for closure with old packages. - added --update flag to urpmi.addmedia * Thu Jun 28 2001 François Pons 1.6-7mdk - added update flag to medium. - fixed -M algortihms with epoch (serial) uses. * Wed Jun 27 2001 François Pons 1.6-6mdk - fix problem interpreting serial. * Wed Jun 27 2001 François Pons 1.6-5mdk - take care of epoch (serial) for version comparison. * Tue Jun 26 2001 François Pons 1.6-4mdk - cleaned source package extraction algorithm. * Mon Jun 25 2001 François Pons 1.6-3mdk - reworked algorithms to search packages, added -p options to urpmi and urpmq. * Thu Jun 21 2001 François Pons 1.6-2mdk - finished i18n support for urpmi.*media. * Wed Jun 20 2001 François Pons 1.6-1mdk - simplified urpmf. - fixed typo in %%post. - fix i18n support and allow l10n of all error message. - simplified error code of urpmi/urpmq. - new version. * Thu Jun 14 2001 François Pons 1.5-41mdk - build release for new rpm. * Wed May 30 2001 François Pons 1.5-40mdk - avoid including bad rpm filename or with src arch. - make sure not to reference basesystem if it does not exists. - fixed --auto to avoid user intervention. * Tue May 29 2001 François Pons 1.5-39mdk - fixed broken dependancies. * Wed May 23 2001 Pixel 1.5-38mdk - really remove all group urpmi * Wed May 23 2001 Pixel 1.5-37mdk - removed setuid bit, now stop yelling or go get f* * Tue May 22 2001 François Pons 1.5-36mdk - fixed warning if src rpm are in repository. * Tue May 22 2001 François Pons 1.5-35mdk - added synthesis file filtering. - added arch chekc support. * Tue Apr 17 2001 François Pons 1.5-34mdk - fixed sorting of list file. * Tue Apr 17 2001 François Pons 1.5-33mdk - make sure building of synthesis files are done. - return error if file given are wrong. * Fri Apr 13 2001 François Pons 1.5-32mdk - fixed typo on urpmf man pages. - fixed urpmi return exit code of grpmi on error. - fixed cancel on medium change dialog (gurpmi or --X). * Tue Apr 10 2001 François Pons 1.5-31mdk - fixed error on .listing file in rpms cache directory. * Tue Apr 10 2001 François Pons 1.5-30mdk - fixed header clean-up. - updated man pages. * Mon Apr 9 2001 François Pons 1.5-29mdk - fixed some missing requires for -m mode. - fixed bad search with version and release. * Thu Apr 05 2001 François Pons 1.5-28mdk - updated man pages. - fixed remove of synthesis file before update. - fixed remanent rpm file in cache. * Tue Apr 3 2001 François Pons 1.5-27mdk - added better error management. - fixed some typo for cache management (creating /partial). * Tue Mar 27 2001 François Pons 1.5-26mdk - added --WID=id - let grpmi make the upload of packages. * Mon Mar 26 2001 François Pons 1.5-25mdk - sort list file so that rpm are sorted when installed. - increase speed for --auto-select: implies -M by default. - added support for retrieving descriptions file. * Mon Mar 26 2001 François Pons 1.5-24mdk - fixed annoying message when adding a medium (cp). * Fri Mar 23 2001 François Pons 1.5-23mdk - added synthesis hdlist file support to speed up -m mode. * Sun Mar 18 2001 Pixel 1.5-22mdk - fix for gmessage and quotes - adapt autoirpm.update to new hdlists * Thu Mar 15 2001 Pixel 1.5-21mdk - update urpmi_rpm-find-leaves * Fri Mar 9 2001 François Pons 1.5-20mdk - check whatprovides by examining path too for mode -m. - fixed incorrect requires/provides association for mode -m. * Wed Mar 7 2001 François Pons 1.5-19mdk - fixed default -m mode for urpmq. - added log for getting packages (wget) and installing them. - avoid asking user if everything is already installed. * Wed Mar 7 2001 François Pons 1.5-18mdk - fixed last line not printed for rpm output. * Mon Mar 5 2001 François Pons 1.5-17mdk - fixed ask choices for urpmi -m mode. - changed default behaviour to abort transaction on error. * Mon Mar 5 2001 François Pons 1.5-16mdk - make sure to kill sub process that are doing log to avoid lock. * Sat Mar 3 2001 François Pons 1.5-15mdk - urpmi mode set to -m by default. * Thu Mar 1 2001 François Pons 1.5-14mdk - update with newer rpmtools interface. * Tue Feb 27 2001 François Pons 1.5-13mdk - fixed removable cdrom old format extraction. - fixed bad i18n usage. * Tue Feb 27 2001 François Pons 1.5-12mdk - removed use of tee, now forked. * Tue Feb 27 2001 François Pons 1.5-11mdk - fixed cohabitation of --auto-select and skip list. - added -m mode for urpmq. - added --sources flag for urpmq. * Mon Feb 26 2001 François Pons 1.5-10mdk - fixed auto-select flag to use dependancies resolver after. * Mon Feb 26 2001 François Pons 1.5-9mdk - fixed big bug of provides files completely read but only files should be extracted with no package description. - added log for depslist computation. * Fri Feb 23 2001 François Pons 1.5-8mdk - fix --auto-select and skip list. * Fri Feb 23 2001 François Pons 1.5-7mdk - added /etc/urpmi/skip.list for package that should not be upgraded. - remove -v option of urpmq to match -v as verbose. * Mon Feb 19 2001 François Pons 1.5-6mdk - fixed urpmq --headers with exotic rpm filename. - fixed closing using tee (need testing). - fixed missing dependancies resolution using -m mode. * Mon Feb 19 2001 François Pons 1.5-5mdk - fixed -m mode for prompting user if needed. - fixed -m mode with depandancies resolving. - avoid update urpmi db except if old urpmi. * Fri Feb 16 2001 François Pons 1.5-4mdk - fixed -m mode with failed depandancies. * Fri Feb 16 2001 François Pons 1.5-3mdk - added -m flag to urpmi for minimal upgrade. - fixed urpmq olding approach of local rpm (added --force too as in urpmi). - fixed some i18n usage. * Wed Feb 14 2001 François Pons 1.5-2mdk - removable medium are not automatically updated now. - remove need of number removable device when adding a new medium. * Wed Feb 14 2001 François Pons 1.5-1mdk - added --auto-select flag for urpmi and urpmq. - added --headers flag to urpmq. - changed help screen for both urpmi and urpmq. * Mon Feb 05 2001 François Pons 1.4-7mdk - fixed wrong probing of medium list file. * Mon Feb 5 2001 François Pons 1.4-6mdk - fixed missing mounting on non removable device like nfs. - flush STDERR and STDOUT before exiting. * Tue Jan 30 2001 François Pons 1.4-5mdk - added medium change code. - fixed urpmi with local file. - changed default option to verbose when invoking rpm. * Thu Jan 25 2001 François Pons 1.4-4mdk - added code to search for source rpms file to install. - modified manipulation of ignore flag, keep media name unique. - added missing cache directory in spec file. - lot of fixes on urpm core library. * Thu Jan 25 2001 François Pons 1.4-3mdk - need rpmtools-2.1-9mdk or above for hdlist building extension. - introduced cache directory for medium and rpms manipulation. * Wed Jan 17 2001 François Pons 1.4-2mdk - removed PreReq on genbasefiles, now PreReq rpmtools-2.1-8mdk or above. - fixed glitches in urpm.pm module about old format of urpmi.cfg. * Tue Jan 16 2001 François Pons 1.4-1mdk - extract urpmi/urpmq common code and newer code for medium management in perl module urpm. - rewrite tools to use the module. * Mon Nov 27 2000 François Pons 1.3-12mdk - fixed urpmi.addmedia if already added media are no more accessible. * Thu Nov 16 2000 François Pons 1.3-11mdk - fixed compilation problems. * Mon Sep 25 2000 François Pons 1.3-10mdk - updated urpme to depslist.ordered. * Wed Sep 20 2000 Guillaume Cottenceau 1.3-9mdk - in --auto under X, does not display anymore the sucking interactive dialog "everything already installed" * Wed Sep 20 2000 Guillaume Cottenceau 1.3-8mdk - added option --best-output that selects X if available * Wed Sep 13 2000 François Pons 1.3-7mdk - trusting root only readable file list.*, fixes gurpmi with mutlitple media examination. - removed setuid root on urpmq. * Tue Sep 05 2000 François Pons 1.3-6mdk - split query mode of urpmi into new tools urpmq. - fixed -v option of urpmi. - updated man pages of various tools. * Sun Sep 03 2000 François Pons 1.3-5mdk - fixed incorporation of media with already defined packages, choose the relocated one by rpmtools library. * Fri Sep 01 2000 François Pons 1.3-4mdk - fixed --auto usage (thanks to Garbage Collector). - fixed urpmi.addmedia with glob on rpm files only. * Thu Aug 31 2000 François Pons 1.3-3mdk - Oops, fixed typo in post. * Tue Aug 31 2000 François Pons 1.3-2mdk - added code to proper upgrade of urpmi 1.2. - added small correction in urpmi for basesystem selection. - fixed help invocation (thanks to Bryan Paxton). - modified urpmf not to use rpmtools-compat. * Mon Aug 28 2000 François Pons 1.3-1mdk - 1.3 of urpmi. - use rpmtools perl interface to access hdlist and build requires. * Sun Aug 6 2000 Pixel 1.2-4mdk - use %%lang for i18n'd files - clean /var/lib/urpmi on removal - urpmi local_file only if local_file ends with .rpm * Wed Jul 19 2000 Pixel 1.2-3mdk - change versions of autoirpm and gurpmi - macroization, BM * Thu Jun 29 2000 Pixel 1.2-1mdk - nice fixes from diablero (mainly better generation of list.*) * Tue Jun 13 2000 Pixel 1.1-7mdk - add require wget (needed for ftp hdlist's) * Thu May 4 2000 Pixel 1.1-6mdk - urpmi: unset IFS * Tue Apr 4 2000 Pixel 1.1-5mdk - urpmi: add option --force to ignore errors * Sun Mar 26 2000 Pixel 1.1-4mdk - autoirpm.update: adapted to new hdlist format * Sun Mar 26 2000 Pixel 1.1-3mdk - urpmi can handle package files given on command line. It finds out the dependencies if possible. - added rpme (try it, you'll like it!) - don't try nodeps if file is missing - new group - adapted urpmi.addmedia to new hdlist's / multi-cd - adapted autoirpm.update-all to new rpmlib * Thu Mar 16 2000 Pixel 1.1-2mdk - increase version number of gurpmi and autoirpm * Tue Mar 7 2000 Pixel 1.1-1mdk - new version, compatible with new DrakX and new rpmtools - add man page for rpmf * Mon Feb 28 2000 Pixel 1.0-2mdk - unset $BASH_ENV * Sat Feb 12 2000 Pixel 1.0-1mdk - 1.0 - small urpmi man page change * Thu Feb 10 2000 Pixel 0.9-40mdk - unset $ENV to please -U * Wed Feb 9 2000 Pixel 0.9-39mdk - now really handle multiple args - new option ``-a'' to install all the proposed packages - add ability to --nodeps and --force in case of install errors * Mon Jan 10 2000 Pixel - bug fix from Brian J. Murrell * Fri Jan 7 2000 Pixel - urpmi: tty question now defaults to yes and acts that way! - add an example to urpmi.addmedia.8 * Thu Jan 6 2000 Pixel - urpmi: tty question now defaults to yes (y/N -> N/y) * Tue Jan 4 2000 Chmouel Boudjnah 0.9-34mdk - rpmf: use egrep. * Tue Jan 4 2000 Pixel - urpmi.addmedia: replaced hdlist2files by hdlist2names - rpmf: created * Mon Dec 27 1999 Pixel - fixed a bug in urpmi.addmedia * Fri Dec 24 1999 Pixel - more i18n * Wed Dec 22 1999 Pixel - added urpmi_rpm-find-leaves * Mon Dec 20 1999 Pixel - bug fix in autoirpm.update * Sun Dec 19 1999 Pixel - bug fix for autoirpm (bad directory) - enhancement to urpmi (in place gzip'ing) - small cute enhancements * Sat Dec 18 1999 Pixel - a lot of i18n added (thx2pablo) * Fri Dec 17 1999 Pixel - changed a message * Thu Dec 16 1999 Pixel - added -follow to the find (thanx2(ti){2}) * Wed Dec 15 1999 Pixel - fixed a bug in dependencies * Sat Dec 11 1999 Pixel - i18n using po-like style * Wed Dec 8 1999 Pixel - fixed a bug (gmessage called with no double quotes and i18n) * Thu Dec 2 1999 Pixel - better error output (both in /var/log/urpmi.* and stdout/stderr) * Fri Nov 26 1999 Pixel - some bug fixes * Tue Nov 23 1999 Pixel - include new man pages and doc from camille :) * Mon Nov 22 1999 Pixel - s|sbin|bin| in requires (again) (wow already monday!) * Sun Nov 21 1999 Pixel - autoirpm: added require gurpmi * Sat Nov 20 1999 Pixel - urpmi.addmedia modified * Wed Nov 17 1999 Pixel - corrected error in urpmi script - replaced dependency perl by /usr/bin/suidperl * Mon Nov 15 1999 Pixel - changed the handling of urpmi, added urpmi.addmedia...