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