Fix symlinked man references some more (#895986)

This commit is contained in:
Yanko Kaneti 2013-01-16 16:55:16 +02:00
parent 419af147e4
commit b67d8ca961

View File

@ -2,7 +2,7 @@
Name: gl-manpages
Version: 1.1
Release: 3.%{codate}%{?dist}
Release: 4.%{codate}%{?dist}
Summary: OpenGL manpages
License: MIT and Open Publication
@ -51,8 +51,8 @@ cp -n {man4,man3,man}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/
for MANP in `find gl-manpages-1.0.1 -name *.3gl` ; do
FN=${MANP//*\//}
cp -a -n $MANP $RPM_BUILD_ROOT%{_mandir}/man3/${FN/.3gl/.3G}
find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/'
done
find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/' -e 's,^\.so man3G/,.so man3/,'
%files
@ -60,6 +60,9 @@ done
%changelog
* Wed Jan 16 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-4.%{codate}
- Fix symlinked man references some more (#895986)
* Mon Oct 15 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-3.%{codate}
- Fix symlinked man variants.
- Preserve timestamps on the older gl-manpages.