]> git.pld-linux.org Git - packages/swig.git/blobdiff - swig.spec
- generation order fixed
[packages/swig.git] / swig.spec
index 7eb2f8f8b6ffd952bd118d8d710e347f3fd0e337..d00aef47f45e7154e61338c291d4b9e5c6d606a8 100644 (file)
--- a/swig.spec
+++ b/swig.spec
-Summary: Interface generator for Perl, Tcl, Guile and Python
-Summary(pl): Generator interfejsu do Perl'a, Tcl'a, Guile'a i Python'a
-Name: swig
-Version: 1.1p5
-Release: 1
-Copyright: distributable
-Group: Development/Languages
-Group(pl): Programowanie/Jêzyki
-Source0: swig1.1p5.tar.gz
-Patch: swig1.1p2-fixed-paths.patch
-Icon: swig.gif
-BuildRoot: /tmp/swig-root
+
+Summary:       Interface generator for Perl, Tcl, Guile and Python
+Summary(pl):   Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
+Summary(pt_BR):        Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
+Name:          swig
+Version:       1.3.19
+Release:       6
+License:       distributable
+Group:         Development/Languages
+Source0:       http://dl.sourceforge.net/swig/%{name}-%{version}.tar.gz
+# Source0-md5: a733455544426b31868dd87fc162e750
+Patch0:                %{name}-format.patch
+Patch1:                %{name}-php.patch
+Patch2:                %{name}-php-tsrm.patch
+Patch3:                %{name}-php-freearg.patch
+Patch4:                %{name}-php-vdecl.patch
+URL:           http://www.swig.org/
+Icon:          swig.gif
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: guile-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: perl-devel >= 5.6.1
+BuildRequires: php-devel >= 4.1.0
+BuildRequires: php-cgi
+BuildRequires: python-devel >= 2.2
+BuildRequires: ruby >= 1.6.3
+BuildRequires: tcl-devel >= 8.3.3
+BuildRequires: ocaml
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 SWIG is a compiler that attempts to make it easy to integrate C, C++,
 or Objective-C code with scripting languages including Perl, Tcl, and
-Python.  In a nutshell, you give it a bunch of ANSI C/C++ declarations
+Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
 and it generates an interface between C and your favorite scripting
-language.  However, this is only scratching the surface of what SWIG
+language. However, this is only scratching the surface of what SWIG
 can do--some of its more advanced features include automatic
 documentation generation, module and library management, extensive
 customization options, and more.
 
 SWIG is entirely the product of users who have used the system and
-suggested new idea.  There are far too many people to thank
+suggested new idea. There are far too many people to thank
 individually, but without this support, SWIG would be not be nearly as
 powerful or fun to use as it is now. Many thanks!
 
-
 %description -l pl
-SWIG jesk kompilatorem, który próbuje ulatwic integrowanie kodu napisanego
-w C, C++ lub Objective-C z jêzykami skryptowymitakimi jak Perl, Tcl i Python.
-Mówi±c najpro¶ciej, jesli dostarczysz mu zestaw zdeklarowanych w ANSI C/C++
-funkcji, SWIG wygeneruje Ci interfejs pomiedzy C a Twoim ulubionym jêzykiem
-skryptowym. To tylko drobna czê¶æ tego co SWIG potrafi robiæ, bardziej 
-zaawansowane zastosowania to automatyczne generowanie dokumentacji,
-zarzadzanie bibliotekami i modu³ami i wiele innych.
-
-SWIG jest w ca³o¶ci dzi³em ludzi, którzy go u¿ywali i wprowadzali nowe 
-pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich osobno, 
-ale bez ich wsparcia, SWIG nie by³by anie tak pote¿nym na¿edziem, ani tak
-fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
+SWIG jesk kompilatorem, który próbuje u³atwiæ integrowanie kodu
+napisanego w C, C++ lub Objective-C z jêzykami skryptowymi, takimi jak
+Perl, Tcl i Python. Mówi±c najpro¶ciej, je¶li dostarczysz mu zestaw
+zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
+pomiêdzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
+czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
+to automatyczne generowanie dokumentacji, zarz±dzanie bibliotekami i
+modu³ami i wiele innych.
+
+SWIG jest w ca³o¶ci dzie³em ludzi, którzy go u¿ywali i wprowadzali
+nowe pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich
+osobno, ale bez ich wsparcia SWIG nie by³by ani tak potê¿nym
+narzêdziem, ani tak fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
+
+%description -l pt_BR
+O SWIG gera interfaces para perl, python e tcl a partir de uma arquivo
+com uma interface de descrição que consiste de uma combinação de C/C++
+e diretivas especiais. Permite que linguagens tipo script usem C/C++
+com um mínimo de esforço.
+
+%package guile
+Summary:       SWIG library: guile
+Summary(pl):   Biblioteka SWIG: guile
+Group:         Libraries
+
+%description guile
+SWIG library: guile.
+
+%description guile -l pl
+Biblioteka SWIG: guile.
+
+%package perl
+Summary:       SWIG library: Perl
+Summary(pl):   Biblioteka SWIG: Perl
+Group:         Libraries
+
+%description perl
+SWIG library: perl.
+
+%description perl -l pl
+Biblioteka SWIG: perl.
+
+%package php
+Summary:       SWIG library: php
+Summary(pl):   Biblioteka SWIG: php
+Group:         Libraries
+
+%description php
+SWIG library: php.
+
+%description php -l pl
+Biblioteka SWIG: php.
+
+%package python
+Summary:       SWIG library: python
+Summary(pl):   Biblioteka SWIG: python
+Group:         Libraries
+
+%description python
+SWIG library: python.
+
+%description python -l pl
+Biblioteka SWIG: python.
+
+%package ruby
+Summary:       SWIG library: ruby
+Summary(pl):   Biblioteka SWIG: ruby
+Group:         Libraries
+
+%description ruby
+SWIG library: ruby.
+
+%description ruby -l pl
+Biblioteka SWIG: ruby.
+
+%package tcl
+Summary:       SWIG library: tcl
+Summary(pl):   Biblioteka SWIG: tcl
+Group:         Libraries
+
+%description tcl
+SWIG library: tcl.
+
+%description tcl -l pl
+Biblioteka SWIG: tcl.
+
+%package ocaml
+Summary:       SWIG library: ocaml
+Summary(pl):   Biblioteka SWIG: ocaml
+Group:         Libraries
+
+%description ocaml
+SWIG library: ocaml.
+
+%description ocaml -l pl
+Biblioteka SWIG: ocaml.
 
 %prep
-%setup -n SWIG1.1p5
-find Examples/ -type l -exec rm -v {} \;
-%patch -p1
+%setup -q -n SWIG-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
+oldpwd=$PWD
+for i in . Tools; do
+  cd $i
+  %{__libtoolize}
+  %{__aclocal}
+  %{__autoconf}
+  cd $oldpwd
+done
 %configure
-make OPT="$RPM_OPT_FLAGS"
-make test
+
+%{__make} OPT="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/usr
-make prefix=$RPM_BUILD_ROOT/usr install
+install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc Doc Examples CHANGES Copyright INSTALL NEW README TROUBLESHOOTING ToDo
-%dir /usr/lib/swig_lib
-/usr/lib/libswig.a
-/usr/include/swig.h
-%attr(711,root,root) /usr/bin/swig
-%attr(644,root,man) /usr/man/man1/swig.1
+%doc Doc CHANGES NEW README ANNOUNCE TODO LICENSE
+%{_libdir}/%{name}*
+%attr(755,root,root) %{_bindir}/swig
+%{_examplesdir}/%{name}-%{version}
+
+%files guile
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*guile.so
+%{_libdir}/lib*guile.la
+
+%files perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*pl.so
+%{_libdir}/lib*pl.la
+
+%files php
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*php4.so
+%{_libdir}/lib*php4.la
+
+%files python
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*py.so
+%{_libdir}/lib*py.la
+
+%files ruby
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*rb.so
+%{_libdir}/lib*rb.la
+
+%files tcl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*tcl*.so
+%{_libdir}/lib*tcl*.la
+
+%files ocaml
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*ocaml*.so*
+%{_libdir}/lib*ocaml*.la
This page took 0.067603 seconds and 4 git commands to generate.