Blob Blame History Raw
Summary:        Create a tree of hardlinks.
Name:           hardlink
Version:        1.0
Release: 	%(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
Epoch:		1
Group:          System Environment/Base
License:        GPL
Source0:	hardlink.c
Buildroot:      %{_tmppath}/%{name}-%{version}-root
Obsoletes:	kernel-utils

%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 RPM installed.

%prep

%build
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/usr/sbin
gcc -Wall $RPM_OPT_FLAGS -g %{SOURCE0} -o %{buildroot}/usr/sbin/hardlink

%install
chmod -R a-s %{buildroot}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
/usr/sbin/hardlink

%preun

%post

%changelog
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
- rebuild with -D_FORTIFY_SOURCE=2

* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
- Add missing Obsoletes: kernel-utils

* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
- Initial packaging, based upon kernel-utils.