hardlink/hardlink.spec

Name: hardlink
Summary: Tool to hardlink duplicate files in a directory tree
Version: 1.2
Release: 1.2
License: GPL
Group: Applications/System
URL: ftp://ftp.redhat.com/pub/redhat/mirror-tools/
Description: A utility to hardlink duplicate files in a directory tree.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with hardlink-1.0-10.el6
%{?el6:# Tag: rfx}
### EL5 ships with hardlink-1.0-1.27
%{?el5:# Tag: rfx}

Summary: Tool to hardlink duplicate files in a directory tree
Name: hardlink
Version: 1.2
Release: 1.2%{?dist}
License: GPL
Group: Applications/System
URL: ftp://ftp.redhat.com/pub/redhat/mirror-tools/

Source: ftp://ftp.redhat.com/pub/redhat/mirror-tools/hardlink.c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
A utility to hardlink duplicate files in a directory tree.

%prep
%setup -c -T
%{__cp} -afp %{SOURCE0} .

%build
${CC:-%{__cc}} %{optflags} -o hardlink hardlink.c

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 hardlink %{buildroot}%{_bindir}/hardlink

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%{_bindir}/hardlink

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.2-1.2
- Rebuild for Fedora Core 5.

* Tue Apr 29 2003 Dag Wieers <dag@wieers.com> - 1.2-1
- Build happens in its own buildsubdir.

* Sun Apr 20 2003 Dag Wieers <dag@wieers.com> - 1.2-0
- Initial build. (using DAR)