forked from pool/fdupes
This commit is contained in:
parent
182e337845
commit
a85915a780
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 15 22:53:03 CEST 2007 - coolo@suse.de
|
||||||
|
|
||||||
|
- add an RPM macro to make use of it in spec files
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 16 13:16:07 CET 2006 - dmueller@suse.de
|
Thu Nov 16 13:16:07 CET 2006 - dmueller@suse.de
|
||||||
|
|
||||||
|
11
fdupes.spec
11
fdupes.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package fdupes (Version 1.40)
|
# spec file for package fdupes (Version 1.40)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -15,9 +15,10 @@ URL: http://premium.caribe.net/~adrian2/fdupes.html
|
|||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Summary: Identifying or deleting duplicate files
|
Summary: Identifying or deleting duplicate files
|
||||||
Version: 1.40
|
Version: 1.40
|
||||||
Release: 2
|
Release: 19
|
||||||
License: X11/MIT
|
License: X11/MIT
|
||||||
Source0: %name-%{version}.tar.bz2
|
Source0: %name-%{version}.tar.bz2
|
||||||
|
Source1: macros.fdupes
|
||||||
Patch0: %name.diff
|
Patch0: %name.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ make
|
|||||||
%install
|
%install
|
||||||
install -D -m755 fdupes $RPM_BUILD_ROOT/usr/bin/fdupes
|
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 fdupes.1 $RPM_BUILD_ROOT/usr/share/man/man1/fdupes.1
|
||||||
|
install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/rpm/macros.fdupes
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -50,7 +52,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc CHANGES
|
%doc CHANGES
|
||||||
%{_prefix}/bin/fdupes
|
%{_prefix}/bin/fdupes
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
/etc/rpm
|
||||||
|
|
||||||
%changelog -n fdupes
|
%changelog
|
||||||
|
* Tue May 15 2007 - coolo@suse.de
|
||||||
|
- add an RPM macro to make use of it in spec files
|
||||||
* Thu Nov 16 2006 - dmueller@suse.de
|
* Thu Nov 16 2006 - dmueller@suse.de
|
||||||
- Initial package (1.40)
|
- Initial package (1.40)
|
||||||
|
16
macros.fdupes
Normal file
16
macros.fdupes
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
%fdupes(s) \
|
||||||
|
symlinks=0; \
|
||||||
|
%{-s:symlinks=1;} \
|
||||||
|
fdupes -q -r -1 %1 | \
|
||||||
|
while read target rest; do \
|
||||||
|
for f in $rest; do \
|
||||||
|
if test "$symlinks" = 1; then \
|
||||||
|
ln -sf "${target/$RPM_BUILD_ROOT/}" "$f"; \
|
||||||
|
else \
|
||||||
|
ln -f "$target" "$f"; \
|
||||||
|
fi ;\
|
||||||
|
done ;\
|
||||||
|
done \
|
||||||
|
%{nil}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user