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