X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=g-wrap.spec;h=1972fdc4dde54186963013eaa24d6155ca504abb;hb=b9751b7b7a2e39f81c746d590ef9e0cdafbf528c;hp=0cf1af6287e1cf4c5b0830f67c25b290a2f7498b;hpb=349562d88a445934c94ccdd415c65423cad50d45;p=packages%2Fg-wrap.git diff --git a/g-wrap.spec b/g-wrap.spec index 0cf1af6..1972fdc 100644 --- a/g-wrap.spec +++ b/g-wrap.spec @@ -1,17 +1,25 @@ -Summary: A tool for exporting C libraries into Scheme interpreters +Summary: A utility for automatically generating glue code to export C libraries to Guile Scheme and RScheme +Summary(pl): Narzêdzie do eksportowania bibliotek C do interpreterów Scheme +Summary(pt_BR): Um utilitário para geração automática de código para exportar bibliotecas C para guile scheme e rscheme Name: g-wrap -Version: 1.1.10 -Release: 1 -License: GPL +Version: 1.3.4 +Release: 5 +Epoch: 2 +License: LGPL Group: Libraries -Group(de): Libraries -Group(fr): Librairies -Group(pl): Biblioteki -Source0: ftp://ftp.gnucash.org/pub/g-wrap/%{name}-%{version}.tar.gz +Source0: http://www.gnucash.org/pub/g-wrap/source/%{name}-%{version}.tar.gz +# Source0-md5: bf29b8b563cc27d9f7fd90a6243653aa Patch0: %{name}-info.patch -BuildRequires: guile-devel >= 1.4 -BuildRequires: texinfo +Patch1: %{name}-ac_am_cflags.patch +Patch2: %{name}-am18.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: glib-devel >= 1.0 +BuildRequires: guile-devel >= 1.4.1 +# guile-gtk for gtk wrappers +BuildRequires: libtool BuildRequires: slib +BuildRequires: texinfo BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -19,43 +27,73 @@ This is a tool for specifying types, functions, and constants to import into a Scheme interpreter, and for generating code (in C) to interface these to the Guile and RScheme interpreters in particular. +%description -l pl +To jest narzêdzie do specyfikowania typów, funkcji i sta³ych dla +interpretera Scheme i generowania kodu (w C) do udostêpnienia ich dla +interpreterów Guile i RScheme. + +%description -l pt_BR +O g-wrap é uma ferramenta para especificar tipos, funções e constantes +para importação em um interpretador scheme e para geração de código em +C para fazer a interface com os interpretadores guile e rscheme. + %package devel -Summary: headers for developing programs using g-wrap +Summary: Headers for developing programs using g-wrap +Summary(pl): Pliki nag³ówkowe do rozwijnia programów z u¿yciem g-wrap +Summary(pt_BR): Arquivos de inclusão e bibliotecas para o g-wrap Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Requires: %{name} = %{version} +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: guile-devel >= 1.4.1 %description devel headers for developing programs using g-wrap. +%description devel -l pl +Pliki nag³ówkowe do rozwijania programów z u¿yciem g-wrap. + +%description devel -l pt_BR +Arquivos de inclusao e bibliotecas para o g-wrap. + %package static Summary: Static libraries for developing programs using g-wrap Summary(pl): Biblioteki statyczne g-wrap +Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com g-wrap Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static Static libraries for developing programs using g-wrap. +%description static -l pl +Statyczne biblioteki g-wrap. + +%description static -l pt_BR +Bibliotecas estáticas para desenvolvimento com a biblioteca g-wrap. + %prep %setup -q -%patch -p1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} %configure + %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf NEWS README ChangeLog +# modules +rm -f $RPM_BUILD_ROOT%{_libdir}/libgw-*.a %clean rm -rf $RPM_BUILD_ROOT @@ -65,25 +103,44 @@ rm -rf $RPM_BUILD_ROOT %post devel [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 - + %postun devel [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %files %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/lib*.so.*.* +%doc NEWS README ChangeLog +# libs +%attr(755,root,root) %{_libdir}/libgwrap-glib.so.*.*.* +%attr(755,root,root) %{_libdir}/libgwrap-wct.so.*.*.* +# modules (lt)dlopened by .so OR .la +%attr(755,root,root) %{_libdir}/libgw-glib.so.*.*.* +#%attr(755,root,root) %{_libdir}/libgw-gtk.so.*.*.* +%attr(755,root,root) %{_libdir}/libgw-standard.so.*.*.* +%attr(755,root,root) %{_libdir}/libgw-wct.so.*.*.* +%attr(755,root,root) %{_libdir}/libgw-glib.so +#%attr(755,root,root) %{_libdir}/libgw-gtk.so +%attr(755,root,root) %{_libdir}/libgw-standard.so +%attr(755,root,root) %{_libdir}/libgw-wct.so +%{_libdir}/libgw-glib.la +#%{_libdir}/libgw-gtk.la +%{_libdir}/libgw-standard.la +%{_libdir}/libgw-wct.la %{_datadir}/guile/g-wrap %{_datadir}/guile/g-wrap.scm %files devel %defattr(644,root,root,755) -%doc {NEWS,README,ChangeLog}.gz %attr(755,root,root) %{_bindir}/g-wrap-config -%attr(755,root,root) %{_libdir}/lib*.so -%attr(755,root,root) %{_libdir}/lib*.la -%{_includedir}/*.h -%{_infodir}/* +%attr(755,root,root) %{_libdir}/libgwrap-glib.so +%attr(755,root,root) %{_libdir}/libgwrap-wct.so +%{_libdir}/libgwrap-glib.la +%{_libdir}/libgwrap-wct.la +%{_includedir}/g-wrap +%{_infodir}/*.info* +%{_aclocaldir}/*.m4 %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libgwrap-glib.a +%{_libdir}/libgwrap-wct.a