File exfat-utils.spec of Package exfat-utils

#
# spec file for package exfat-utils
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2013 Sidlovsky, Yaroslav <zawertun@gmail.com>
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# 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:           exfat-utils
Version:        1.4.0
Release:        0
Summary:        Utilities for exFAT file system
License:        GPL-2.0-or-later
Group:          System/Filesystems
URL:            https://github.com/relan/exfat
Source0:        https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
Recommends:     fuse-exfat

%description
A set of utilities for creating, checking, dumping and labelling exFAT file
system.

%prep
%autosetup

%build
%configure
%make_build

%install
%make_install
%if 0%{?suse_version} < 1550
mkdir  %{buildroot}/sbin
ln -sf %{_sbindir}/{dumpexfat,exfatfsck,exfatlabel,fsck.exfat,mkexfatfs,mkfs.exfat} %{buildroot}/sbin
%endif
pushd %{buildroot}%{_mandir}/man8
ln -s exfatfsck.8.gz fsck.exfat.8.gz
ln -s mkexfatfs.8.gz mkfs.exfat.8.gz
popd

%check
%make_build check

%files
%license COPYING
%doc ChangeLog README
%if 0%{?suse_version} < 1550
/sbin/*
%endif
%{_sbindir}/dumpexfat
%{_sbindir}/exfatfsck
%{_sbindir}/exfatlabel
%{_sbindir}/fsck.exfat
%{_sbindir}/mkexfatfs
%{_sbindir}/exfatattrib
%{_sbindir}/mkfs.exfat
%{_mandir}/man8/dumpexfat.8%{?ext_man}
%{_mandir}/man8/exfatfsck.8%{?ext_man}
%{_mandir}/man8/exfatlabel.8%{?ext_man}
%{_mandir}/man8/fsck.exfat.8%{?ext_man}
%{_mandir}/man8/mkexfatfs.8%{?ext_man}
%{_mandir}/man8/mkfs.exfat.8%{?ext_man}
%{_mandir}/man8/exfatattrib.8%{?ext_man}

%changelog
openSUSE Build Service is sponsored by