#
# spec file for package makebootfat
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: makebootfat
Version: 1.4
Release: 0
Summary: Create Bootable FAT File Systems
License: GPL-2.0-or-later
Group: System/Boot
URL: https://www.advancemame.it/
Source: https://sourceforge.net/projects/advancemame/files/advanceboot/%{version}/%{name}-%{version}.tar.gz
BuildRequires: nasm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86
%description
Create bootable FAT file systems, mainly for USB disks.
%prep
%setup -q
rm -f mbrfat.bin
%build
%configure
make mbrfat.bin %{?_smp_mflags}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
mkdir -p %{buildroot}/%{_libexecdir}/makebootfat
install -m 644 mbrfat.bin %{buildroot}/%{_libexecdir}/makebootfat
%files
%defattr(-,root,root)
%{_bindir}/makebootfat
%{_libexecdir}/makebootfat
%{_mandir}/man1/makebootfat.1.gz
%doc README COPYING HISTORY
%changelog