]>
Commit | Line | Data |
---|---|---|
fb018e96 | 1 | Summary: A tool for exporting C libraries into Scheme interpreters |
2 | Name: g-wrap | |
3cd4cb75 | 3 | Version: 0.9.6 |
14e039ea | 4 | Release: 1 |
fb018e96 | 5 | License: GPL |
6 | Group: Libraries | |
80984df2 | 7 | Group(de): Libraries |
80875be3 | 8 | Group(fr): Librairies |
fb018e96 | 9 | Group(pl): Biblioteki |
80875be3 | 10 | Source0: ftp://ftp.gnucash.org/pub/g-wrap/%{name}-%{version}.tar.gz |
80984df2 | 11 | Patch0: %{name}-info.patch |
76dd16c9 | 12 | BuildRequires: guile-devel >= 1.4 |
80984df2 | 13 | BuildRequires: texinfo |
80875be3 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb018e96 | 15 | |
16 | %description | |
17 | This is a tool for specifying types, functions, and constants to | |
18 | import into a Scheme interpreter, and for generating code (in C) to | |
19 | interface these to the Guile and RScheme interpreters in particular. | |
20 | ||
21 | %package devel | |
80875be3 | 22 | Summary: headers for developing programs using g-wrap |
23 | Group: Development/Libraries | |
80984df2 | 24 | Group(de): Entwicklung/Libraries |
80875be3 | 25 | Group(fr): Development/Librairies |
26 | Group(pl): Programowanie/Biblioteki | |
27 | Requires: %{name} = %{version} | |
fb018e96 | 28 | |
29 | %description devel | |
80875be3 | 30 | headers for developing programs using g-wrap. |
fb018e96 | 31 | |
32 | %package static | |
80875be3 | 33 | Summary: Static libraries for developing programs using g-wrap |
34 | Summary(pl): Biblioteki statyczne g-wrap | |
35 | Group: Development/Libraries | |
80984df2 | 36 | Group(de): Entwicklung/Libraries |
80875be3 | 37 | Group(fr): Development/Librairies |
38 | Group(pl): Programowanie/Biblioteki | |
39 | Requires: %{name}-devel = %{version} | |
fb018e96 | 40 | |
41 | %description static | |
42 | Static libraries for developing programs using g-wrap. | |
fb018e96 | 43 | |
44 | %prep | |
45 | %setup -q | |
80984df2 | 46 | %patch -p1 |
fb018e96 | 47 | |
fb018e96 | 48 | %build |
49 | %configure | |
37783ab1 | 50 | %{__make} |
fb018e96 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
80984df2 | 54 | |
822db3ee | 55 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
fb018e96 | 56 | |
3cd4cb75 | 57 | gzip -9nf NEWS README ChangeLog |
fb018e96 | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %post -p /sbin/ldconfig | |
63 | %postun -p /sbin/ldconfig | |
64 | ||
65 | %post devel | |
66 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
67 | ||
68 | %postun devel | |
69 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
74 | %attr(755,root,root) %{_bindir}/g-scan | |
75 | %attr(755,root,root) %{_bindir}/g-wrap | |
76 | %attr(755,root,root) %{_libexecdir}/* | |
77 | %{_datadir}/guile/site/g-wrap | |
78 | %{_datadir}/guile/site/g-wrap.scm | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
3cd4cb75 | 82 | %doc {NEWS,README,ChangeLog}.gz |
fb018e96 | 83 | %attr(755,root,root) %{_bindir}/g-wrap-config |
84 | %attr(755,root,root) %{_libdir}/lib*.so | |
85 | %attr(755,root,root) %{_libdir}/lib*.la | |
86 | %{_includedir}/*.h | |
87 | %{_infodir}/* | |
88 | ||
89 | %files static | |
90 | %defattr(644,root,root,755) | |
91 | %{_libdir}/lib*.a |