+# TODO
+# - x86_64 is broken, use ix86 version
#
# Conditional build:
%bcond_without doc # build documentation
Summary: Smart Boot Manager is an OS independent boot manager
Name: btmgr
Version: 3.7
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications/System
Source0: http://downloads.sourceforge.net/btmgr/%{name}-%{version}-1.tar.gz
# Source0-md5: 7bfe432821c3cef48df8b3d6be800009
+Patch0: nasm.patch
+Patch1: major-macro.patch
URL: http://sourceforge.net/projects/btmgr/
BuildRequires: nasm
BuildRequires: sed >= 4.0
+BuildRequires: ucl-devel
%if %{with doc}
BuildRequires: sgml-tools
BuildRequires: tetex-format-latex
+BuildRequires: tetex-metafont
+BuildRequires: tetex-tex-babel
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{name}-%{version}-1
+%patch0 -p1
+%patch1 -p1
# allow passing defaults
%{__sed} -i -e '/^CC=/ s/gcc/$(HOSTCC)/' Makefile
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog CREDITS INSTALL README TODO
-%doc(zh) README-ZH
+%doc %lang(zh) README-ZH
%attr(755,root,root) %{_sbindir}/sbminst
-%{_datadir}/btmgr
+%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT