A new user interface for you!

File fatsort.spec of Package fatsort

# spec file for package fatsort
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/

Name:           fatsort
Version:        1.5.0
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

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.

%setup -q

%{__make} %{?_smp_mflags} CFLAGS="${CFLAGS:-%{optflags}}"

%{__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

%attr(755,root,root) %{_sbindir}/%{name}
%attr(644,root,root) %{_mandir}/man1/%{name}.1.gz
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
%license LICENSE.txt
%doc LICENSE.txt