Summary: Return the absolute path of a file or directory Name: abspath Version: 0.1 Release: %mkrel 2 Source0: %{name}-%{version}.tar.bz2 Patch0: abspath-asciidoc.patch License: GPL Group: File tools Url: http://voxel.jouy.inra.fr/darcs/abspath BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: python BuildRequires: asciidoc BuildRequires: xmlto BuildRequires: perl BuildArch: noarch %description Return a normalized absolutized version of the pathnames. If no arguments are passed on the command line, the standard input is used. %prep %setup -q %patch0 -p1 %build chmod a+x abspath asciidoc -b docbook -d manpage abspath.1.txt xmlto man abspath.1.xml perl -e 's/\.sp$/\n\.sp/g' -pi abspath.1 %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 cp abspath $RPM_BUILD_ROOT/%{_bindir}/ cp abspath.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/abspath %{_mandir}/man1/* %changelog * Fri Dec 28 2007 Gaëtan Lehmann <glehmann@mandriva.org> 0.1-2mdv2008.1 + Revision: 138987 - fix build with new asciidoc (patch0) + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sun Jan 07 2007 Gaëtan Lehmann <glehmann@mandriva.org> 0.1-1mdv2007.0 + Revision: 105244 - Import abspath