Group :: System/Base
RPM: hardlink
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: hardlink
Version: 1.0
Release: alt3
Summary: Consolidate duplicate files via hardlinks
License: GPLv2+
Group: System/Base
Url: http://cvs.fedora.redhat.com/viewcvs/devel/hardlink/
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source0: hardlink.c
Source1: hardlink.1
%description
This package contains hardlink, an utility which consolidates duplicate
files in one or more directories using hardlinks.
hardlink traverses one or more directories searching for duplicate files.
When it finds duplicate files, it uses one of them as the master. It then
removes all other duplicates and places a hardlink for each one pointing
to the master file. This allows for conservation of disk space where
multiple directories on a single filesystem contain many duplicate files.
Since hard links can only span a single filesystem, hardlink is only
useful when all directories specified are on the same filesystem.
%prep
%setup -q -c -T
%build
%__cc %optflags %_sourcedir/hardlink.c -o hardlink
%install
install -pDm755 hardlink %buildroot%_bindir/hardlink
install -pDm644 %_sourcedir/hardlink.1 %buildroot%_man1dir/hardlink.1
%files
%_bindir/hardlink
%_man1dir/hardlink.*
%changelog
…
Full changelog you can see here
Version: 1.0
Release: alt3
Summary: Consolidate duplicate files via hardlinks
License: GPLv2+
Group: System/Base
Url: http://cvs.fedora.redhat.com/viewcvs/devel/hardlink/
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source0: hardlink.c
Source1: hardlink.1
%description
This package contains hardlink, an utility which consolidates duplicate
files in one or more directories using hardlinks.
hardlink traverses one or more directories searching for duplicate files.
When it finds duplicate files, it uses one of them as the master. It then
removes all other duplicates and places a hardlink for each one pointing
to the master file. This allows for conservation of disk space where
multiple directories on a single filesystem contain many duplicate files.
Since hard links can only span a single filesystem, hardlink is only
useful when all directories specified are on the same filesystem.
%prep
%setup -q -c -T
%build
%__cc %optflags %_sourcedir/hardlink.c -o hardlink
%install
install -pDm755 hardlink %buildroot%_bindir/hardlink
install -pDm644 %_sourcedir/hardlink.1 %buildroot%_man1dir/hardlink.1
%files
%_bindir/hardlink
%_man1dir/hardlink.*
%changelog
…
Full changelog you can see here