OBS User unknown 2007-03-06 08:06:21 +00:00 committed by Git OBS Bridge
parent 5cfb4e8cf6
commit 4b2b0f046d
2 changed files with 10 additions and 29 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 5 18:17:05 CET 2007 - sbrabec@suse.cz
- Slib guile library installation moved from guile to slib.
-------------------------------------------------------------------
Thu Jan 11 17:03:26 CET 2007 - sbrabec@suse.cz

View File

@ -16,7 +16,7 @@ License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: Development/Languages/Scheme
Autoreqprov: on
Version: 1.8.1
Release: 30
Release: 34
%define GUILEVERSION 1.8
Summary: GNU's Ubiquitous Intelligent Language for Extension
URL: http://www.gnu.org/software/guile/
@ -96,7 +96,7 @@ aclocal
automake -a
autoconf
cd ..
# FIXME: Following files are apparently compiled without RPM_OPT_FLAGS:
# FIXME: Following files are apparently compiled without RPM_OPT_FLAGS:
# gen-scmconfig.c,c-tokenize.c
%configure\
--with-threads
@ -123,37 +123,11 @@ rm -fr $RPM_BUILD_ROOT
%install_info_delete --info-dir=%{_infodir} %{_infodir}/goops.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/guile-tut.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/r5rs.info.gz
# Delete slib library files, only if guile was uninstalled.
if ! test -e usr/bin/guile ; then
rm -f %{_datadir}/guile/site/slib
rm -f %{_datadir}/guile/site/slibcat
rmdir %{_datadir}/guile/site 2>/dev/null || true
rmdir %{_datadir}/guile 2>/dev/null || true
fi
%pre
# Remove obsolete files (< SuSE Linux 10.2)
rm -f var/adm/SuSEconfig/md5/usr/share/guile/*/slibcat
rm -f usr/share/guile/site/slibcat.SuSEconfig
# FIXME: Should fit better in the slib package.
%triggerin -- slib
# slib library
if [ -e /usr/share/slib/guile.init ] ; then
# slib is instaled
if [ ! -e /usr/share/guile/site/slib ] ; then
# link slib library into guile
ln -sf /usr/share/slib /usr/share/guile/site/slib
fi
guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
fi
%triggerpostun -- slib
# Delete slib library files, only if slib or guile was uninstalled.
if ! test -d /usr/share/slib -a -d /usr/share/guile ; then
rm -f %{_datadir}/guile/site/slib
rm -f %{_datadir}/guile/site/slibcat
fi
%files
%defattr(-,root,root)
@ -177,7 +151,9 @@ fi
%doc %{_infodir}/r5rs.info.gz
%{_libdir}/libguile*.a
%changelog -n guile
%changelog
* Mon Mar 05 2007 - sbrabec@suse.cz
- Slib guile library installation moved from guile to slib.
* Thu Jan 11 2007 - sbrabec@suse.cz
- More spec file cleanups.
* Fri Dec 08 2006 - maw@suse.de