%define major 2 Summary: A tool for creating Scheme interfaces to C libraries. Name: g-wrap Version: 1.1.11 Release: 3mdk Source: ftp://ftp.gnucash.org/pub/g-wrap/%{name}-%{version}.tar.bz2 Requires: guile Group: System/Libraries BuildRequires: guile-devel License: GPL Epoch: 1 URL: http://www.gnucash.org BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: lib%{name}%{major} %description g-wrap is a tool for creating Scheme interfaces to C libraries. At the moment it is most heavily focused on providing access to C libraries from guile, but it also supports RScheme. %package -n lib%{name}%{major} Epoch: 1 Group: %{group} Summary: %{summary} # libg-wrap0-devel Obsoletes: libg-wrap0 %description -n lib%{name}%{major} g-wrap 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 -n lib%{name}%{major}-devel Epoch: 1 Group: Development/C Summary: Include files and libraries needed for g-wrap development. Requires: %{name} = %{version} Requires: lib%{name}%{major} = %{version} Obsoletes: %{name}-devel Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} # libg-wrap0-devel was a mistake Obsoletes: libg-wrap0-devel %description -n lib%{name}%{major}-devel g-wrap is a tool for creating Scheme interfaces to C libraries. At the moment it is most heavily focused on providing access to C libraries from guile, but it also supports RScheme. 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 this package if you need to compile programs that need to use g-wrap C<->Scheme functionality %prep %setup -q %build %configure2_5x # yep laziness. find . -type f -name 'Makefile' -exec perl -pi -e 's|-I/usr/include||g' {} \; %make %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig -n lib%{name}%{major} %post -n lib%{name}%{major}-devel %_install_info %{name}.info %postun -p /sbin/ldconfig -n lib%{name}%{major} %postun -n lib%{name}%{major}-devel %_remove_install_info %{name}.info %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS %{_datadir}/aclocal/*.m4 %{_datadir}/guile/* %files -n lib%{name}%{major} %defattr(-,root,root) %{_libdir}/*.so.* %files -n lib%{name}%{major}-devel %defattr(-,root,root) %{_bindir}/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_datadir}/aclocal/* %{_infodir}/%{name}* %changelog * Sun Jun 16 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.1.12-3mdk - Drill out -I/usr/include to make -Werror from barfing. * Thu Jan 17 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.1.11-2mdk - Argg, add missing epoch * Thu Jan 17 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.1.11-1mdk - Back to 1.1 branch, gnucash is not yet compatible with newer releases * Wed Jan 16 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.2-1mdk - Release 1.3.2 - Remove patch0 * Mon Jan 14 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2.1-1mdk - Release 1.2.1 - Use more macros - Libification * Sat Dec 1 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.1.10-3mdk - pass --build/--host/--target to ./configure - s/Copyright/License/ * Wed Jun 13 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 1.1.10-2mdk - removed post in devel (ranlib) - added info file installation * Thu May 31 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 1.1.10-1mdk - new version for gnucash 1.5.97 * Wed Aug 30 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.5-3mdk - changed prefix in configure, removed sed... * Wed Aug 30 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.5-2mdk - sed on g-wrap * Wed Aug 30 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.5-1mdk - new version (necessary with guile-devel 1.4) - macroszification - packager tag - split into lib and devel packages * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.9.4-2mdk - automatically added BuildRequires * Sat Jul 01 2000 Christopher Molnar <molnarc@mandrakesoft.com> 0.9.4-1mdk - Packaged for Mandrake need for gnucash update. * Sat May 27 2000 Mark Horning <rip6@rip6.net> - Created spec file