# guile.spec %define oldrelease 8 %define arch i386 %define oldname guile Summary: Guile 1.4 compatibility package. Name: %{oldname}14 Version: 1.4 Release: 1 Source: %{oldname}-%{version}-%{oldrelease}.%{arch}.rpm Copyright: GPL Group: Development/Languages Requires: guile <= 1.6.0 BuildRoot: /var/tmp/%{name} %description GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a library implementation of the Scheme programming language, written in C. GUILE provides a machine-independent execution platform that can be linked in as a library during the building of extensible programs. Install the guile14 package if you'd like to add compatibility with guile-1.4. %prep mkdir -p $RPM_BUILD_ROOT rpm2cpio ../SOURCES/%{oldname}-%{version}-%{oldrelease}.%{arch}.rpm >$RPM_BUILD_ROOT/%{oldname}-%{version}-%{oldrelease}.cpio %build %install cd $RPM_BUILD_ROOT cpio -i -d -F %{oldname}-%{version}-%{oldrelease}.cpio --no-absolute-filenames rm %{oldname}-%{version}-%{oldrelease}.cpio rm $RPM_BUILD_ROOT/usr/bin/guile rm $RPM_BUILD_ROOT/usr/share/aclocal/guile.m4 rm $RPM_BUILD_ROOT/usr/share/guile/slib* rmdir $RPM_BUILD_ROOT/usr/share/aclocal %clean %post /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %dir /usr/share/doc/guile-1.4 %dir /usr/share/guile/%{PACKAGE_VERSION} /usr/lib/libguile.so.9* /usr/lib/libguilereadline.so.0* /usr/lib/libqthreads.so.0* /usr/share/doc/guile-1.4/* /usr/share/guile/%{PACKAGE_VERSION}/ice-9