2 # - tests requires mounting filesystem images
5 %bcond_with tests # build with tests
7 Summary: Utility that sorts FAT12, FAT16 and FAT32 partition
13 Source0: http://downloads.sourceforge.net/fatsort/%{name}-%{version}.tar.gz
14 # Source0-md5: f1232f40eba6ee9362acd9f0d5209dcf
15 URL: http://fatsort.sourceforge.net
16 %{?with_tests:BuildRequires: bbe}
17 %{?with_tests:BuildRequires: dosfstools}
18 BuildRequires: help2man
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 FATSort is a C utility that sorts FAT12, FAT16 and FAT32 partitions.
23 It even can handle long file name entries. It was developed because I
24 wanted to sort my MP3 files on my MP3 hardware player. Unfortunetly,
25 there was no utility out there so far, so I had to write it myself.
26 FATSort reads the boot sector and sorts the directory structure
35 CFLAGS="%{rpmcflags}" \
36 LDFLAGS="%{rpmldflags}"
38 %{?with_tests:%{__make} tests}
41 rm -rf $RPM_BUILD_ROOT
45 MANDIR=%{_mandir}/man1 \
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_sbindir}/fatsort
55 %{_mandir}/man1/fatsort.1*