]> git.pld-linux.org Git - packages/fatsort.git/blob - fatsort.spec
rel. 1
[packages/fatsort.git] / fatsort.spec
1 # TODO:
2 #       - tests requires mounting filesystem images
3 #
4 # Conditional build:
5 %bcond_with     tests           # build with tests
6 #
7 Summary:        Utility that sorts FAT12, FAT16 and FAT32 partition
8 Name:           fatsort
9 Version:        1.3.365
10 Release:        1
11 License:        GPL v2
12 Group:          Applications
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)
20
21 %description
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
27 recursively.
28
29 %prep
30 %setup -q
31
32 %build
33 %{__make} \
34         CC="%{__cc}" \
35         CFLAGS="%{rpmcflags}" \
36         LDFLAGS="%{rpmldflags}"
37
38 %{?with_tests:%{__make} tests}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         SBINDIR=%{_sbindir} \
45         MANDIR=%{_mandir}/man1 \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc CHANGES README
54 %attr(755,root,root) %{_sbindir}/fatsort
55 %{_mandir}/man1/fatsort.1*
This page took 0.057919 seconds and 3 git commands to generate.