summaryrefslogtreecommitdiffstats
path: root/anaconda-reconfig.spec.in
blob: a7d0cadd573fedbcf7f3f0ef5099bb7b5873a7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: anaconda-reconfig
Version: @@VERSION@@
Release: 1
Copyright: GPL
Summary: The Red Hat Linux first time booting configuration tool.
Group: Applications/System
Source: anaconda-reconfig-%{PACKAGE_VERSION}.tar.gz
Obsoletes: rhs-hwdiag setconsole
Prereq: chkconfig
BuildRoot: /tmp/anaconda-reconfig-%{PACKAGE_VERSION}

%description
anaconda-reconfig is usually run the first-time a pre-installed computer
is booted. It allows the first-time user to configure localized
attributes like timezone and root password.


%prep

%setup -q

%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make RECFGDESTDIR=$RPM_BUILD_ROOT install-reconfig
strip $RPM_BUILD_ROOT/usr/sbin/anaconda-reconfig
strip $RPM_BUILD_ROOT/usr/sbin/ddcprobe

%clean
rm -rf $RPM_BUILD_ROOT

%post
chkconfig --add reconfig

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

%files
%defattr(-,root,root)
%doc README
/usr/sbin/anaconda-reconfig
/usr/sbin/ddcprobe
/usr/sbin/anaconda/*

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


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