File hardlink.spec of Package hardlink

# spec file for package hardlink
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           hardlink
Summary:        Create a tree of hardlinks
License:        GPL-2.0+
Group:          System/Base
Version:        1.0
Release:        0
Source0:        hardlink.c
Source1:        hardlink.1
Source2:        COPYING
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

hardlink is used to create a tree of hard links. It's used by kernel
installation to dramatically reduce the amount of diskspace used by
each kernel package installed.

%setup -q -c -T

install -pm 644 %{SOURCE0} hardlink.c


gcc $RPM_OPT_FLAGS hardlink.c -o hardlink

install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/hardlink.1
install -D -m 755 hardlink $RPM_BUILD_ROOT%{_sbindir}/hardlink

%doc %{_mandir}/man1/hardlink.1*

openSUSE Build Service is sponsored by