-# Before configuring lyx for the local system
-# PATH needs to be imported
-if [ -f /etc/profile ]; then
- . /etc/profile
-fi
-#
-# Now configure LyX
-#
-echo "Configuring LyX for your system..."
-cd %{_datadir}/%{name}
-./configure --srcdir
-
-# Fix reLyX perl program if the prefix is non-standard
-if [ "%{_prefix}" != "/usr" ]
-then
- perl -pi -e "s!/usr/share/%{name}!%{_datadir}/%{name}!" %{_bindir}/reLyX
-fi
-