55 lines
1.2 KiB
RPMSpec
55 lines
1.2 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: duff
|
|
Version: 0.5
|
|
Release: 0
|
|
Summary: Quickly find duplicate files
|
|
Source: http://prdownloads.sourceforge.net/duff/duff-%{version}.tar.bz2
|
|
Patch1: duff-fix_missing_return_in_non_void_function.patch
|
|
Source99: duff-rpmlintrc
|
|
URL: http://duff.sourceforge.net/
|
|
Group: Productivity/File utilities
|
|
License: zlib/libpng License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: gcc make glibc-devel pkgconfig
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
%description
|
|
Duff is a command-line utility for quickly finding duplicates in a given set of
|
|
files.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
|
|
%build
|
|
%configure \
|
|
--disable-rpath
|
|
%__make %{?_smp_flags}
|
|
|
|
%install
|
|
%makeinstall
|
|
%__rm -rf "%{buildroot}%{_datadir}/doc"
|
|
|
|
pushd "%{buildroot}%{_datadir}/locale"
|
|
if [ -d en_US ]; then
|
|
%__rm -rf en
|
|
else
|
|
%__mv en en_US
|
|
fi
|
|
%__rm -rf en@*
|
|
popd
|
|
|
|
%find_lang "%{name}"
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files -f "%{name}.lang"
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README* TODO
|
|
%{_bindir}/duff
|
|
%{_datadir}/duff
|
|
%doc %{_mandir}/man1/duff.1%{ext_man}
|
|
|