File hardlink.spec of Package hardlink

#
# spec file for package hardlink
#
# Copyright (c) 2017 SUSE LINUX 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 http://bugs.opensuse.org/
#


Name:           hardlink
Summary:        Create a tree of hardlinks
License:        GPL-2.0+
Group:          System/Base
Version:        1.0+git.e66999f
Release:        0
Url:            https://pagure.io/hardlink

#Git-Clone:	https://pagure.io/hardlink.git
Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  xz

%description
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.

%prep
%setup -q

%build
gcc %optflags hardlink.c -o hardlink

%install
install -D -m 644 hardlink.1 "%buildroot/%_mandir/man1/hardlink.1"
install -D -m 755 hardlink "%buildroot/%_bindir/hardlink"

%files
%defattr(-,root,root)
%{_bindir}/hardlink
%{_mandir}/man1/hardlink.1*
%doc gpl-2.0.txt

%changelog
openSUSE Build Service is sponsored by