3 %bcond_with tests # build with tests
5 Summary: Utility that sorts FAT12, FAT16 and FAT32 partition
11 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12 # Source0-md5: f1232f40eba6ee9362acd9f0d5209dcf
13 URL: http://fatsort.sourceforge.net
14 %{?with_tests:BuildRequires: bbe}
15 %{?with_tests:BuildRequires: dosfstools}
16 BuildRequires: help2man
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 FATSort is a C utility that sorts FAT12, FAT16 and FAT32 partitions. It even can handle long file name entries. It was developed because I wanted to sort my MP3 files on my MP3 hardware player. Unfortunetly, there was no utility out there so far, so I had to write it myself. FATSort reads the boot sector and sorts the directory structure recursively.
28 CFLAGS="%{rpmcflags}" \
29 LDFLAGS="%{rpmldflags}"
31 %{?with_tests:%{__make} tests}
34 rm -rf $RPM_BUILD_ROOT
38 MANDIR=%{_mandir}/man1 \
39 DESTDIR=$RPM_BUILD_ROOT
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_sbindir}/fatsort
48 %{_mandir}/man1/fatsort.1*