File g-wrap.spec of Package g-wrap

#
# spec file for package g-wrap (Version 1.9.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           g-wrap
Version:        1.9.10
Release:        1
Url:            http://www.nongnu.org/g-wrap/
Group:          Development/Languages/Scheme
License:        LGPL v2.1 or later
Summary:        Guile Wrapper Generator
Source:         %{name}-%{version}.tar.bz2
Patch1:         libffi-ia64.diff
Patch2:         g-wrap-datarootdir.patch
Patch3:         g-wrap-aclocal.patch
AutoReqProv:    on
Requires:       guile 
BuildRequires:  glib2-devel guile-devel
%if %suse_version > 1010
BuildRequires:  libffi-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
G-Wrap is a tool (and guile library) for generating function wrappers
for interlanguage calls. It currently only supports generating Guile
wrappers for C functions. Other languages may be supported in the
future, possibly on both sides.



Authors:
--------
    Andreas Rottmann <a.rottmann@gmx.at>
    Rob Browning <rlb@defaultvalue.org>
    Christopher Lee <chrislee@ri.cmu.edu>

%package devel
Group:          Development/Languages/Scheme
Summary:        Guile Wrapper Generator
Requires:       glibc-devel
Requires:       guile-devel gmp-devel libtool
PreReq:         %install_info_prereq
Requires:       %{name} = %{version}
%if %suse_version > 1010
Requires:       libffi-devel
%endif

%description devel
G-Wrap is a tool (and guile library) for generating function wrappers
for inter-language calls. It currently only supports generating Guile
wrappers for C functions. Other languages may be supported in the
future, possibly on both sides.



Authors:
--------
    Andreas Rottmann <a.rottmann@gmx.at>
    Rob Browning <rlb@defaultvalue.org>
    Christopher Lee <chrislee@ri.cmu.edu>

%prep
%setup
%patch1
%patch2
%patch3

%build
autoreconf -f -i
export GUILE_WARN_DEPRECATED=no
# --disable-Werror required for gcc-4.1.3 & g-wrap-1.9.6:
# core-runtime.c:55: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
%configure\
	--disable-Werror
make %{?jobs:-j%jobs}

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/g-wrap.info.gz

%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/g-wrap.info.gz

%files
%defattr (-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README THANKS TODO
/usr/%{_lib}/*.so.*
# Required by slib here, not in devel:
/usr/%{_lib}/*.so
/usr/%{_lib}/g-wrap
/usr/share/guile/site/g-wrap
#/usr/share/guile/site/srfi
/usr/share/guile/site/*.scm

%files devel
%defattr (-, root, root)
/usr/%{_lib}/*.*a
/usr/%{_lib}/pkgconfig/*.pc
/usr/bin/*-config
/usr/include/g-wrap
/usr/include/*.h
/usr/share/aclocal/g-wrap.m4
%doc /usr/share/info/*.info*

%changelog
* Thu Feb 28 2008 ro@suse.de
- update to 1.9.10
    - Fix WCT nullable behaviour for 'new' (i.e. non-compat) wrapsets;
  there is now a SRFI-39 parameter 'gw-wcts-nullable?' controlling
  the nullable behaviour; this parameter is #f by default, and set
  to #t when generating compat wrapsets.
- update to 1.9.9
    - Support per-(type-)instance use of #:allowed-options
    - Build fixes:
      - Fix example build when libffi is not installed on the system.
      - Fix GLib build (was deactivated by accident)
      - Distribute and install SRFI 34/35 again
    - libffi updated from GCC SVN
    - It is now possible to have invisible output arguments; these
  won't show up as return values of the Scheme procedure.
- update to 1.9.8
  - New feature: function flags. At the moment there is a single flag
  specifying whether to leave "Guile mode" when calling the wrapper
  functions. See the Guile manual on "scm_without_guile" for more
  information.
  - Don't rely on libc to provide (v)asprintf, take the implementation
  from gnulib.
  - The minimal GLib bindings now build against GLib 2.x. However,
  their use is deprecated in favour of the much more complete GLib
  bindings in guile-gnome
  (http://www.gnu.org/software/guile-gnome/).
- update to 1.9.7
  - The shared libraries now reside in $(pkglibdir)/modules
  (e.g. /usr/lib/g-wrap/modules).
  - Users are now allowed to chose in which module generic functions
  should be defined.
  - New feature: aggregated typespecs.  See the node `Wrapping a C
  Function' of the manual for details.
  - Users can now specify a free and a mark function, as well as an
  equality predicate for wrapped C types (WCTs) in `wrap-as-wct!'.
  - Improved documentation with an API reference (yet to be finished).
  - Several bugfixes.
* Wed Jun 20 2007 sbrabec@suse.cz
- Fixed build by disabling -Werror.
* Mon Nov 27 2006 sbrabec@suse.cz
- Do not own /usr/share/guile/site (#223837).
* Thu Oct 26 2006 sbrabec@suse.cz
- Use system libffi (#182064).
* Tue Oct 17 2006 lrupp@suse.de
- move requires glic-devel to devel package
- added guile-devel gmp-devel libtool to Requires for devel package
* Fri Oct 13 2006 aj@suse.de
- Use guile-devel as buildreq.
* Thu Oct 12 2006 ro@suse.de
- added gmp-devel to buildreq (guile)
* Tue Jul 04 2006 schwab@suse.de
- Handle datarootdir.
* Sat Jun 03 2006 schwab@suse.de
- Import libffi support from gcc repository.
* Tue May 16 2006 sbrabec@suse.cz
- Disabled parallel build (often fails).
* Wed May 10 2006 sbrabec@suse.cz
- Split g-wrap into a separate package.
- Updated to version 1.9.6 (new branch).
* Sun Feb 05 2006 aj@suse.de
- Fix build.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 25 2005 sbrabec@suse.cz
- Updated to version 1.8.12.
- Updated gnucash-docs to version 1.8.5.
  Based on spec file from Rajesh Singh <rajeshsingh.geo@yahoo.com>.
* Tue Aug 02 2005 ro@suse.de
- intltoolize with force
* Tue Apr 26 2005 gekker@suse.de
- Add Guppi-gcc4.patch to fix GCC4 compile failures.
* Tue Apr 19 2005 ro@suse.de
- use gt_LC_MESSAGES instead of AM_LC_MESSAGES
* Thu Apr 14 2005 sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Wed Mar 23 2005 sbrabec@suse.cz
- Moved desktop file (#73653).
* Mon Feb 21 2005 sf@suse.de
- fix build on biarch architectures
* Mon Jan 31 2005 sndirsch@suse.de
- use iso-8859-15 for recoding account files instead of iso-8859-1
* Sun Jan 30 2005 sndirsch@suse.de
- recode acccount files to UTF-8 encoding in specfile (Bug #38292)
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Mon Nov 08 2004 ro@suse.de
- update to 1.8.9
- fix build with current intltool
* Thu Nov 04 2004 ro@suse.de
- locale rename: no -> nb
* Tue Oct 12 2004 ro@suse.de
- added libgcrypt libgpg-error to neededforbuild
* Mon Mar 29 2004 hhetter@suse.de
- don't call format, as newer versions of slib don't provide it
  any more (Bug Id#34241)
* Wed Mar 17 2004 sbrabec@suse.cz
- Fixed underquoted definitions (#36195).
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Fri Feb 20 2004 sbrabec@suse.cz
- Removed false requirement of glade.
* Thu Feb 19 2004 sbrabec@suse.cz
- Removed false requirement of libunicode.
* Tue Feb 17 2004 sbrabec@suse.cz
- Added gdk-pixbuf-gnome to neededforbuild.
* Thu Feb 12 2004 sbrabec@suse.cz
- Updated to version 1.8.8.
* Thu Oct 23 2003 lmb@suse.de
- Update to gnucash 1.8.7 and gnucash-docs-1.8.3.
- Re-added Guppi and folded it into gnucash package so graphs work
  again. (#32135)
* Tue Sep 02 2003 ro@suse.de
- remove Guppi from neededforbuild
  (dropped, since gnumeric(1) was dropped)
* Fri Aug 22 2003 ke@suse.de
- Add sgml-skel to neededforbuild.
* Thu Aug 21 2003 hhetter@suse.de
- integrate the documentation package (rel. 1.8.2)
* Wed Aug 20 2003 ro@suse.de
- removed libgtop from neededforbuild
* Wed Aug 20 2003 hhetter@suse.de
- updated to version 1.8.5
* Sat Aug 16 2003 adrian@suse.de
- add Categories
* Mon Jul 28 2003 hhetter@suse.de
- don't run deprecated tests
* Tue Jul 15 2003 hhetter@suse.de
- updated to version 1.8.4
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Fri Jun 20 2003 ro@suse.de
- fix build with current gettext
* Thu Jun 05 2003 ro@suse.de
- remove unpackaged files from buildroot
- add g-wrap includes to package
* Wed May 14 2003 mcihar@suse.cz
- don't need umb-scheme
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Fri Mar 28 2003 sbrabec@suse.cz
- Typo fix (NBSP -> spaces).
* Fri Mar 28 2003 sbrabec@suse.cz
- Added install_info.
- Compress info pages.
* Fri Feb 21 2003 ro@suse.de
- added openhbci-devel to neededforbuild
* Tue Feb 18 2003 ro@suse.de
- added libchipcard and devel to neededforbuild
* Fri Feb 07 2003 hhetter@suse.de
- build with libofx support
* Thu Feb 06 2003 ro@suse.de
- update to g-wrap-1.3.4 and gnucash-1.8.0
* Thu Jan 09 2003 ro@suse.de
- add AM_GNU_GETTEXT_VERSION and make it build
- hack for gtkhtml-1.1 and recent guile
- more makefile hackery to work around cyclic library dependencies
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Mon Sep 09 2002 hhetter@suse.de
- fix guile version checking in srfi-8.scm for new guile 1.4.1
  ( Bug Id #19258)
* Thu Aug 29 2002 hhetter@suse.de
- removed gnome-applets / gnome-core stuff from #neededforbuild
* Thu Jul 04 2002 hhetter@suse.de
- updated to version 1.6.6
- use a stable g-wrap release (1.2.x)
* Wed May 22 2002 meissner@suse.de
- %%_lib fixes.
* Thu Apr 04 2002 schwab@suse.de
- Fix for new autotools.
* Mon Feb 18 2002 ro@suse.de
- added missing g-wrap runtime lib to filelist (#13472)
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Jan 23 2002 hhetter@suse.de
- added python, python-devel to #neededforbuild
* Wed Dec 19 2001 hhetter@suse.de
- gnucash version update to 1.6.5
- g-wrap updated to version 1.3.1
- added LIBRARY_PATH for broken libtool
- removed no longer needed patch
- functionality test on i386 arch
- g-wrap version customized in specfile
- features for 1.6.5:
  * amazing new Euro-conversion druid!
  * massive translation update
  * minor application bugfixes
* Sun Dec 09 2001 ro@suse.de
- added <slib> to neededforbuild
* Fri Dec 07 2001 ro@suse.de
- changed neededforbuild <scheme> to <umb-scheme>
* Wed Dec 05 2001 hhetter@suse.de
- prefix g-wrap to the original guile interpreter location
* Tue Nov 27 2001 ro@suse.de
- back to g-wrap-1.1.10
* Thu Nov 22 2001 ro@suse.de
- update to g-wrap-1.1.11
- added guppi-include path to cflags
  (gnome-config does not show this path)
* Wed Nov 21 2001 ro@suse.de
- added freetype2 to neededforbuild
* Tue Oct 16 2001 hhetter@suse.de
- updated to version 1.6.4:
  * fixes a bug which made it impossible to
  load 1.4.x-gnucash files
* Wed Sep 26 2001 hhetter@suse.de
- updated to version 1.6.3:
  * new Polish translation
  * Danish and Spanish translation of new account files
  * updated Swedish, German, and Portuguese translations
  * child accounts can be reconciled with the parent
  * support for TrustNet online quotes
  * support for precious metal currencies
- functionality test on i386
* Sat Sep 15 2001 schwab@suse.de
- Add Requires: python.
* Sat Sep 15 2001 schwab@suse.de
- Fix missing declarations.
- Add %%suse_update_config.
* Wed Sep 12 2001 hhetter@suse.de
- revert to g-wrap version 1.1.10, get gnucash
  to work with guile 1.4
- filelist review
- test on i386
* Fri Aug 17 2001 egger@suse.de
- Added fix for hardcoded CFLAGS in g-wrap.
* Fri Aug 17 2001 egger@suse.de
- Added fix for libtool bustage in g-wrap update to 1.1.11.
* Mon Aug 13 2001 hhetter@suse.de
- update to 1.6.2
* Sun Jul 29 2001 egger@suse.de
- Updated g-wrap to version 1.1.11.
* Wed Jul 25 2001 sf@suse.de
- removed '-Werror' from Makefile.am in test/ to compile also
  with gcc > 2.95
* Thu Jul 19 2001 hhetter@suse.de
- added #requires python phyton-gtk
* Sun Jul 08 2001 egger@suse.de
- Updated to version 1.6.1.
- Added mising stuff to the filelist.
* Thu Jul 05 2001 uli@suse.de
- added gal-devel to neededforbuild
* Thu Jun 21 2001 ro@suse.de
- updated filelist
- cleaned specfile a bit
* Mon Jun 18 2001 hhetter@suse.de
- gnucash : update to 1.6.0
- g-wrap : update to 1.1.10
- added additional requirements
- functionality test in current buildsystem
- filelist review
* Tue May 01 2001 egger@suse.de
- Updated to version 1.4.12. Again just bugfixes.
* Mon Apr 02 2001 egger@suse.de
- Updated to version 1.4.11. Pure bugfix release.
* Wed Mar 21 2001 ro@suse.de
- added esound-devel to neededforbuild
* Fri Mar 02 2001 egger@suse.de
- Minor corrections to the specfile.
* Tue Feb 20 2001 egger@suse.de
- removed imlib-config from neededforbuild.
- Updated gnucash to version 1.4.10.
- Updated g-wrap to version 1.4.12.
* Wed Jan 31 2001 ro@suse.de
- changed neededforbuild <imlibcfe> to <imlib-config>
* Thu Dec 21 2000 egger@suse.de
- Updated gnucash to 1.4.9.
- Updated g-wrap to 0.9.8.
- Bugfix releases.
- Recompressed with bzip2.
* Sun Dec 10 2000 schwab@suse.de
- Add %%suse_update_config.
* Mon Nov 06 2000 randall@suse.de
-  Removed these two commands.  The guile package will preform these
  actions:
  ln -sf /usr/lib/scheme/slib /usr/share/guile/1.4/slib
  guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
* Thu Nov 02 2000 randall@suse.de
- Changed to long file names, also for distro SuSE 7.1a
* Tue Oct 31 2000 randall@suse.de
- Initial Release
openSUSE Build Service is sponsored by