# # spec file for package dosfstools # # 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: dosfstools Provides: dosfsck Provides: mkdosfs Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux License: GPL-3.0+ Group: System/Filesystems Version: 3.0.15 Release: 0 Url: http://freshmeat.net/projects/dosfstools Source: %{name}_%{version}.orig.tar.xz Patch0: %{name}-suse-dirs.patch # to be upstreamed: dosfsck: fix file name to be really FSCK%04d.REC Patch1: %{name}-fsck-file-name.patch # to be upstreamed: mkdosfs: empty label should be "NO NAME ", not " " # https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 Patch2: %{name}-mkdosfs-no-label.patch # to be upstreamed: mkdosfs: label should be uppercase # https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 Patch3: %{name}-mkdosfs-uppercase-label.patch # to be upstreamed: dosfslabel: label should not contain lowercase characters # https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 Patch4: %{name}-dosfslabel-forbid-lowercase.patch # to be upstreamed: dosfslabel, mkdosfs: create rootdir entry if not exist # https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 Patch5: %{name}-create-rootdir-label.patch # to be upstreamed: dosfslabel: read label also from rootdir entry # https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 Patch6: %{name}-dosfslabel-from-rootdir.patch # following will be dropped if not upstreamed in the next update Patch100: ppc-reserved-sectors-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Supplements: filesystem(vfat) %description The dosfstools package includes the mkdosfs and dosfsck utilities, which respectively make and check MS-DOS FAT file systems on hard drives or on floppies. %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch100 -p1 %build make CC="%__cc" OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS" %{?_smp_mflags} %install %makeinstall SBINDIR=%{_sbindir} #UsrMerge mkdir $RPM_BUILD_ROOT/sbin ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos} $RPM_BUILD_ROOT/sbin #EndUsrMerge %files %defattr(-,root,root) %doc %{_docdir}/%{name} #UsrMerge /sbin/* #EndUsrMerge %{_sbindir}/* %{_mandir}/man8/*.gz %changelog