2006-12-28 13:03:34 +00:00
|
|
|
Name: logtalk
|
|
|
|
Summary: Logtalk - Open source object-oriented extension to Prolog
|
2007-03-28 23:44:31 +01:00
|
|
|
Version: 2.29.5
|
2006-12-28 13:03:34 +00:00
|
|
|
Release: 1
|
|
|
|
License: Artistic License 2.0
|
|
|
|
Group: Development/Languages
|
|
|
|
Packager: Paulo Moura <pmoura@logtalk.org>
|
2007-03-28 23:44:31 +01:00
|
|
|
Source: http://logtalk.org/files/lgt2295.tgz
|
2006-12-28 13:03:34 +00:00
|
|
|
BuildArchitectures: noarch
|
|
|
|
URL: http://logtalk.org/
|
|
|
|
Prefix: /usr/local
|
|
|
|
AutoReqProv: no
|
|
|
|
%description
|
|
|
|
Logtalk is an open source object-oriented extension to the Prolog programming language. Integrating logic programming with object-oriented and event-driven programming, it is compatible with most Prolog compilers. It supports both prototypes and classes. In addition, it supports component-based programming through category-based composition.
|
|
|
|
%prep
|
2007-03-28 23:44:31 +01:00
|
|
|
%setup -n lgt2295
|
2006-12-28 13:03:34 +00:00
|
|
|
%build
|
|
|
|
%install
|
2007-03-28 23:44:31 +01:00
|
|
|
rm -rf /usr/local/lgt2295
|
2006-12-28 13:03:34 +00:00
|
|
|
rm -f /usr/local/logtalk
|
2007-03-28 23:44:31 +01:00
|
|
|
mkdir /usr/local/lgt2295
|
|
|
|
cp -R * /usr/local/lgt2295
|
2006-12-28 13:03:34 +00:00
|
|
|
cd /usr/local
|
2007-03-28 23:44:31 +01:00
|
|
|
chmod -R go-w,a+r lgt2295
|
|
|
|
chmod a+x lgt2295
|
|
|
|
chmod a+x lgt2295/scripts/*.sh
|
|
|
|
chmod a-x lgt2295/scripts/*.js
|
|
|
|
chmod a+x lgt2295/scripts/linux/*.sh
|
|
|
|
chmod a+x lgt2295/scripts/macosx/postflight
|
|
|
|
chmod a+x lgt2295/xml/*.sh
|
|
|
|
chmod a-x lgt2295/xml/*.js
|
|
|
|
ln -sf lgt2295 logtalk
|
2006-12-28 13:03:34 +00:00
|
|
|
cd bin
|
|
|
|
ln -sf ../logtalk/scripts/cplgtdirs.sh cplgtdirs
|
|
|
|
ln -sf ../logtalk/xml/lgt2pdf.sh lgt2pdf
|
|
|
|
ln -sf ../logtalk/xml/lgt2html.sh lgt2html
|
|
|
|
ln -sf ../logtalk/xml/lgt2xml.sh lgt2xml
|
|
|
|
%clean
|
|
|
|
%files
|
|
|
|
%defattr(-,root,users)
|
2007-03-28 23:44:31 +01:00
|
|
|
%doc /usr/local/lgt2295/BIBLIOGRAPHY.bib
|
|
|
|
%doc /usr/local/lgt2295/CUSTOMIZE.txt
|
|
|
|
%doc /usr/local/lgt2295/INSTALL.txt
|
|
|
|
%doc /usr/local/lgt2295/LICENSE.txt
|
|
|
|
%doc /usr/local/lgt2295/QUICK_START.txt
|
|
|
|
%doc /usr/local/lgt2295/README.txt
|
|
|
|
%doc /usr/local/lgt2295/RELEASE_NOTES.txt
|
|
|
|
%doc /usr/local/lgt2295/UPGRADING.txt
|
|
|
|
/usr/local/lgt2295/compiler
|
|
|
|
/usr/local/lgt2295/configs
|
|
|
|
/usr/local/lgt2295/contributions
|
|
|
|
/usr/local/lgt2295/examples
|
|
|
|
/usr/local/lgt2295/libpaths
|
|
|
|
/usr/local/lgt2295/library
|
|
|
|
%docdir /usr/local/lgt2295/manuals
|
|
|
|
/usr/local/lgt2295/manuals
|
|
|
|
/usr/local/lgt2295/scripts
|
|
|
|
/usr/local/lgt2295/wenv
|
|
|
|
/usr/local/lgt2295/xml
|
2006-12-28 13:03:34 +00:00
|
|
|
/usr/local/logtalk
|
|
|
|
/usr/local/bin/cplgtdirs
|
|
|
|
/usr/local/bin/lgt2pdf
|
|
|
|
/usr/local/bin/lgt2html
|
|
|
|
/usr/local/bin/lgt2xml
|
|
|
|
%post
|
|
|
|
mkdir -p /etc/profile.d
|
|
|
|
echo "# Logtalk environment setup" > /etc/profile.d/logtalk.sh
|
|
|
|
echo "" >> /etc/profile.d/logtalk.sh
|
|
|
|
echo "# Logtalk installation directory:" >> /etc/profile.d/logtalk.sh
|
|
|
|
echo "export LOGTALKHOME=$RPM_INSTALL_PREFIX/logtalk" >> /etc/profile.d/logtalk.sh
|
|
|
|
echo "" >> /etc/profile.d/logtalk.sh
|
|
|
|
echo "# Default location for Logtalk end-user files:" >> /etc/profile.d/logtalk.sh
|
|
|
|
echo "export LOGTALKUSER=\$HOME/logtalk" >> /etc/profile.d/logtalk.sh
|
|
|
|
chmod a+x /etc/profile.d/logtalk.sh
|
|
|
|
echo "# Logtalk environment setup" > /etc/profile.d/logtalk.csh
|
|
|
|
echo "" >> /etc/profile.d/logtalk.csh
|
|
|
|
echo "# Logtalk installation directory:" >> /etc/profile.d/logtalk.csh
|
|
|
|
echo "setenv LOGTALKHOME $RPM_INSTALL_PREFIX/logtalk" >> /etc/profile.d/logtalk.csh
|
|
|
|
echo "" >> /etc/profile.d/logtalk.csh
|
|
|
|
echo "# Default location for Logtalk end-user files:" >> /etc/profile.d/logtalk.csh
|
|
|
|
echo "setenv LOGTALKUSER \$HOME/logtalk" >> /etc/profile.d/logtalk.csh
|
|
|
|
chmod a+x /etc/profile.d/logtalk.csh
|
|
|
|
eval export LOGTALKHOME=$RPM_INSTALL_PREFIX/logtalk; cd $LOGTALKHOME/scripts; ./makeall_lgt.sh $RPM_INSTALL_PREFIX
|
|
|
|
echo ""
|
|
|
|
echo "Defined the following environment variables for all users:"
|
|
|
|
echo ""
|
|
|
|
echo " Logtalk installation directory: LOGTALKHOME = $RPM_INSTALL_PREFIX/logtalk"
|
|
|
|
echo " Default Logtalk user files directory: LOGTALKUSER = \$HOME/logtalk"
|
|
|
|
echo ""
|
|
|
|
echo "You may need to logout and login again or start a new shell in order to"
|
|
|
|
echo "use the new environment variables."
|
|
|
|
echo ""
|
|
|
|
echo "You may change the default value of the LOGTALKUSER environment variable"
|
|
|
|
echo "in your shell configuration files if you already use, or want to use, a "
|
|
|
|
echo "different location for the Logtalk user files directory."
|
|
|
|
echo ""
|
|
|
|
%postun
|
|
|
|
rm -f /etc/profile.d/logtalk.sh
|
|
|
|
rm -f /etc/profile.d/logtalk.csh
|