forked from pool/fdupes
33f2bfe741
- cross-build workaround: fake gcc script to work around build system not honoring CC OBS-URL: https://build.opensuse.org/request/show/86736 OBS-URL: https://build.opensuse.org/package/show/utilities/fdupes?expand=0&rev=3
65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package fdupes (Version 1.40)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: fdupes
|
|
Url: http://premium.caribe.net/~adrian2/fdupes.html
|
|
Group: Productivity/Archiving/Compression
|
|
Summary: Identifying or deleting duplicate files
|
|
Version: 1.40
|
|
Release: 111
|
|
License: MIT License (or similar)
|
|
Source0: %name-%{version}.tar.bz2
|
|
Source1: macros.fdupes
|
|
Patch0: %name.diff
|
|
Patch1: fdupes-sort-output.diff
|
|
#PATCH-FIX-OPENSUSE - bnc#406825
|
|
Patch2: fdupes-speedup.patch
|
|
#PATCH-FIX-OPENSUSE - bnc#406825
|
|
Patch3: fdupes-endianness.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
FDUPES is a program for identifying or deleting duplicate files
|
|
residing within specified directories
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2 -p0 -b .speedup
|
|
%patch3 -p1 -b .endianness
|
|
|
|
%build
|
|
echo -e "#!/bin/bash\n`which %__cc` \"\$@\"" >gcc
|
|
chmod 755 gcc
|
|
export PATH=`pwd`:$PATH
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
install -D -m755 fdupes $RPM_BUILD_ROOT/usr/bin/fdupes
|
|
install -D -m644 fdupes.1 $RPM_BUILD_ROOT/usr/share/man/man1/fdupes.1
|
|
install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/rpm/macros.fdupes
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc CHANGES
|
|
%{_prefix}/bin/fdupes
|
|
%{_mandir}/*/*
|
|
/etc/rpm
|
|
|
|
%changelog
|