[35] | 1 | #
|
---|
| 2 | # $Id: mindi.spec 1079 2007-01-28 16:58:18Z bruno $
|
---|
| 3 | #
|
---|
[1] | 4 | Summary: Mindi creates emergency boot disks/CDs using your kernel, tools and modules
|
---|
[561] | 5 | Name: mindi
|
---|
| 6 | Version: VVV
|
---|
[729] | 7 | Release: RRR
|
---|
[1] | 8 | License: GPL
|
---|
[561] | 9 | Group: GRP
|
---|
[496] | 10 | Url: http://www.mondorescue.org
|
---|
[561] | 11 | Source: SSS
|
---|
[496] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[839] | 13 | ExcludeArch: ppc
|
---|
[863] | 14 | Requires: bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, mindi-busybox DDD
|
---|
[729] | 15 | OBS
|
---|
[20] | 16 | # Not on all systems
|
---|
| 17 | #Conflicts: bonnie++
|
---|
[1] | 18 |
|
---|
| 19 | %description
|
---|
| 20 | Mindi takes your kernel, modules, tools and libraries, and puts them on N
|
---|
| 21 | bootable disks (or 1 bootable CD image). You may then boot from the disks/CD
|
---|
| 22 | and do system maintenance - e.g. format partitions, backup/restore data,
|
---|
| 23 | verify packages, etc.
|
---|
| 24 |
|
---|
| 25 | %prep
|
---|
[729] | 26 | %setup -n %name-%{version}
|
---|
[1] | 27 |
|
---|
| 28 | %build
|
---|
| 29 | %ifarch ia64
|
---|
[50] | 30 | %{__make} -f Makefile.parted2fdisk clean
|
---|
| 31 | %{__make} -f Makefile.parted2fdisk
|
---|
[1] | 32 | %endif
|
---|
| 33 |
|
---|
| 34 | %install
|
---|
[496] | 35 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[50] | 36 | export DONT_RELINK=1
|
---|
| 37 |
|
---|
[939] | 38 | export HEAD=${RPM_BUILD_ROOT}
|
---|
| 39 | export PREFIX=%{_exec_prefix}
|
---|
| 40 | # Bug on x86_64 on _sysconfdir on rhel4 at least
|
---|
| 41 | %ifarch x86_64
|
---|
| 42 | export CONFDIR=/etc
|
---|
| 43 | %else
|
---|
| 44 | export CONFDIR=%{_sysconfdir}
|
---|
| 45 | %endif
|
---|
| 46 | export MANDIR=%{_mandir}
|
---|
| 47 | export DOCDIR=%{_docdir}
|
---|
| 48 | export LIBDIR=%{_libdir}
|
---|
[179] | 49 | export RPMBUILDMINDI="true"
|
---|
[50] | 50 |
|
---|
[179] | 51 | ./install.sh
|
---|
[50] | 52 |
|
---|
[1] | 53 | %clean
|
---|
| 54 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 55 |
|
---|
| 56 | %files
|
---|
[729] | 57 | %defattr(-,root,root)
|
---|
[461] | 58 | %config(noreplace) %{_sysconfdir}/mindi/deplist.txt
|
---|
| 59 | %config(noreplace) %{_sysconfdir}/mindi/deplist.d/*
|
---|
| 60 | %config(noreplace) %{_sysconfdir}/mindi/mindi.conf
|
---|
[929] | 61 | %config(noreplace) %{_sysconfdir}/mindi/mindi.conf.dist
|
---|
[1079] | 62 | %config(noreplace) %{_sysconfdir}/mindi/mindi.conf.dist.md5
|
---|
[315] | 63 | %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
|
---|
[426] | 64 | %{_mandir}/man8/*
|
---|
[200] | 65 | %{_libdir}/mindi
|
---|
[588] | 66 | %{_sbindir}/*
|
---|
[1] | 67 |
|
---|
| 68 | %changelog
|
---|