ExclusiveArch: i386
Name: anaconda
Version: 7.3
Release: 7f1
Copyright: GPL
Summary: The Red Hat Linux installation program.
Group: Applications/System
Source: anaconda-%{PACKAGE_VERSION}.tar.bz2
Obsoletes: anaconda-reconfig
BuildPreReq: pump-devel, kudzu-devel, pciutils-devel, bzip2-devel, e2fsprogs-devel, python-devel db3-devel gtk+-devel gnome-libs-devel rpm-python, newt-devel, rpm-devel, gettext >= 0.11, modutils-devel, dietlibc, kernel-pcmcia-cs
Prereq: chkconfig /etc/init.d
Requires: rpm-python
Excludearch: sparc sparc64

Patch1: anaconda-7.3-f1.comps-1.patch
Patch2: anaconda-7.3-f1.textw-userauth_text.patch
Patch3: anaconda-7.3-f1.installclasses-custom.patch
Patch4: anaconda-7.3-f1.fermiinstallclass.patch
Patch5: anaconda-7.3-f1.textw-installpath_text.patch
Patch6: anaconda-7.3-f1.iw-installpath_gui.patch
Patch7: anaconda-7.3-f1.installclasses-FermiStandAlone.patch
#Patch8: anaconda-7.3-f1.installclasses-FermiStandAloneupgrade.patch
Patch9: anaconda-7.3-f1.installclasses-OSS.patch
Patch10: anaconda-7.3-f1.installclasses-OSSupgrade.patch
Patch11: anaconda-7.3-f1.installclasses-workstation.patch
Patch12: anaconda-7.3-f1.installclasses-server.patch
Patch13: anaconda-7.3-f1.installclasses-Farms.patch
Patch14: anaconda-7.3-f1.installclasses-CPD.patch
Patch15: anaconda-7.3-f1.installclasses-CDF.patch
Patch16: anaconda-7.3-f1.installclasses-CMSfarm.patch
Patch17: anaconda-7.3-f1.installclasses-BooNE.patch
Patch18: anaconda-7.3-f1.installclasses-Astro.patch
Patch19: anaconda-7.3-f1.installclasses-Theory.patch
Patch20: anaconda-7.3-f1.installclasses-GenericFarm.patch
Patch21: anaconda-7.3-f1.installclasses-CMSserver.patch
Patch22: anaconda-7.3-f1.installclasses-CDFlevel3.patch
Patch23: anaconda-7.3-f1.installclasses-FnaluInteractive.patch
Patch24: anaconda-7.3-f1.installclasses-ConsoleServer.patch
Patch25: anaconda-7.3-f1.installclasses-CDFonline.patch
Patch26: anaconda-7.3-f1.installclasses-CMSdesktop.patch
Patch27: anaconda-7.3-f1.installclasses-FOCUS.patch
Patch28: anaconda-7.3-f1.installclasses-ODS.patch
Patch29: anaconda-7.3-f1.installclasses-laptop.patch

BuildRoot: /var/tmp/anaconda-%{PACKAGE_VERSION}

%description
The anaconda package contains portions of the Red Hat Linux
installation program which can then be run by the user for
reconfiguration and advanced installation options.

%package runtime
Summary: Red Hat Linux installer portions needed only for fresh installs.
Group: Applications/System
AutoReqProv: false

%description runtime
The anaconda-runtime package contains parts of the Red Hat Linux
installer which are needed for installing new systems. These files are
used to build Red Hat Linux media sets, but are not meant for use on
already installed systems.

%prep

%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
#%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1

%build

make depend
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
#strip $RPM_BUILD_ROOT/usr/sbin/ddcprobe

strip $RPM_BUILD_ROOT/usr/lib/anaconda/*.so

%clean
rm -rf $RPM_BUILD_ROOT

%post
chkconfig --add reconfig

%preun
if [ $1 = 0 ]; then
	chkconfig --del reconfig
fi

%files
%defattr(-,root,root)
%doc COPYING
%doc docs/command-line.txt
%doc docs/install-methods.txt
%doc docs/kickstart-docs.txt
%doc docs/kickstart-docs.html
%doc docs/anaconda-release-notes.txt
/usr/sbin/anaconda
/usr/share/anaconda
/usr/share/locale/*/*/*
/usr/lib/anaconda
%ifarch i386
/usr/sbin/ddcprobe
%endif

%config /etc/rc.d/init.d/reconfig

%files runtime
%defattr(-,root,root)
/usr/lib/anaconda-runtime

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)

%changelog
* %{date} Anaconda team <bugzilla@redhat.com>
- built new version from CVS

* Tue Apr 02 2002 Michael Fulbright <msf@redhat.com>
- added some more docs

* Fri Feb 22 2002 Jeremy Katz <katzj@redhat.com>
- buildrequire kernel-pcmcia-cs as we've sucked the libs the loader needs 
  to there now

* Wed Feb 20 2002 Jeremy Katz <katzj@redhat.com>
- buildrequires modutils-devel

* Wed Jul 18 2001 Jeremy Katz <katzj@redhat.com>
- own /usr/lib/anaconda and /usr/share/anaconda

* Fri Jan 12 2001 Matt Wilson <msw@redhat.com>
- sync text with specspo

* Thu Aug 10 2000 Matt Wilson <msw@redhat.com>
- build on alpha again now that I've fixed the stubs

* Wed Aug  9 2000 Michael Fulbright <drmike@redhat.com>
- new build

* Fri Aug  4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- allow also subvendorid and subdeviceid in trimpcitable

* Fri Jul 14 2000 Matt Wilson <msw@redhat.com>
- moved init script for reconfig mode to /etc/init.d/reconfig
- move the initscript back to /etc/rc.d/init.d
- Prereq: /etc/init.d

* Thu Feb 03 2000 Michael Fulbright <drmike@redhat.com>
- strip files
- add lang-table to file list

* Wed Jan 05 2000 Michael Fulbright <drmike@redhat.com>
- added requirement for rpm-python

* Mon Dec 06 1999 Michael Fulbright <drmike@redhat.com>
- rename to 'anaconda' instead of 'anaconda-reconfig'

* Fri Dec 03 1999 Michael Fulbright <drmike@redhat.com>
- remove ddcprobe since we don't do X configuration in reconfig now

* Tue Nov 30 1999 Michael Fulbright <drmike@redhat.com>
- first try at packaging reconfiguration tool

