You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fdupes/fdupes.spec

63 lines
1.4 KiB

Summary: Finds duplicate files in a given set of directories
Name: fdupes
Version: 1.40
Release: 9%{?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}-destdir.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
* Sun Nov 25 2007 Debarshi Ray <rishi@fedoraproject.org> - 1.40-9
- Initial build. Imported SPEC from Rawhide.
- Fixed Makefile to use DESTDIR correctly.
- Fixed sources to include string.h.