pkg://g-wrap-1.1.10-5.src.rpm:252157/g-wrap.spec
info downloads
Summary: A tool for creating Scheme interfaces to C libraries
Name: g-wrap
Version: 1.1.10
Release: 5
Group: Development/Libraries
Copyright: GPL
Requires: guile
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
Source: ftp://ftp.gnucash.org/pub/g-wrap/g-wrap-%{version}.tar.gz
Patch0: g-wrap-info.patch
Patch1: g-wrap-libs.patch
BuildPrereq: guile-devel
%description
This is a tool for specifying types, functions, and constants to
import into a Scheme interpreter, and for generating code (in C) to
interface these to the Guile and RScheme interpreters in particular.
%package devel
Summary: Include files and libraries needed for g-wrap development.
Group: Development/Libraries
Prereq: /sbin/install-info
Requires: g-wrap = %{version}, guile-devel
%description devel
g-wrap-devel contains development libraries and headers for g-wrap.
You can provide access to a given C API by creating a specification
file describing the interface you want published at the Scheme level.
g-wrap will handle generating all the lower level library interface
code so that the C library shows up as a set of Scheme functions.
You should install g-wrap-devel if you need to compile programs that
need to use g-wrap C<->Scheme functionality
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure
make
%install
rm -rf %{buildroot}
%makeinstall
/sbin/ldconfig -n %{buildroot}/usr/share/guile/g-wrapped
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%post devel
/sbin/install-info \
--info-dir=%{_infodir} %{_infodir}/g-wrap.info.gz
%postun -p /sbin/ldconfig
%postun devel
if [ "$1" = "0" ]; then
/sbin/install-info --delete \
--info-dir=%{_infodir} %{_infodir}/g-wrap.info.gz
fi
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS
%{_libdir}/*.so.*
%{_datadir}/guile/g-wrap
%dir %{_datadir}/guile/g-wrapped
%{_datadir}/guile/g-wrapped/*.scm
%{_datadir}/guile/g-wrapped/*.so*
%{_datadir}/guile/*.scm
%files devel
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_includedir}/*
%{_datadir}/guile/g-wrapped/*.a
%{_datadir}/guile/g-wrapped/*.la
%{_datadir}/aclocal/g-wrap.m4
%doc %{_infodir}/g-wrap.info*
%changelog
* Fri Aug 9 2001 Bill Nottingham <notting@redhat.com>
- fix builds for users without /sbin in their path
* Wed Aug 8 2001 Bill Nottingham <notting@redhat.com>
- fix build
- put a .so link in the g-wrapped directory in the main package (fixes #51129)
* Fri Jul 6 2001 Bill Nottingham <notting@redhat.com>
- tweak dependencies
* Wed Jun 27 2001 Bill Nottingham <notting@redhat.com>
- add info dir entry
* Wed Jun 6 2001 Bill Nottingham <notting@redhat.com>
- update to 1.1.10
- split out devel package
* Tue Aug 1 2000 Tim Powers <timp@redhat.com>
- fixed group to be a valid one
- fix bug #15038
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
- rebuilt
* Tue Jul 11 2000 Tim Powers <timp@redhat.com>
- rebuilt
* Wed Jul 05 2000 Preston Brown <pbrown@redhat.com>
- adopted for Powertools 7.1