dosfstools/dosfstools.spec
Matej Cepl cee98154e2 Accepting request 863231 from home:mcepl:branches:Base:System
- Update to version 4.1+git.1610658652.9443732 (bsc#1172863):
  * testsuite: Add mkfs test for 600MB large 4K disk
  * mkfs.fat: Do not show verbose messages not relevant to selected FAT size
  * mkfs.fat: Fix text of verbose messages
  * mkfs.fat: Fix limits for number of clusters
  * mkfs.fat: Fix calculation of FAT32 cluster size on non 512 bytes sector disks
  * mkfs.fat: Fix printing number of sectors
  * mkfs.fat: Align total number of sectors to be multiple of sectors per track
  * testsuite: Add referenceFAT32mbr test data to dist_check_DATA
  * manpages: Escape dot in fsck.fat manpage at the beginning of the line
  * fsck.fat: properly check for valid "." and ".." entries

OBS-URL: https://build.opensuse.org/request/show/863231
OBS-URL: https://build.opensuse.org/package/show/Base:System/dosfstools?expand=0&rev=74
2021-01-15 13:02:47 +00:00

94 lines
2.8 KiB
RPMSpec

#
# spec file for package dosfstools
#
# Copyright (c) 2021 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: dosfstools
Version: 4.1+git.1610658652.9443732
Release: 0
Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux
License: GPL-3.0-or-later
Group: System/Filesystems
URL: https://github.com/dosfstools/dosfstools
Source: dosfstools-%{version}.tar.gz
# Source: https://github.com/dosfstools/dosfstools/releases/download/v%%{version}/dosfstools-%%{version}.tar.gz
# Source2: https://github.com/dosfstools/dosfstools/releases/download/v%%{version}/dosfstools-%%{version}.tar.gz.sig
# Source3: %%{name}.keyring
BuildRequires: pkgconfig
# xxd from vim is required for testsuite
BuildRequires: vim
BuildRequires: pkgconfig(libudev)
# for ./autogen.sh
BuildRequires: libtool
Supplements: filesystem(vfat)
Provides: dosfsck
Provides: mkdosfs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -q
./autogen.sh
%build
%configure \
--docdir=%{_docdir}/dosfstools \
--enable-compat-symlinks
make %{?_smp_mflags} CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%install
%make_install
%if !0%{?usrmerged}
mkdir %{buildroot}/sbin
ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos,fsck.fat,fsck.vfat,mkfs.fat,mkfs.vfat} %{buildroot}/sbin
%endif
%check
make check
%files
%defattr(-,root,root)
%doc %{_docdir}/dosfstools
%if !0%{?usrmerged}
/sbin/*
%endif
%{_sbindir}/dosfsck
%{_sbindir}/dosfslabel
%{_sbindir}/fatlabel
%{_sbindir}/fsck.fat
%{_sbindir}/fsck.msdos
%{_sbindir}/fsck.vfat
%{_sbindir}/mkdosfs
%{_sbindir}/mkfs.fat
%{_sbindir}/mkfs.msdos
%{_sbindir}/mkfs.vfat
%{_mandir}/man8/dosfsck.8%{ext_man}
%{_mandir}/man8/dosfslabel.8%{ext_man}
%{_mandir}/man8/fatlabel.8%{ext_man}
%{_mandir}/man8/fsck.fat.8%{ext_man}
%{_mandir}/man8/fsck.msdos.8%{ext_man}
%{_mandir}/man8/fsck.vfat.8%{ext_man}
%{_mandir}/man8/mkdosfs.8%{ext_man}
%{_mandir}/man8/mkfs.fat.8%{ext_man}
%{_mandir}/man8/mkfs.msdos.8%{ext_man}
%{_mandir}/man8/mkfs.vfat.8%{ext_man}
%changelog