1 | # |
---|
2 | # $Id: mindi.spec 454 2006-03-24 18:09:44Z bcornec $ |
---|
3 | # |
---|
4 | %define name mindi |
---|
5 | %define version VVV |
---|
6 | %define mrel RRR |
---|
7 | %define src SSS |
---|
8 | %define grp GRP |
---|
9 | %define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools |
---|
10 | %define addreq DDD |
---|
11 | %define rel %{mrel} |
---|
12 | |
---|
13 | Summary: Mindi creates emergency boot disks/CDs using your kernel, tools and modules |
---|
14 | Name: %name |
---|
15 | Version: %version |
---|
16 | Release: %rel |
---|
17 | License: GPL |
---|
18 | Group: %{grp} |
---|
19 | Url: http://mondorescue.berlios.de |
---|
20 | Source: %{src} |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
22 | Requires: %{addreq} |
---|
23 | # Not on all systems |
---|
24 | #Conflicts: bonnie++ |
---|
25 | |
---|
26 | %description |
---|
27 | Mindi takes your kernel, modules, tools and libraries, and puts them on N |
---|
28 | bootable disks (or 1 bootable CD image). You may then boot from the disks/CD |
---|
29 | and do system maintenance - e.g. format partitions, backup/restore data, |
---|
30 | verify packages, etc. |
---|
31 | |
---|
32 | %prep |
---|
33 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
34 | %setup -n %name-%{version} |
---|
35 | |
---|
36 | %build |
---|
37 | %ifarch ia64 |
---|
38 | %{__make} -f Makefile.parted2fdisk clean |
---|
39 | %{__make} -f Makefile.parted2fdisk |
---|
40 | %endif |
---|
41 | |
---|
42 | %install |
---|
43 | export DONT_RELINK=1 |
---|
44 | |
---|
45 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
46 | export PREFIX=${RPM_BUILD_ROOT}%{_exec_prefix} |
---|
47 | export CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir} |
---|
48 | export RPMBUILDMINDI="true" |
---|
49 | |
---|
50 | ./install.sh |
---|
51 | |
---|
52 | %clean |
---|
53 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
54 | |
---|
55 | %post |
---|
56 | if [ -f /usr/local/sbin/mindi ]; then |
---|
57 | echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual mindi installation !" |
---|
58 | fi |
---|
59 | |
---|
60 | %files |
---|
61 | %defattr(644,root,root,755) |
---|
62 | %config(noreplace) %{_sysconfdir}/mindi/deplist.txt |
---|
63 | %config(noreplace) %{_sysconfdir}/mindi/deplist.d/* |
---|
64 | %config(noreplace) %{_sysconfdir}/mindi/mindi.conf |
---|
65 | %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log |
---|
66 | %{_mandir}/man8/* |
---|
67 | %{_libdir}/mindi |
---|
68 | %attr(755,root,root) %{_sysconfdir}/mindi/mindi.conf |
---|
69 | %attr(755,root,root) %{_sbindir}/* |
---|
70 | %attr(755,root,root) %{_libdir}/mindi/aux-tools/sbin/* |
---|
71 | %attr(755,root,root) %{_libdir}/mindi/rootfs/bin/* |
---|
72 | %attr(755,root,root) %{_libdir}/mindi/rootfs/sbin/* |
---|
73 | |
---|
74 | %changelog |
---|