3 %bcond_without doc # build documentation
5 Summary: Smart Boot Manager is an OS independent boot manager
10 Group: Applications/System
11 Source0: http://downloads.sourceforge.net/btmgr/%{name}-%{version}-1.tar.gz
12 # Source0-md5: 7bfe432821c3cef48df8b3d6be800009
13 URL: http://sourceforge.net/projects/btmgr/
15 BuildRequires: sed >= 4.0
16 %{?with_doc:BuildRequires: sgml-tools}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The main goals of SBM are to be absolutely OS independent, flexible
21 and full-featured. It has all of the features needed to boot a variety
22 of OSes from several kinds of media, while keeping its size no more
23 than 30K bytes. In another words, SBM does NOT touch any of your
24 partitions, it totally fits into the first track (the hidden track) of
25 your hard disk! SBM now supports booting from floppy, hard disk and
26 CD-ROM. There are plans to support ZIP and LS-120 in the near future.
29 %setup -q -n %{name}-%{version}-1
31 %{__sed} -i -e '/^CC=/ s/gcc/%{__cc}/' Makefile
32 %{__sed} -i -e '/^SUBDIRS=/ s/docs//' Makefile
37 %{?with_doc:%{__make} -C docs}
40 rm -rf $RPM_BUILD_ROOT
42 PREFIX=$RPM_BUILD_ROOT%{_prefix}
45 %defattr(644,root,root,755)
46 %doc AUTHORS ChangeLog CREDITS INSTALL README TODO
48 %attr(755,root,root) %{_sbindir}/sbminst
52 rm -rf $RPM_BUILD_ROOT