]> git.pld-linux.org Git - packages/g-wrap.git/blobdiff - g-wrap.spec
- release 6 (libffi 3.4.x)
[packages/g-wrap.git] / g-wrap.spec
index 51e1f9d4bc98ae9977bd609578333007f5c9e850..dc0bfb983d6fab8e88ee774f8f6fc771d5ba64df 100644 (file)
@@ -1,18 +1,27 @@
 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
+Summary(pl.UTF-8):     Narzędzie do eksportowania bibliotek C do interpreterów Scheme
+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
 Name:          g-wrap
-Version:       1.2.1
-Release:       1
+Version:       1.9.15
+Release:       6
 Epoch:         2
-License:       GPL
+License:       LGPL v2.1+
 Group:         Libraries
-Source0:       http://www.gnucash.org/pub/g-wrap/source/%{name}-%{version}.tar.gz
+Source0:       http://download.savannah.gnu.org/releases/g-wrap/%{name}-%{version}.tar.gz
+# Source0-md5: 037d465a28782636a995cf0179f1d7ff
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-ac_am_cflags.patch
-BuildRequires: guile-devel >= 1.4.1
+Patch1:                %{name}-guile3.patch
+URL:           http://www.nongnu.org/g-wrap/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.12
+BuildRequires: glib2-devel >= 2.0
+BuildRequires: guile-devel >= 5:2.0
+BuildRequires: libffi-devel
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: pkgconfig(libffi)
 BuildRequires: texinfo
-BuildRequires: slib
+Requires:      guile >= 5:2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,47 +29,49 @@ 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 pl.UTF-8
+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
+%description -l pt_BR.UTF-8
+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(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
+Summary(pl.UTF-8):     Pliki nagłówkowe do rozwijnia programów z użyciem g-wrap
+Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas para o g-wrap
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      guile-devel >= 5:2.0
+Requires:      libffi-devel
 
 %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 pl.UTF-8
+Pliki nagłówkowe do rozwijania programów z użyciem g-wrap.
 
-%description devel -l pt_BR
+%description devel -l pt_BR.UTF-8
 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
+Summary(pl.UTF-8):     Biblioteki statyczne g-wrap
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com g-wrap
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static libraries for developing programs using g-wrap.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczne biblioteki g-wrap.
 
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento com a biblioteca g-wrap.
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com a biblioteca g-wrap.
 
 %prep
 %setup -q
@@ -68,20 +79,27 @@ Bibliotecas est
 %patch1 -p1
 
 %build
-libtoolize -c -f
-aclocal
-autoconf
-automake -a -c -f
-%configure
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-Werror \
+       --disable-silent-rules
 
-%{__make}
+%{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf NEWS README ChangeLog
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgwrap-*.la
+# dlopened modules
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/g-wrap/modules/libgw-*.{a,la}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -89,33 +107,39 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%post devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%attr(755,root,root) %{_libdir}/lib*.la
-%attr(755,root,root) %{_datadir}/guile/g-wrapped/lib*.so.*
-%attr(755,root,root) %{_datadir}/guile/g-wrapped/lib*.la
-%{_datadir}/guile/g-wrap
-%{_datadir}/guile/g-wrap.scm
-%{_datadir}/guile/g-wrapped/*.scm
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_libdir}/libgwrap-core-runtime.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgwrap-core-runtime.so.2
+%attr(755,root,root) %{_libdir}/libgwrap-guile-runtime.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgwrap-guile-runtime.so.2
+%dir %{_libdir}/g-wrap
+%dir %{_libdir}/g-wrap/modules
+%attr(755,root,root) %{_libdir}/g-wrap/modules/libgw-guile-gw-glib.so*
+%attr(755,root,root) %{_libdir}/g-wrap/modules/libgw-guile-standard.so*
+%{_datadir}/guile/site/g-wrap
+%{_datadir}/guile/site/g-wrap.scm
 
 %files devel
 %defattr(644,root,root,755)
-%doc *.gz
 %attr(755,root,root) %{_bindir}/g-wrap-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_datadir}/guile/g-wrapped/lib*.so
-%{_includedir}/*.h
-%{_infodir}/*info*gz
-%{_aclocaldir}/*.m4
+%attr(755,root,root) %{_libdir}/libgwrap-core-runtime.so
+%attr(755,root,root) %{_libdir}/libgwrap-guile-runtime.so
+%{_includedir}/g-wrap
+%{_includedir}/g-wrap-wct.h
+%{_pkgconfigdir}/g-wrap-2.0-guile.pc
+%{_aclocaldir}/g-wrap.m4
+%{_mandir}/man1/g-wrap-config.1*
+%{_infodir}/g-wrap.info*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
-%{_datadir}/guile/g-wrapped/lib*.a
+%{_libdir}/libgwrap-guile-runtime.a
+%{_libdir}/libgwrap-core-runtime.a
This page took 0.166223 seconds and 4 git commands to generate.