File fatsort.spec of Package fatsort

#
# spec file for package fatsort
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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:           fatsort
Version:        1.7
Release:        0
Summary:        FAT Filesystem Sorting Utility
License:        GPL-2.0-only
Group:          System/Filesystems
URL:            http://%{name}.sourceforge.net/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  help2man
# BuildRequires:  bbe
# BuildRequires:  dosfstools
# BuildRequires:  valgrind

%description
FATsort sorts directory structures of FAT filesystems. Many MP3 hardware players don't sort files automatically but play them in the order they were transmitted to the device. FATSort can help here.

%prep
%setup -q

%build
%make_build
%make_build man

%install
%{__mkdir_p} %{buildroot}%{_sbindir}
%{__mkdir_p} %{buildroot}%{_mandir}/man1
%{__install} -m 0755 -p -t %{buildroot}%{_sbindir} src/%{name}
%{__gzip} man/%{name}.1
%{__install} -m 0644 -p -t %{buildroot}%{_mandir}/man1 man/%{name}.1.gz

%check
# %%make_build tests

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_sbindir}/%{name}
%attr(644,root,root) %{_mandir}/man1/%{name}.1.gz
%doc CHANGES.md README
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
%license LICENSE.txt
%else
%doc LICENSE.txt
%endif

%changelog
openSUSE Build Service is sponsored by