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
14 URL: http://sourceforge.net/projects/btmgr/
16 BuildRequires: sed >= 4.0
17 BuildRequires: ucl-devel
19 BuildRequires: sgml-tools
20 BuildRequires: tetex-format-latex
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The main goals of SBM are to be absolutely OS independent, flexible
26 and full-featured. It has all of the features needed to boot a variety
27 of OSes from several kinds of media, while keeping its size no more
28 than 30K bytes. In another words, SBM does NOT touch any of your
29 partitions, it totally fits into the first track (the hidden track) of
30 your hard disk! SBM now supports booting from floppy, hard disk and
31 CD-ROM. There are plans to support ZIP and LS-120 in the near future.
34 %setup -q -n %{name}-%{version}-1
37 # allow passing defaults
38 %{__sed} -i -e '/^CC=/ s/gcc/$(HOSTCC)/' Makefile
39 %{__sed} -i -e '/^COMMON_FLAGS=/ s/-g/$(CFLAGS)/' Makefile
40 %{__sed} -i -e '/^ASM=/ s/$/ $(AFLAGS)/' Makefile
42 # we run docs in bcond
43 %{__sed} -i -e '/^SUBDIRS=/ s/docs//' Makefile
44 # pipe breaks error handling
45 %{__sed} -i -e '/(MAKE)/ s/|tee -a errors.log//' Makefile
50 CFLAGS="%{rpmcflags}" \
51 AFLAGS="-w-orphan-labels"
53 %{?with_doc:%{__make} -C docs}
56 rm -rf $RPM_BUILD_ROOT
58 PREFIX=$RPM_BUILD_ROOT%{_prefix}
61 %defattr(644,root,root,755)
62 %doc AUTHORS ChangeLog CREDITS INSTALL README TODO
64 %attr(755,root,root) %{_sbindir}/sbminst
68 rm -rf $RPM_BUILD_ROOT