File realpath.spec of Package realpath
Name: realpath
Version: 1.12
Release: 0herzi1%{?dist}
Summary: Return the canonicalized absolute pathname
Group: Development/Tools
License: GPLv2
#URL:
Source0: %{name}_%{version}.tar.gz
Patch0: realpath-1.12-support-destdir.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
#BuildRequires:
#Requires:
%description
The package contains a small utility realpath, which converts each pathname
argument to an absolute pathname, which has no components that are symbolic
links or the special . or .. directory entries.
This utility provides mostly the same functionality as `/bin/readlink -f' in
the coreutils package.
%prep
%setup -q
%patch0 -p 1
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
/usr/bin/realpath
/usr/share/man/man1/realpath.1.gz
%changelog
* Wed Jan 06 2009 Sven Herzberg <herzi@gnome-de.org> - 1.12-0herzi1
- initial working packaging
# vim:set et: