2024-01-06 04:33:36 +01:00
|
|
|
%define majversion %(echo %version | cut -d. -f 1-2)
|
|
|
|
Name: libguile
|
2024-01-06 04:33:36 +01:00
|
|
|
Version: 2.2.5
|
|
|
|
Release: 1mamba
|
2024-01-06 04:33:36 +01:00
|
|
|
Summary: A GNU implementation of Scheme for application extensibility
|
|
|
|
Group: Development/Applications
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.gnu.org/software/guile/guile.html
|
|
|
|
Source: http://ftp.gnu.org/gnu/guile/guile-%{version}.tar.xz
|
2024-01-06 04:33:36 +01:00
|
|
|
Patch0: libguile-2.0.11-arm-asm.patch
|
2024-01-06 04:33:36 +01:00
|
|
|
License: LGPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
BuildRequires: libgc-devel
|
|
|
|
BuildRequires: libgmp-devel
|
|
|
|
BuildRequires: libltdl-devel
|
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: libunistring-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 04:33:36 +01:00
|
|
|
BuildRequires: libunistring-devel >= 0.9.6-1mamba
|
2024-01-06 04:33:36 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: slib >= 3b3
|
|
|
|
Requires(post):%{__install_info}
|
|
|
|
Provides: guile = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires(post):slib >= 3b3
|
|
|
|
Obsoletes: guile
|
|
|
|
|
|
|
|
%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 guile package if you'd like to add extensibility to programs that you are developing.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and header files for the GUILE extensibility library.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Obsoletes: guile-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The guile-devel package includes the libraries, header files, etc., that you'll need to develop applications that are linked with the GUILE extensibility library.
|
|
|
|
You need to install the guile-devel package if you want to develop applications that will be linked to GUILE.
|
|
|
|
You'll also need to install the guile package.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n guile-%{version}
|
2024-01-06 04:33:36 +01:00
|
|
|
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
|
|
|
|
%define __find_provides %{_builddir}/guile-%{version}/find_provides.sh
|
|
|
|
cat > %{_builddir}/guile-%{version}/find_provides.sh <<_EOF
|
|
|
|
#! /bin/sh
|
|
|
|
grep -v \.go\$ | \
|
|
|
|
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu}
|
|
|
|
_EOF
|
|
|
|
chmod +x %{_builddir}/guile-%{version}/find_provides.sh
|
|
|
|
|
|
|
|
%define __find_requires %{_builddir}/guile-%{version}/find_requires.sh
|
|
|
|
cat > %{_builddir}/guile-%{version}/find_requires.sh <<_EOF
|
|
|
|
#! /bin/sh
|
|
|
|
grep -v %{buildroot}%{_libdir}/guile/%{majversion}/ccache/ice-9 | \
|
|
|
|
%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null
|
|
|
|
_EOF
|
|
|
|
chmod +x %{_builddir}/guile-%{version}/find_requires.sh
|
2024-01-06 04:33:36 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2024-01-06 04:33:36 +01:00
|
|
|
--with-threads \
|
2024-01-06 04:33:36 +01:00
|
|
|
--disable-static \
|
|
|
|
--disable-error-on-warning \
|
2024-01-06 04:33:36 +01:00
|
|
|
%ifarch arm
|
2024-01-06 04:33:36 +01:00
|
|
|
CFLAGS="%{optflags} -O1"
|
2024-01-06 04:33:36 +01:00
|
|
|
%endif
|
2024-01-06 04:33:36 +01:00
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
#% make scmconfig.h \
|
|
|
|
# -j1 \
|
|
|
|
# -C libguile
|
2024-01-06 04:33:36 +01:00
|
|
|
|
|
|
|
# Guile forgets to set it's onw shard lib path to use shared uninstalled apps.
|
|
|
|
# It ain't pretty, but it works.
|
2024-01-06 04:33:36 +01:00
|
|
|
#LD_LIBRARY_PATH="`pwd`/libguile/.libs:`pwd`/qt/.libs:`pwd`/libguile-ltdl/.libs" \
|
|
|
|
|
|
|
|
%make
|
|
|
|
#\
|
|
|
|
# LDFLAGS="-L`pwd`/libguile/.libs"
|
2024-01-06 04:33:36 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
## Convince guile to be packaged.
|
|
|
|
#perl -p -i -e "s|^libdir.*|libdir='%{buildroot}%{_libdir}'|g" \
|
|
|
|
# guile-readline/libguilereadline.la
|
|
|
|
#perl -p -i -e "s|^relink_command.*||g" guile-readline/libguilereadline.la
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
## Fix up libtool libraries.
|
|
|
|
#find %{buildroot} -name '*.la' | \
|
|
|
|
# xargs perl -p -i -e "s|%{buildroot}||g"
|
|
|
|
#
|
|
|
|
#chmod +x %{buildroot}%{_libdir}/libguile.so.*
|
|
|
|
#mkdir -p %{buildroot}%{_datadir}/guile/site
|
|
|
|
ln -s %{_prefix}/lib/slib %{buildroot}%{_datadir}/guile/slib
|
|
|
|
##ln -s ../../share/umb-scheme/slibcat %{buildroot}%{_datadir}/guile/slibcat
|
|
|
|
|
|
|
|
# Fix gdb file location
|
|
|
|
install -d -m0755 %{buildroot}%{_datadir}/gdb/auto-load/%{_libdir}
|
|
|
|
mv %{buildroot}%{_libdir}/*.scm %{buildroot}%{_datadir}/gdb/auto-load/%{_libdir}/
|
|
|
|
|
|
|
|
## Remove unpackaged files
|
|
|
|
#rm -f %{buildroot}%{_bindir}/guile-doc-snarf
|
|
|
|
#rm -f %{buildroot}%{_bindir}/guile-func-name-check
|
|
|
|
#rm -f %{buildroot}%{_bindir}/guile-snarf.awk
|
|
|
|
#rm -rf %{buildroot}/usr/include/guile-readline
|
|
|
|
#rm -rf %{buildroot}%{_datadir}/info/dir
|
|
|
|
|
|
|
|
## Compress large documentation
|
|
|
|
#bzip2 NEWS
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
guile -c "(use-modules (ice-9 slib)) (require 'printf)" &>/dev/null
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
#% define info_files goops guile-tut guile r5rs
|
|
|
|
#
|
|
|
|
#% post devel
|
|
|
|
#for info_file in %info_files
|
|
|
|
# do %install_info $info_file.info
|
|
|
|
#done
|
|
|
|
#
|
|
|
|
#% preun devel
|
|
|
|
#for info_file in %info_files
|
|
|
|
# do %uninstall_info $info_file.info
|
|
|
|
#done
|
|
|
|
#:
|
2024-01-06 04:33:36 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/guild
|
|
|
|
%{_bindir}/guile
|
|
|
|
%{_bindir}/guile-tools
|
2024-01-06 04:33:36 +01:00
|
|
|
%{_libdir}/libguile-%{majversion}.so.*
|
2024-01-06 04:33:36 +01:00
|
|
|
%dir %{_libdir}/guile
|
2024-01-06 04:33:36 +01:00
|
|
|
%dir %{_libdir}/guile/%{majversion}
|
|
|
|
%dir %{_libdir}/guile/%{majversion}/ccache
|
|
|
|
%{_libdir}/guile/%{majversion}/ccache/*
|
|
|
|
%dir %{_libdir}/guile/%{majversion}/extensions
|
|
|
|
%{_libdir}/guile/%{majversion}/extensions/guile-readline.la
|
|
|
|
%{_libdir}/guile/%{majversion}/extensions/guile-readline.so
|
|
|
|
%{_libdir}/guile/%{majversion}/extensions/guile-readline.so.*
|
2024-01-06 04:33:36 +01:00
|
|
|
%dir %{_datadir}/guile
|
|
|
|
%dir %{_datadir}/guile/%{majversion}
|
|
|
|
%{_datadir}/guile/%{majversion}/*
|
|
|
|
%{_datadir}/guile/slib
|
|
|
|
%{_datadir}/gdb/auto-load/%{_libdir}/*.scm
|
|
|
|
#%{_datadir}/emacs/site-lisp/*.el
|
|
|
|
%{_mandir}/man1/guile.*
|
|
|
|
%doc AUTHORS
|
|
|
|
%doc THANKS
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/guile-config
|
|
|
|
%{_bindir}/guile-snarf
|
|
|
|
%dir %{_includedir}/guile
|
2024-01-06 04:33:36 +01:00
|
|
|
%dir %{_includedir}/guile/%{majversion}
|
|
|
|
%{_includedir}/guile/%{majversion}/*.h
|
|
|
|
%dir %{_includedir}/guile/%{majversion}/libguile
|
|
|
|
%{_includedir}/guile/%{majversion}/libguile/*.h
|
|
|
|
%{_libdir}/libguile-%{majversion}.la
|
|
|
|
%{_libdir}/libguile-%{majversion}.so
|
2024-01-06 04:33:36 +01:00
|
|
|
%{_libdir}/pkgconfig/guile-%{majversion}.pc
|
|
|
|
%{_datadir}/aclocal/*
|
|
|
|
%{_infodir}/*
|
|
|
|
#%doc ChangeLog GUILE-VERSION HACKING NEWS.bz2 README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 04:33:36 +01:00
|
|
|
* Sun Jun 23 2019 Automatic Build System <autodist@mambasoft.it> 2.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Tue Aug 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.4-2mamba
|
|
|
|
- fix dependencies by disabling custom dependency generators
|
|
|
|
|
|
|
|
* Fri Aug 17 2018 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Fri Mar 03 2017 Automatic Build System <autodist@mambasoft.it> 2.0.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Thu Dec 08 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.13-2mamba
|
|
|
|
- rebuilt with --disable-static --disable-error-on-warning and removed make scmconfig.h
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Fri Oct 14 2016 Automatic Build System <autodist@mambasoft.it> 2.0.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 03 2016 Automatic Build System <autodist@mambasoft.it> 2.0.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Sun May 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.11-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: libunistring-devel>=0.9.6-1mamba
|
|
|
|
|
2024-01-06 04:33:36 +01:00
|
|
|
* Mon Apr 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.11-2mamba
|
|
|
|
- move gdb .scm debug file from %_libdir to gdb auto-loaddir and put it in new -debug package
|
|
|
|
|
|
|
|
* Sat Mar 22 2014 Automatic Build System <autodist@mambasoft.it> 2.0.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Apr 13 2013 Automatic Build System <autodist@mambasoft.it> 2.0.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Dec 25 2012 Automatic Build System <autodist@mambasoft.it> 2.0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 04 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-1mamba
|
|
|
|
- update to 2.0.6
|
|
|
|
|
|
|
|
* Sat Dec 18 2010 Automatic Build System <autodist@mambasoft.it> 1.8.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jul 12 2010 Automatic Build System <autodist@mambasoft.it> 1.8.7-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sat Jun 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.7-2mamba
|
|
|
|
- removed requirement for libtool
|
|
|
|
- gcc 4.5 build patch added
|
|
|
|
|
|
|
|
* Fri Jul 10 2009 Automatic Build System <autodist@mambasoft.it> 1.8.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.3-1mamba
|
|
|
|
- update to 1.8.3
|
|
|
|
- removed requirement for umb-scheme
|
|
|
|
- added requirement for slib
|
|
|
|
- moved libguile-srfi-srfi-*.so to main package
|
|
|
|
|
|
|
|
* Sat Sep 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
|
|
|
|
- update to 1.8.1
|
|
|
|
|
|
|
|
* Mon Jun 19 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.6.8-1qilnx
|
|
|
|
- update to version 1.6.8 by autospec
|
|
|
|
|
|
|
|
* Mon Mar 27 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.6.7-2qilnx
|
|
|
|
- fixed info files install/uninstall
|
|
|
|
- added gcc4 patch
|
|
|
|
|
|
|
|
* Wed May 11 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.7-1qilnx
|
|
|
|
- update to version 1.6.7 by autospec
|
|
|
|
|
|
|
|
* Mon Nov 15 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.6.5-1qilnx
|
|
|
|
- rebuilt with a new version and moved from devel-contrib repository to devel repository
|
|
|
|
|
|
|
|
* Sun Oct 24 2004 Matteo Bernasconi <voyagernm@virgilio.it> 1.6.4-1qilnx
|
|
|
|
- first build
|