Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37421253
en ru br
Репозитории ALT
S:4.1.1-alt7
5.1: 1.3.39-alt1
4.1: 1.3.31-alt2
4.0: 1.3.31-alt1
3.0: 1.3.24-alt2
www.altlinux.org/Changes

Группа :: Разработка/C
Пакет: swig

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: swig
Version: 1.3.24
Release: alt2

Summary: Simplified Wrapper and Interface Generator (SWIG)
License: Open Source
Group: Development/C
Url: http://www.swig.org/
Packager: Gleb Stiblo <ulfr at altlinux.ru>

Source: http://download.sourceforge.net/swig/%name-%version.tar.gz
Patch1: %name-1.3.21-alt-configure.patch
#Patch2: %name-1.3.22-runtime.patch
Patch3: %name-1.3.22-no_ansi.patch
Patch4: %name-1.3.24-deb.patch

%define __python_version 2.4

BuildPreReq: python-devel = %__python_version
BuildRequires: XFree86-devel findlib gcc-c++ guile-devel jdkgcj libruby-devel ocaml perl-devel php-devel ruby tcl-devel
#BuildRequires: glibc-devel-static libstdc++-devel ruby-stdlibs

Provides: %name-devel = %version
Obsoletes: %name-devel

%package doc
Summary: SWIG documentation
Group: Books/Other
Requires: %name = %version-%release

%package runtime-guile
Group: System/Libraries
Summary: SWIG runtime guile library

%package runtime-php
Group: System/Libraries
Summary: SWIG runtime php library

%package runtime-perl
Group: System/Libraries
Summary: SWIG runtime perl library

%package runtime-python
Group: System/Libraries
Summary: SWIG runtime python library

%package runtime-ruby
Group: System/Libraries
Summary: SWIG runtime ruby library

%package runtime-tcl
Group: System/Libraries
Summary: SWIG runtime tcl library

%description
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

%description doc
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG documentation.

%description runtime-guile
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime guile library.

%description runtime-php
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime php library.

%description runtime-perl
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime perl library.

%description runtime-python
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime python library.

%description runtime-ruby
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime ruby library.

%description runtime-tcl
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

This package contains SWIG runtime tcl library.

%prep
%setup -q -n SWIG-%version
%patch1 -p1
#patch2 -p1
#patch3 -p1
%patch4 -p1

%build
./autogen.sh
%configure \
--with-pyinc=%_includedir/python%__python_version \
--with-pylib=%_libdir/python%__python_version \
--with-tclconfig=/usr/lib
# --with-tcl --with-python --with-perl5 --with-java --with-guile --with-ruby --with-php4

%__subst -p 's,/usr/local/include/Py,%_includedir/python%__python_version,g' Runtime/Makefile
# SMP incompatible
# no `all' target
%make
#%make runtime
pushd Runtime
%make
popd
bzip2 -9fk CHANGES TODO

%install
%make_install install  \
DESTDIR=%buildroot \
M4_INSTALL_DIR=%buildroot%_datadir/aclocal
%__mkdir_p %buildroot%_includedir
%__cp -aL Source/Swig/swig.h Source/DOH/doh.h %buildroot%_includedir/
# symlinks
#__rm -fv Examples/perl Examples/test-suite/perl Examples/GIFPlot/Php4

%define docdir %_docdir/%name-%version
%__rm -rf %buildroot%docdir
%__mkdir_p %buildroot%docdir
%__install -p -m644 ANNOUNCE CHANGES.* LICENSE README TODO.* NEW FUTURE \
%buildroot%docdir/
%__cp -a Examples Doc %buildroot%docdir/

pushd Runtime
%make_install install DESTDIR=%buildroot
popd

%post runtime-guile -p %post_ldconfig
%postun runtime-guile -p %postun_ldconfig

%post runtime-php -p %post_ldconfig
%postun runtime-php -p %postun_ldconfig

%post runtime-perl -p %post_ldconfig
%postun runtime-perl -p %postun_ldconfig

%post runtime-python -p %post_ldconfig
%postun runtime-python -p %postun_ldconfig

%post runtime-ruby -p %post_ldconfig
%postun runtime-ruby -p %postun_ldconfig

%post runtime-tcl -p %post_ldconfig
%postun runtime-tcl -p %postun_ldconfig

%files
%_bindir/%name
#%_datadir/aclocal/%name.m4
%_includedir/*
%_datadir/%{name}
%dir %docdir
%docdir/[A-Z][A-Z]*

%files doc
%dir %docdir
%docdir/[A-Z][a-z]*

%files runtime-guile
%_libdir/libswigguile*.so*
%doc CHANGES.current LICENSE

%files runtime-php
%_libdir/libswigphp*.so*
%doc CHANGES.current LICENSE

%files runtime-perl
%_libdir/libswigpl*.so*
%doc CHANGES.current LICENSE

%files runtime-python
%_libdir/libswigpy*.so*
%doc CHANGES.current LICENSE

%files runtime-ruby
%_libdir/libswigrb*.so*
%doc CHANGES.current LICENSE

%files runtime-tcl
%_libdir/libswigtcl*.so*
%doc CHANGES.current LICENSE

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin