]> git.pld-linux.org Git - packages/btmgr.git/blob - btmgr.spec
b74407cdc2ae2dba828157b9f1478c3c640e5dcf
[packages/btmgr.git] / btmgr.spec
1 #
2 # Conditional build:
3 %bcond_without  doc             # build documentation
4
5 Summary:        Smart Boot Manager is an OS independent boot manager
6 Name:           btmgr
7 Version:        3.7
8 Release:        0.1
9 License:        GPL v2
10 Group:          Applications/System
11 Source0:        http://downloads.sourceforge.net/btmgr/%{name}-%{version}-1.tar.gz
12 # Source0-md5:  7bfe432821c3cef48df8b3d6be800009
13 Patch0:         nasm.patch
14 Patch1:         major-macro.patch
15 URL:            http://sourceforge.net/projects/btmgr/
16 BuildRequires:  nasm
17 BuildRequires:  sed >= 4.0
18 BuildRequires:  ucl-devel
19 %if %{with doc}
20 BuildRequires:  sgml-tools
21 BuildRequires:  tetex-format-latex
22 %endif
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The main goals of SBM are to be absolutely OS independent, flexible
27 and full-featured. It has all of the features needed to boot a variety
28 of OSes from several kinds of media, while keeping its size no more
29 than 30K bytes. In another words, SBM does NOT touch any of your
30 partitions, it totally fits into the first track (the hidden track) of
31 your hard disk! SBM now supports booting from floppy, hard disk and
32 CD-ROM. There are plans to support ZIP and LS-120 in the near future.
33
34 %prep
35 %setup -q -n %{name}-%{version}-1
36 %patch0 -p1
37 %patch1 -p1
38
39 # allow passing defaults
40 %{__sed} -i -e '/^CC=/ s/gcc/$(HOSTCC)/' Makefile
41 %{__sed} -i -e '/^COMMON_FLAGS=/ s/-g/$(CFLAGS)/' Makefile
42 %{__sed} -i -e '/^ASM=/ s/$/ $(AFLAGS)/' Makefile
43
44 # we run docs in bcond
45 %{__sed} -i -e '/^SUBDIRS=/ s/docs//' Makefile
46 # pipe breaks error handling
47 %{__sed} -i -e '/(MAKE)/ s/|tee -a errors.log//' Makefile
48
49 %build
50 %{__make} \
51         HOSTCC="%{__cc}" \
52         CFLAGS="%{rpmcflags}" \
53         AFLAGS="-w-orphan-labels"
54
55 %{?with_doc:%{__make} -C docs}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %{__make} install \
60         PREFIX=$RPM_BUILD_ROOT%{_prefix}
61
62 %files
63 %defattr(644,root,root,755)
64 %doc AUTHORS ChangeLog CREDITS INSTALL README TODO
65 %doc %lang(zh) README-ZH
66 %attr(755,root,root) %{_sbindir}/sbminst
67 %{_datadir}/btmgr
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
This page took 0.088585 seconds and 3 git commands to generate.