]>
Commit | Line | Data |
---|---|---|
960a58cd | 1 | Summary: A utility for automatically generating glue code to export C libraries to Guile Scheme and RScheme |
ea8321f1 ER |
2 | Summary(pl.UTF-8): Narzędzie do eksportowania bibliotek C do interpreterów Scheme |
3 | Summary(pt_BR.UTF-8): Um utilitário para geração automática de código para exportar bibliotecas C para guile scheme e rscheme | |
fb018e96 | 4 | Name: g-wrap |
1a4acdd3 | 5 | Version: 1.9.8 |
0750e725 | 6 | Release: 2 |
f819e66a | 7 | Epoch: 2 |
e2f7d7bf | 8 | License: LGPL |
fb018e96 | 9 | Group: Libraries |
b37613a5 | 10 | Source0: http://download.savannah.gnu.org/releases/g-wrap/%{name}-%{version}.tar.gz |
1a4acdd3 | 11 | # Source0-md5: b6deb04db3e1008f7d1db4ab7df594b2 |
80984df2 | 12 | Patch0: %{name}-info.patch |
b37613a5 | 13 | Patch1: %{name}-glib2.patch |
1a4acdd3 | 14 | Patch2: %{name}-srfi.patch |
6687f78e JB |
15 | URL: http://www.nongnu.org/g-wrap/ |
16 | BuildRequires: autoconf >= 2.50 | |
1a4acdd3 | 17 | BuildRequires: automake >= 1.5 |
6687f78e JB |
18 | BuildRequires: glib2-devel >= 2.0 |
19 | BuildRequires: guile-devel >= 5:1.8 | |
b37613a5 | 20 | BuildRequires: libffi-devel |
e17b7a5e | 21 | BuildRequires: libtool |
6687f78e | 22 | BuildRequires: pkgconfig |
e17b7a5e | 23 | BuildRequires: texinfo |
6687f78e | 24 | Requires: guile > 5:1.8 |
80875be3 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb018e96 | 26 | |
27 | %description | |
28 | This is a tool for specifying types, functions, and constants to | |
29 | import into a Scheme interpreter, and for generating code (in C) to | |
30 | interface these to the Guile and RScheme interpreters in particular. | |
31 | ||
e66753c9 JR |
32 | %description -l pl.UTF-8 |
33 | To jest narzędzie do specyfikowania typów, funkcji i stałych dla | |
34 | interpretera Scheme i generowania kodu (w C) do udostępnienia ich dla | |
35 | interpreterów Guile i RScheme. | |
69e25b94 | 36 | |
e66753c9 JR |
37 | %description -l pt_BR.UTF-8 |
38 | O g-wrap é uma ferramenta para especificar tipos, funções e constantes | |
39 | para importação em um interpretador scheme e para geração de código em | |
4f55def4 | 40 | C para fazer a interface com os interpretadores guile e rscheme. |
1ab7a7cb | 41 | |
fb018e96 | 42 | %package devel |
69e25b94 | 43 | Summary: Headers for developing programs using g-wrap |
ea8321f1 ER |
44 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijnia programów z użyciem g-wrap |
45 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para o g-wrap | |
80875be3 | 46 | Group: Development/Libraries |
58e28dd7 | 47 | Requires: %{name} = %{epoch}:%{version}-%{release} |
6687f78e | 48 | Requires: guile-devel >= 5:1.8 |
fb018e96 | 49 | |
50 | %description devel | |
80875be3 | 51 | headers for developing programs using g-wrap. |
fb018e96 | 52 | |
e66753c9 JR |
53 | %description devel -l pl.UTF-8 |
54 | Pliki nagłówkowe do rozwijania programów z użyciem g-wrap. | |
69e25b94 | 55 | |
e66753c9 | 56 | %description devel -l pt_BR.UTF-8 |
960a58cd | 57 | Arquivos de inclusao e bibliotecas para o g-wrap. |
1ab7a7cb | 58 | |
fb018e96 | 59 | %package static |
80875be3 | 60 | Summary: Static libraries for developing programs using g-wrap |
ea8321f1 ER |
61 | Summary(pl.UTF-8): Biblioteki statyczne g-wrap |
62 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com g-wrap | |
80875be3 | 63 | Group: Development/Libraries |
58e28dd7 | 64 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
fb018e96 | 65 | |
66 | %description static | |
67 | Static libraries for developing programs using g-wrap. | |
fb018e96 | 68 | |
e66753c9 | 69 | %description static -l pl.UTF-8 |
69e25b94 JB |
70 | Statyczne biblioteki g-wrap. |
71 | ||
e66753c9 JR |
72 | %description static -l pt_BR.UTF-8 |
73 | Bibliotecas estáticas para desenvolvimento com a biblioteca g-wrap. | |
1ab7a7cb | 74 | |
fb018e96 | 75 | %prep |
76 | %setup -q | |
960a58cd | 77 | %patch0 -p1 |
e2f7d7bf | 78 | %patch1 -p1 |
1a4acdd3 | 79 | %patch2 -p1 |
fb018e96 | 80 | |
fb018e96 | 81 | %build |
6687f78e JB |
82 | %{__libtoolize} |
83 | %{__aclocal} -I m4 | |
24e5f5eb | 84 | %{__autoconf} |
6687f78e JB |
85 | %{__autoheader} |
86 | %{__automake} | |
50104bd3 JB |
87 | %configure \ |
88 | --disable-Werror | |
5e362fec | 89 | |
37783ab1 | 90 | %{__make} |
fb018e96 | 91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
80984df2 | 94 | |
6da4500b PG |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
fb018e96 | 97 | |
1a4acdd3 JB |
98 | # disappeared from g-wrap sources, but not present in guile 1.8.1 |
99 | install -D lib/srfi/srfi-35.scm $RPM_BUILD_ROOT%{_datadir}/guile/site/srfi/srfi-35.scm | |
100 | ||
6687f78e | 101 | rm -f $RPM_BUILD_ROOT%{_libdir}/g-wrap/modules/libgw-*.{a,la} |
1a4acdd3 JB |
102 | # example module, API not exported |
103 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*miscutils*.{a,la} | |
e2f7d7bf | 104 | |
fb018e96 | 105 | %clean |
ba8cfba6 | 106 | rm -rf $RPM_BUILD_ROOT |
fb018e96 | 107 | |
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %post devel | |
eddcb997 | 112 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
b00a8cbf | 113 | |
fb018e96 | 114 | %postun devel |
eddcb997 | 115 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
fb018e96 | 116 | |
117 | %files | |
118 | %defattr(644,root,root,755) | |
6687f78e | 119 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
00fbba20 JB |
120 | %attr(755,root,root) %{_libdir}/libgwrap-core-runtime.so.*.*.* |
121 | %attr(755,root,root) %{_libdir}/libgwrap-guile-runtime.so.*.*.* | |
1a4acdd3 JB |
122 | %attr(755,root,root) %{_libdir}/libgw-guile-miscutils.so.*.*.* |
123 | %attr(755,root,root) %{_libdir}/libmiscutils.so.*.*.* | |
6687f78e JB |
124 | %dir %{_libdir}/g-wrap |
125 | %dir %{_libdir}/g-wrap/modules | |
126 | %attr(755,root,root) %{_libdir}/g-wrap/modules/libgw-guile-gw-glib.so* | |
127 | %attr(755,root,root) %{_libdir}/g-wrap/modules/libgw-guile-standard.so* | |
108993c5 | 128 | %{_datadir}/guile/site/g-wrap |
6687f78e | 129 | %dir %{_datadir}/guile/site/srfi |
6687f78e | 130 | %{_datadir}/guile/site/srfi/srfi-35.scm |
108993c5 | 131 | %{_datadir}/guile/site/g-wrap.scm |
00fbba20 | 132 | %{_infodir}/g-wrap.info* |
fb018e96 | 133 | |
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
fb018e96 | 136 | %attr(755,root,root) %{_bindir}/g-wrap-config |
00fbba20 JB |
137 | %attr(755,root,root) %{_libdir}/libgwrap-core-runtime.so |
138 | %attr(755,root,root) %{_libdir}/libgwrap-guile-runtime.so | |
07062da7 ER |
139 | %{_libdir}/libgwrap-core-runtime.la |
140 | %{_libdir}/libgwrap-guile-runtime.la | |
00fbba20 JB |
141 | %{_includedir}/g-wrap |
142 | %{_includedir}/g-wrap*.h | |
b37613a5 | 143 | %{_pkgconfigdir}/g-wrap-2.0-guile.pc |
6687f78e | 144 | %{_aclocaldir}/g-wrap.m4 |
fb018e96 | 145 | |
146 | %files static | |
147 | %defattr(644,root,root,755) | |
07062da7 ER |
148 | %{_libdir}/libgwrap-guile-runtime.a |
149 | %{_libdir}/libgwrap-core-runtime.a |