summaryrefslogtreecommitdiff
path: root/duff.spec
blob: 79d60451a7d92b8b53f3f114ae4d39856281b8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Summary:	Duplicate file finder
Name:		duff
Version:	0.5.2
Release:	2
License:	BSD
Group:		Applications
Source0:	https://github.com/elmindreda/duff/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5:	e4688d2724e1990d7d36ecb89f114f9e
Patch0:		gettext.patch
Patch1:		shared-sha.patch
URL:		http://duff.dreda.org/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	gettext-tools
BuildRequires:	sha-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Duff is a Unix command-line utility for quickly finding duplicates in
a given set of files.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

install -d build-aux

%build
%{__gettextize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog HACKING NEWS README TODO
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/duff.1*