88 lines
2.6 KiB
RPMSpec
88 lines
2.6 KiB
RPMSpec
# Place rpm-macros into proper location.
|
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; /bin/echo $d)
|
|
|
|
Name: fdupes
|
|
Epoch: 1
|
|
Version: 1.6.1
|
|
Release: 1%{?dist}
|
|
Summary: Finds duplicate files in a given set of directories
|
|
|
|
License: MIT
|
|
URL: https://github.com/adrianlopezroche/%{name}
|
|
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: macros.%{name}
|
|
|
|
# From upstream.
|
|
Patch0: %{url}/commit/315f6702f1cc37036d9f826314245b44a781c387.patch#/%{name}-1.6.1-delete_old_TODO.patch
|
|
Patch1: %{url}/commit/e95ec42dc178eff0410880c3dc4c0dac3df442df.patch#/%{name}-1.6.1-option_sort_by_ctime.patch
|
|
Patch2: %{url}/commit/88f3d2dd31fbef7e539b2523724221e8e8e5a9f0.patch#/%{name}-1.6.1-allow_a_instead_of_all.patch
|
|
|
|
%description
|
|
FDUPES is a program for identifying duplicate files residing within specified
|
|
directories.
|
|
|
|
|
|
%prep
|
|
%autosetup -p 1
|
|
|
|
# From README.
|
|
%{__cat} << EOF > LICENSE
|
|
FDUPES Copyright (c) 1999 Adrian Lopez
|
|
|
|
Permission is hereby granted, free of charge, to any person
|
|
obtaining a copy of this software and associated documentation files
|
|
(the "Software"), to deal in the Software without restriction,
|
|
including without limitation the rights to use, copy, modify, merge,
|
|
publish, distribute, sublicense, and/or sell copies of the Software,
|
|
and to permit persons to whom the Software is furnished to do so,
|
|
subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be
|
|
included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
EOF
|
|
|
|
|
|
%build
|
|
%make_build \
|
|
COMPILER_OPTIONS="%{?optflags}" \
|
|
LDFLAGS="%{?__global_ldflags}"
|
|
|
|
|
|
%install
|
|
%make_install \
|
|
INSTALL="%{__install} -p" \
|
|
BIN_DIR=%{_bindir} \
|
|
MAN_BASE_DIR=%{_mandir}
|
|
|
|
%{__install} -Dpm 0644 %{SOURCE1} \
|
|
%{buildroot}%{macrosdir}/macros.%{name}
|
|
|
|
|
|
%check
|
|
./%{name} testdir
|
|
./%{name} --omitfirst testdir
|
|
./%{name} --recurse testdir
|
|
./%{name} --size testdir
|
|
|
|
|
|
%files
|
|
%license CONTRIBUTORS LICENSE
|
|
%doc CHANGES README
|
|
%doc %{_mandir}/man1/%{name}.1*
|
|
%{_bindir}/%{name}
|
|
%{macrosdir}/macros.fdupes
|
|
|
|
|
|
%changelog
|
|
* Sun Sep 29 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
|
- First build for CentOS 8.
|
|
|