]> git.pld-linux.org Git - packages/fatsort.git/blame - fatsort.spec
rel. 1
[packages/fatsort.git] / fatsort.spec
CommitLineData
3fbadd7f
SS
1# TODO:
2# - tests requires mounting filesystem images
1870afeb
SS
3#
4# Conditional build:
5%bcond_with tests # build with tests
6#
7Summary: Utility that sorts FAT12, FAT16 and FAT32 partition
8Name: fatsort
9Version: 1.3.365
3fbadd7f 10Release: 1
1870afeb
SS
11License: GPL v2
12Group: Applications
81de1f65 13Source0: http://downloads.sourceforge.net/fatsort/%{name}-%{version}.tar.gz
1870afeb
SS
14# Source0-md5: f1232f40eba6ee9362acd9f0d5209dcf
15URL: http://fatsort.sourceforge.net
16%{?with_tests:BuildRequires: bbe}
17%{?with_tests:BuildRequires: dosfstools}
18BuildRequires: help2man
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
81de1f65
SS
22FATSort is a C utility that sorts FAT12, FAT16 and FAT32 partitions.
23It even can handle long file name entries. It was developed because I
24wanted to sort my MP3 files on my MP3 hardware player. Unfortunetly,
25there was no utility out there so far, so I had to write it myself.
26FATSort reads the boot sector and sorts the directory structure
27recursively.
1870afeb
SS
28
29%prep
30%setup -q
31
32%build
33%{__make} \
81de1f65 34 CC="%{__cc}" \
1870afeb
SS
35 CFLAGS="%{rpmcflags}" \
36 LDFLAGS="%{rpmldflags}"
37
38%{?with_tests:%{__make} tests}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42
43%{__make} install \
44 SBINDIR=%{_sbindir} \
45 MANDIR=%{_mandir}/man1 \
46 DESTDIR=$RPM_BUILD_ROOT
47
48%clean
49rm -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.080079 seconds and 4 git commands to generate.