source: MondoRescue/trunk/mindi/distributions/rpm/mindi.spec@ 863

Last change on this file since 863 was 863, checked in by Bruno Cornec, 18 years ago

merge -r838:862 $SVN_M/branches/stable

  • Property svn:keywords set to Id
File size: 1.5 KB
RevLine 
[35]1#
2# $Id: mindi.spec 863 2006-10-01 22:26:44Z bruno $
3#
[1]4Summary: Mindi creates emergency boot disks/CDs using your kernel, tools and modules
[561]5Name: mindi
6Version: VVV
[729]7Release: RRR
[1]8License: GPL
[561]9Group: GRP
[496]10Url: http://www.mondorescue.org
[561]11Source: SSS
[496]12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
[839]13ExcludeArch: ppc
[863]14Requires: bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, mindi-busybox DDD
[729]15OBS
[20]16# Not on all systems
17#Conflicts: bonnie++
[1]18
19%description
20Mindi takes your kernel, modules, tools and libraries, and puts them on N
21bootable disks (or 1 bootable CD image). You may then boot from the disks/CD
22and do system maintenance - e.g. format partitions, backup/restore data,
23verify 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]36export DONT_RELINK=1
37
[235]38export PREFIX=${RPM_BUILD_ROOT}%{_exec_prefix}
39export CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir}
[179]40export RPMBUILDMINDI="true"
[50]41
[179]42./install.sh
[50]43
[1]44%clean
45%{__rm} -rf $RPM_BUILD_ROOT
46
47%post
[179]48if [ -f /usr/local/sbin/mindi ]; then
49 echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual mindi installation !"
50fi
51
[1]52%files
[729]53%defattr(-,root,root)
[461]54%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
55%config(noreplace) %{_sysconfdir}/mindi/deplist.d/*
56%config(noreplace) %{_sysconfdir}/mindi/mindi.conf
[315]57%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
[426]58%{_mandir}/man8/*
[200]59%{_libdir}/mindi
[588]60%{_sysconfdir}/mindi/mindi.conf
61%{_sbindir}/*
[1]62
63%changelog
Note: See TracBrowser for help on using the repository browser.