File master-boot-code.spec of Package master-boot-code

#
# spec file for package master-boot-code
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           master-boot-code
Version:        1.22
Release:        0
Summary:        i386 Master Boot Record Code
License:        BSD-3-Clause
Group:          System/Boot
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64

%description
The i386 master boot code is code that, after copied to the MBR of the
boot disk, loads and starts the boot sector of the active partition.



Authors:
--------
    Wolfgang Solfrank, TooLs GmbH
    The Regents of the University of California

%prep
%setup -n %{name}-%{version}

%build
make

%install
test -d $RPM_BUILD_ROOT/usr/lib/boot || mkdir -p $RPM_BUILD_ROOT/usr/lib/boot
test -d $RPM_BUILD_ROOT/usr/sbin || mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -c -p -m 644 mbr512 $RPM_BUILD_ROOT/usr/lib/boot/master-boot-code
install -c -p -m 644 mbr $RPM_BUILD_ROOT/usr/lib/boot/MBR
install -c -p -m 755 fixmbr $RPM_BUILD_ROOT/usr/sbin/.

%clean
# Clear up the mess
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%dir /usr/lib/boot
%attr(644,root,root) /usr/lib/boot/master-boot-code
%attr(644,root,root) /usr/lib/boot/MBR
%attr(755,root,root) /usr/sbin/fixmbr
%doc COPYING

%changelog
openSUSE Build Service is sponsored by