File dosfstools.spec of Package dosfstools.22274

# spec file for package dosfstools
# Copyright (c) 2017 SUSE LINUX 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

Name:           dosfstools
Version:        4.1
Release:        0
Summary:        Utilities for Making and Checking MS-DOS FAT File Systems on Linux
License:        GPL-3.0+
Group:          System/Filesystems
Source3:        %{name}.keyring
# PATCH-FIX-UPSTREAM fix-calculation.patch gh#dosfstools/dosfstools#153
# Fix calculation of sectors and clusters
Patch0:         fix-calculation.patch
# PATCH-FEATURE-UPSTREAM dosfstools-add-g.patch boo1188401 -- To be able to create filesystems compatible with previous version, add -g command line option.
Patch1:         dosfstools-add-g.patch
# xxd from vim is required for testsuite
BuildRequires:  pkgconfig
BuildRequires:  vim
BuildRequires:  automake
BuildRequires:  pkgconfig(libudev)
Supplements:    filesystem(vfat)
Provides:       dosfsck
Provides:       mkdosfs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The dosfstools package includes the mkdosfs and dosfsck utilities, which
respectively make and check MS-DOS FAT file systems on hard drives or on

%autosetup -p1

%configure \
  --docdir=%{_docdir}/dosfstools \
make %{?_smp_mflags} CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

mkdir %{buildroot}/sbin
ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos,fsck.fat,fsck.vfat,mkfs.fat,mkfs.vfat} %{buildroot}/sbin

make check

%doc %{_docdir}/dosfstools

openSUSE Build Service is sponsored by