[35] | 1 | #
|
---|
| 2 | # $Id: mindi.spec 729 2006-07-30 14:06:39Z 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)
|
---|
[561] | 13 | Requires: bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools DDD
|
---|
[729] | 14 | OBS
|
---|
[20] | 15 | # Not on all systems
|
---|
| 16 | #Conflicts: bonnie++
|
---|
[1] | 17 |
|
---|
| 18 | %description
|
---|
| 19 | Mindi takes your kernel, modules, tools and libraries, and puts them on N
|
---|
| 20 | bootable disks (or 1 bootable CD image). You may then boot from the disks/CD
|
---|
| 21 | and do system maintenance - e.g. format partitions, backup/restore data,
|
---|
| 22 | verify packages, etc.
|
---|
| 23 |
|
---|
| 24 | %prep
|
---|
[729] | 25 | %setup -n %name-%{version}
|
---|
[1] | 26 |
|
---|
| 27 | %build
|
---|
| 28 | %ifarch ia64
|
---|
[50] | 29 | %{__make} -f Makefile.parted2fdisk clean
|
---|
| 30 | %{__make} -f Makefile.parted2fdisk
|
---|
[1] | 31 | %endif
|
---|
| 32 |
|
---|
| 33 | %install
|
---|
[496] | 34 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[50] | 35 | export DONT_RELINK=1
|
---|
| 36 |
|
---|
[235] | 37 | export PREFIX=${RPM_BUILD_ROOT}%{_exec_prefix}
|
---|
| 38 | export CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir}
|
---|
[179] | 39 | export RPMBUILDMINDI="true"
|
---|
[50] | 40 |
|
---|
[179] | 41 | ./install.sh
|
---|
[50] | 42 |
|
---|
[1] | 43 | %clean
|
---|
| 44 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 45 |
|
---|
| 46 | %post
|
---|
[179] | 47 | if [ -f /usr/local/sbin/mindi ]; then
|
---|
| 48 | echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual mindi installation !"
|
---|
| 49 | fi
|
---|
| 50 |
|
---|
[1] | 51 | %files
|
---|
[729] | 52 | %defattr(-,root,root)
|
---|
[461] | 53 | %config(noreplace) %{_sysconfdir}/mindi/deplist.txt
|
---|
| 54 | %config(noreplace) %{_sysconfdir}/mindi/deplist.d/*
|
---|
| 55 | %config(noreplace) %{_sysconfdir}/mindi/mindi.conf
|
---|
[315] | 56 | %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
|
---|
[426] | 57 | %{_mandir}/man8/*
|
---|
[200] | 58 | %{_libdir}/mindi
|
---|
[588] | 59 | %{_sysconfdir}/mindi/mindi.conf
|
---|
| 60 | %{_sbindir}/*
|
---|
[1] | 61 |
|
---|
| 62 | %changelog
|
---|