Initialize for dosfstools
This commit is contained in:
commit
b1d5b82835
8 changed files with 1371 additions and 0 deletions
84
dosfstools.spec
Normal file
84
dosfstools.spec
Normal file
|
@ -0,0 +1,84 @@
|
|||
#
|
||||
# spec file for package dosfstools
|
||||
#
|
||||
# Copyright (c) 2022-2023 ZhuningOS
|
||||
#
|
||||
|
||||
|
||||
Name: dosfstools
|
||||
Version: 4.1
|
||||
Release: 3.6.1
|
||||
Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux
|
||||
License: GPL-3.0+
|
||||
Group: System/Filesystems
|
||||
Url: https://github.com/dosfstools/dosfstools
|
||||
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
|
||||
# PATCH-FIX-UPSTREAM fix-calculation.patch gh#dosfstools/dosfstools#153 mcepl@suse.com
|
||||
# Fix calculation of sectors and clusters
|
||||
Patch0: fix-calculation.patch
|
||||
# PATCH-FEATURE-UPSTREAM dosfstools-add-g.patch boo1188401 sbrabec@suse.com -- 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
|
||||
|
||||
%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
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--docdir=%{_docdir}/dosfstools \
|
||||
--enable-compat-symlinks
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
#UsrMerge
|
||||
mkdir %{buildroot}/sbin
|
||||
ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos,fsck.fat,fsck.vfat,mkfs.fat,mkfs.vfat} %{buildroot}/sbin
|
||||
#EndUsrMerge
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/dosfstools
|
||||
#UsrMerge
|
||||
/sbin/*
|
||||
#EndUsrMerge
|
||||
%{_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
|
Loading…
Add table
Add a link
Reference in a new issue