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