Summary: Finds duplicate files in a given set of directories Name: fdupes Version: 1.50 Release: 1.PR2 License: MIT Group: Applications/File URL: http://netdial.caribe.net/~adrian2/fdupes.html Source0: http://netdial.caribe.net/~adrian2/programs/fdupes/beta/%{name}-%{version}-PR2.tar.gz Patch0: %{name}-%{version}-destdir.patch # http://bugs.debian.org/213385 Patch1: %{name}-%{version}-compare-file.patch # http://bugs.debian.org/447601 Patch2: %{name}-%{version}-lfs.patch # http://bugs.debian.org/353789 Patch3: %{name}-%{version}-typo.patch Patch10: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: patch, coreutils %description FDUPES is a program for identifying duplicate files residing within specified directories. %prep %setup -q -n %{name}-%{version}-PR2 export PATH=/opt/freeware/bin:$PATH %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch10 %build make %{?_smp_mflags} COMPILER_OPTIONS="${CFLAGS}" %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install INSTALL="/opt/freeware/bin/install -p" BIN_DIR=%{_bindir} \ MAN_BASE_DIR=%{_mandir} DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc CHANGES CONTRIBUTORS README TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* /usr/bin/%{name} %changelog * Wed Apr 13 2011 Michael Perzl - 1.50-1.PR2 - first version for AIX5L v5.1 and higher