]> git.pld-linux.org Git - packages/fatsort.git/commitdiff
init
authorSzymon Siwek <sls@pld-linux.org>
Mon, 6 Oct 2014 14:54:34 +0000 (16:54 +0200)
committerSzymon Siwek <sls@pld-linux.org>
Mon, 6 Oct 2014 14:54:34 +0000 (16:54 +0200)
- Utility that sorts FAT12, FAT16 and FAT32 partition

fatsort.spec [new file with mode: 0644]

diff --git a/fatsort.spec b/fatsort.spec
new file mode 100644 (file)
index 0000000..2548446
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+#
+Summary:       Utility that sorts FAT12, FAT16 and FAT32 partition
+Name:          fatsort
+Version:       1.3.365
+Release:       0.1
+License:       GPL v2
+Group:         Applications
+Source0:       http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: f1232f40eba6ee9362acd9f0d5209dcf
+URL:           http://fatsort.sourceforge.net
+%{?with_tests:BuildRequires:   bbe}
+%{?with_tests:BuildRequires:   dosfstools}
+BuildRequires: help2man
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+       CC=%{__cc} \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags}"
+
+%{?with_tests:%{__make} tests}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       SBINDIR=%{_sbindir} \
+       MANDIR=%{_mandir}/man1 \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%attr(755,root,root) %{_sbindir}/fatsort
+%{_mandir}/man1/fatsort.1*
This page took 0.088282 seconds and 4 git commands to generate.