Added proper way to link file

This commit is contained in:
jeffg 2007-07-26 20:27:45 +00:00
parent 7a5c9764d1
commit 3109a0b382

View File

@ -30,26 +30,18 @@ make
rm -rf %{buildroot}
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
ln -sf ./%{name} %{buildroot}%{_bindir}/pbunzip2
%clean
rm -rf %{buildroot}
%post
cd %{_bindir}
ln -s -f %{name} pbunzip2
%postun
cd %{_bindir}
rm -rf pbunzip2
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_bindir}/pbunzip2
%{_mandir}/man1/*