Summary: Finds duplicate files in a given set of directories Name: fdupes Version: 1.40 Release: 11%{?dist} License: MIT Group: Applications/File URL: http://netdial.caribe.net/~adrian2/fdupes.html Source0: http://netdial.caribe.net/~adrian2/programs/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-makefile.patch Patch1: %{name}-%{version}-string.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description FDUPES is a program for identifying duplicate files residing within specified directories. %prep %setup -q %patch0 -p1 %patch1 -p1 sed --expression "s/-Wall/$RPM_OPT_FLAGS/" Makefile > Makefile.tmp touch --reference Makefile Makefile.tmp mv Makefile.tmp Makefile %build make %{?_smp_mflags} %check ./%{name} testdir ./%{name} --omitfirst testdir ./%{name} --recurse testdir ./%{name} --size testdir # ... etc.. %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 make install INSTALLDIR=%{_bindir} MANPAGEDIR=%{_mandir} \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES %doc CONTRIBUTORS %doc README %doc TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %changelog * Thu Dec 27 2007 Debarshi Ray - 1.40-11 - Fixed Makefile to preserve timestamps using 'cp -p'. * Thu Nov 29 2007 Debarshi Ray - 1.40-10 - Release bumped to overcome spurious build. * Sun Nov 25 2007 Debarshi Ray - 1.40-9 - Initial build. Imported SPEC from Rawhide. - Fixed Makefile to use DESTDIR correctly. - Fixed sources to include string.h.