diff --git a/dosfstools-4.2.tar.gz b/dosfstools-4.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..edcd9be57eb31f0ea7c968b7455e1d6cb1e07d4c Binary files /dev/null and b/dosfstools-4.2.tar.gz differ diff --git a/dosfstools.spec b/dosfstools.spec new file mode 100644 index 0000000000000000000000000000000000000000..a8a3814b9f74c89b8917c8df95e39862266a8107 --- /dev/null +++ b/dosfstools.spec @@ -0,0 +1,42 @@ +%define anolis_release 1 + +Name: dosfstools +Version: 4.2 +Release: %{anolis_release}%{?dist} +Summary: Utilities to create and check MS-DOS FAT filesystems + +License: GPLv3+ +URL: https://github.com/dosfstools/dosfstools +Source0: http://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: make +BuildRequires: /usr/bin/xxd + +%description +dosfstools consists of the programs mkfs.fat, fsck.fat and fatlabel to +create, check and label file systems of the FAT family. + +%prep +%setup -q + +%build +%configure --enable-compat-symlinks +%make_build CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + +%check +make check + +%install +%make_install +rm -f %{buildroot}%{_docdir}/%{name}/COPYING + +%files +%license COPYING +%doc NEWS README ChangeLog doc/* +%{_sbindir}/* +%{_mandir}/man8/* + +%changelog +* Fri Mar 11 2022 Su Lifan - 4.2-1 +* Initial packaging for Anolis OS 23