Björn Esser cdec22f
# Place rpm-macros into proper location.
4be68f2
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; /bin/echo $d)
Björn Esser cdec22f
4be68f2
Name:		fdupes
4be68f2
Epoch:		1
4be68f2
Version:	1.6.1
4be68f2
Release:	1%{?dist}
4be68f2
Summary:	Finds duplicate files in a given set of directories
Björn Esser f4dd072
4be68f2
License:	MIT
4be68f2
URL:		https://github.com/adrianlopezroche/%{name}
4be68f2
Source0:	%{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
4be68f2
Source1:	macros.%{name}
Björn Esser f4dd072
4be68f2
# From upstream.
4be68f2
Patch0:		%{url}/commit/315f6702f1cc37036d9f826314245b44a781c387.patch#/%{name}-1.6.1-delete_old_TODO.patch
4be68f2
Patch1:		%{url}/commit/e95ec42dc178eff0410880c3dc4c0dac3df442df.patch#/%{name}-1.6.1-option_sort_by_ctime.patch
4be68f2
Patch2:		%{url}/commit/88f3d2dd31fbef7e539b2523724221e8e8e5a9f0.patch#/%{name}-1.6.1-allow_a_instead_of_all.patch
Simon Bellwood be9fa94
Simon Bellwood be9fa94
%description
75563b0
FDUPES is a program for identifying duplicate files residing within specified
75563b0
directories.
Simon Bellwood be9fa94
a8b6c2f
Simon Bellwood be9fa94
%prep
4be68f2
%autosetup -p 1
4be68f2
4be68f2
# From README.
4be68f2
%{__cat} << EOF > LICENSE
4be68f2
FDUPES Copyright (c) 1999 Adrian Lopez
4be68f2
4be68f2
Permission is hereby granted, free of charge, to any person
4be68f2
obtaining a copy of this software and associated documentation files
4be68f2
(the "Software"), to deal in the Software without restriction,
4be68f2
including without limitation the rights to use, copy, modify, merge,
4be68f2
publish, distribute, sublicense, and/or sell copies of the Software,
4be68f2
and to permit persons to whom the Software is furnished to do so,
4be68f2
subject to the following conditions:
4be68f2
4be68f2
The above copyright notice and this permission notice shall be
4be68f2
included in all copies or substantial portions of the Software.
4be68f2
4be68f2
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4be68f2
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4be68f2
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4be68f2
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
4be68f2
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
4be68f2
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4be68f2
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4be68f2
EOF
a8b6c2f
Simon Bellwood be9fa94
Simon Bellwood be9fa94
%build
4be68f2
%make_build					\
Björn Esser f4dd072
	COMPILER_OPTIONS="%{?optflags}"		\
Björn Esser f4dd072
	LDFLAGS="%{?__global_ldflags}"
a8b6c2f
Simon Bellwood be9fa94
4be68f2
%install
4be68f2
%make_install					\
4be68f2
	INSTALL="%{__install} -p"		\
4be68f2
	BIN_DIR=%{_bindir}			\
4be68f2
	MAN_BASE_DIR=%{_mandir}
4be68f2
4be68f2
%{__install} -Dpm 0644 %{SOURCE1}		\
4be68f2
	%{buildroot}%{macrosdir}/macros.%{name}
4be68f2
4be68f2
75563b0
%check
75563b0
./%{name} testdir
75563b0
./%{name} --omitfirst testdir
75563b0
./%{name} --recurse testdir
75563b0
./%{name} --size testdir
a8b6c2f
Simon Bellwood be9fa94
Simon Bellwood be9fa94
%files
4be68f2
%license CONTRIBUTORS LICENSE
4be68f2
%doc CHANGES README
58a5af4
%doc %{_mandir}/man1/%{name}.1*
75563b0
%{_bindir}/%{name}
Björn Esser 57fdb45
%{macrosdir}/macros.fdupes
Simon Bellwood be9fa94
6328e65
Simon Bellwood be9fa94
%changelog
4be68f2
* Sun Apr 09 2017 Björn Esser <besser82@fedoraproject.org> - 1:1.6.1-1
4be68f2
- Updated to new upstream-release
4be68f2
- Upstream changed versioning-scheme, Epoch is needed
4be68f2
- Drop old patches, applied upstream
4be68f2
- Update spec-file to recent guidelines
4be68f2
- Drop el5-bits
4be68f2
93b73c6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.51-12
93b73c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93b73c6
522f1dd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.51-11
522f1dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
522f1dd
Jon Schlueter 36ec3ed
* Fri Jun 19 2015 Jon Schlueter <jschluet@redhat> - 1.51-10
Jon Schlueter 36ec3ed
- Rebaseline using github which is new home of fdupes
Jon Schlueter 36ec3ed
- source tarball has unusual folder naming of fdupes-fdupes-1.51 instead of normal fdupes-1.51
Jon Schlueter 36ec3ed
4041ccd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-9
4041ccd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4041ccd
3c70daf
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-8
3c70daf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3c70daf
46e394c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-7
46e394c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
46e394c
Björn Esser 57fdb45
* Fri Apr 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-6
Björn Esser 57fdb45
- remove duplicated `macros.d`-dir (#1088566)
Björn Esser 57fdb45
Björn Esser f4dd072
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-5
Björn Esser f4dd072
- Add needed bits for el5
Björn Esser f4dd072
- Fix `mixed use of spaces-and tabs`
Björn Esser f4dd072
- Minor cleanup and improved readability
Björn Esser f4dd072
Björn Esser cdec22f
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-4
Björn Esser cdec22f
- Place rpm-macros into proper location using %%global macrosdir
Björn Esser 2f1af9c
- Apply proper LDFLAGS
Björn Esser 0cc2c54
- Fix offset in Patch1 and renamed it to match current version
Björn Esser cdec22f
02d841d
* Sun Jan 19 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.51-3
02d841d
- Move macros to %%{_rpmconfigdir}/macros.d.
02d841d
dffcede
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-2
dffcede
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dffcede
6328e65
* Tue Jul 16 2013 Richard Shaw <hobbes1069@gmail.com> - 1.51-1
6328e65
- Update to latest upstream release.
6328e65
- Fixes security bugs BZ#865591 & 865592.
6328e65
2bf0c84
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-0.7.PR2
2bf0c84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2bf0c84
828c7b4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-0.6.PR2
828c7b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
828c7b4
a8b6c2f
* Tue May 15 2012 Richard Shaw <hobbes1069@gmail.com> - 1.50-0.5.PR2
a8b6c2f
- Add RPM macro.
a8b6c2f
6ad5e37
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-0.4.PR2
6ad5e37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6ad5e37
0014750
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-0.3.PR2
0014750
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0014750
69c38fa
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-0.2.PR2
69c38fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
69c38fa
58a5af4
* Sun Feb 01 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.50-0.1.PR2
58a5af4
- Version bump to 1.50 PR2.
58a5af4
  * Added --noprompt, --recurse and --summarize options
58a5af4
  * Now sorts duplicates (old to new) for consistent order when listing or
58a5af4
    deleting duplicate files.
58a5af4
  * Now tests for early matching of files, which should help speed up the
58a5af4
    matching process when large files are involved.
58a5af4
  * Added warning whenever a file cannot be deleted.
58a5af4
  * Fixed bug where some files would not be closed after failure.
58a5af4
  * Fixed bug where confirmmatch() function wouldn't always deal properly with
58a5af4
    zero-length files.
58a5af4
  * Fixed bug where progress indicator would not be cleared when no files were
58a5af4
    found.
58a5af4
- Inclusion of string.h now added by upstream.
58a5af4
- Added patch to fix file comparisons from Debian. (Debian BTS #213385)
58a5af4
- Added patch to enable large file support on 32-bit systems from Debian.
58a5af4
  (Debian BTS #447601)
58a5af4
- Added patch to fix typo in the online manual page from Debian. (Debian BTS
58a5af4
  #353789)
58a5af4
58a5af4
* Tue Feb 19 2008 Release Engineering <rel-eng@fedoraproject.org> - 1.40-12
58a5af4
- Autorebuild for gcc-4.3.
21cf9e7
ea620a2
* Thu Dec 27 2007 Debarshi Ray <rishi@fedoraproject.org> - 1.40-11
ea620a2
- Fixed Makefile to preserve timestamps using 'cp -p'.
ea620a2
abe8f77
* Thu Nov 29 2007 Debarshi Ray <rishi@fedoraproject.org> - 1.40-10
abe8f77
- Release bumped to overcome spurious build.
abe8f77
75563b0
* Sun Nov 25 2007 Debarshi Ray <rishi@fedoraproject.org> - 1.40-9
75563b0
- Initial build. Imported SPEC from Rawhide.
75563b0
- Fixed Makefile to use DESTDIR correctly.
75563b0
- Fixed sources to include string.h.