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