2007-01-16 00:10:35 +01:00
|
|
|
#
|
2011-03-14 11:37:37 +01:00
|
|
|
# spec file for package dosfstools
|
2007-01-16 00:10:35 +01:00
|
|
|
#
|
2023-01-05 07:25:12 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:10:35 +01:00
|
|
|
#
|
2009-06-18 17:16:36 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-11-21 13:48:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:10:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dosfstools
|
2021-02-04 19:58:46 +01:00
|
|
|
Version: 4.2
|
2014-06-26 14:12:17 +02:00
|
|
|
Release: 0
|
2007-01-16 00:10:35 +01:00
|
|
|
Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux
|
2020-11-21 13:48:22 +01:00
|
|
|
License: GPL-3.0-or-later
|
2012-02-09 11:46:12 +01:00
|
|
|
Group: System/Filesystems
|
2020-11-21 13:48:22 +01:00
|
|
|
URL: https://github.com/dosfstools/dosfstools
|
2021-02-04 19:58:46 +01:00
|
|
|
Source: https://github.com/dosfstools/dosfstools/releases/download/v%{version}/dosfstools-%{version}.tar.gz
|
2021-01-15 14:02:47 +01:00
|
|
|
# Source2: https://github.com/dosfstools/dosfstools/releases/download/v%%{version}/dosfstools-%%{version}.tar.gz.sig
|
|
|
|
# Source3: %%{name}.keyring
|
2016-05-13 10:10:51 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-01-30 10:47:19 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2014-06-26 14:12:17 +02:00
|
|
|
Supplements: filesystem(vfat)
|
|
|
|
Provides: dosfsck
|
|
|
|
Provides: mkdosfs
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%description
|
2016-05-13 10:10:51 +02:00
|
|
|
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.
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%prep
|
2014-06-26 14:12:17 +02:00
|
|
|
%setup -q
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-13 10:10:51 +02:00
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir}/dosfstools \
|
|
|
|
--enable-compat-symlinks
|
2021-02-04 19:58:46 +01:00
|
|
|
%make_build CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-30 10:47:19 +01:00
|
|
|
%make_install
|
2023-01-05 07:25:12 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2014-06-26 14:12:17 +02:00
|
|
|
mkdir %{buildroot}/sbin
|
|
|
|
ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos,fsck.fat,fsck.vfat,mkfs.fat,mkfs.vfat} %{buildroot}/sbin
|
2020-11-21 13:48:22 +01:00
|
|
|
%endif
|
2007-01-16 00:10:35 +01:00
|
|
|
|
2017-01-30 10:47:19 +01:00
|
|
|
%check
|
2021-02-04 19:58:46 +01:00
|
|
|
%make_build check
|
2017-01-30 10:47:19 +01:00
|
|
|
|
2007-01-16 00:10:35 +01:00
|
|
|
%files
|
2016-05-13 10:10:51 +02:00
|
|
|
%doc %{_docdir}/dosfstools
|
2023-01-05 07:25:12 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2007-01-16 00:10:35 +01:00
|
|
|
/sbin/*
|
2020-11-21 13:48:22 +01:00
|
|
|
%endif
|
2016-05-13 10:10:51 +02:00
|
|
|
%{_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
|
2021-02-04 19:58:46 +01:00
|
|
|
%{_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}
|
2007-01-16 00:10:35 +01:00
|
|
|
|
2007-04-04 20:41:44 +02:00
|
|
|
%changelog
|