Summary: Python bindings generator for C++ class libraries Summary(pl): Generator powiązań Pythona z bibliotekami klas C++ Name: sip Version: 4.3.2 Release: 2 Epoch: 2 License: redistributable (see LICENSE) Group: Development/Languages/Python Source0: http://www.river-bank.demon.co.uk/download/sip/%{name}-%{version}.tar.gz # Source0-md5: 993c890998e337d4df71c5d4b0db52b9 URL: http://www.riverbankcomputing.co.uk/sip/index.php BuildRequires: python-devel >= 2.3 BuildRequires: qt-devel >= 3.1.2 BuildRequires: rpm-pythonprov BuildRequires: tmake Requires: python-devel >= 2.3 %pyrequires_eq python-libs BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sipfilesdir %{_datadir}/sip %description Generates Python bindings for C++ class libraries from a set of class specification files. Also includes a runtime support library needed by all generated bindings. %description -l pl Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików ze specyfikacjami klas. Zawiera też bibliotekę potrzebną do uruchomienia wszystkich wygenerowanych powiązań. %prep %setup -q %build # configure.py notes: # - macros overrides must be last # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags QTDIR=%{_prefix} \ TMAKEPATH=/usr/share/tmake \ python configure.py \ -b %{_bindir} \ -d %{py_sitedir} \ -e %{py_incdir} \ -l qt-mt \ -v %{_sipfilesdir} \ LIBDIR_QT="%{_libdir}" \ LIBDIR_X11="/usr/X11R6/%{_lib}" \ CC="%{__cc}" \ CXX="%{__cxx}" \ CFLAGS="%{rpmcflags}" \ CXXFLAGS="%{rpmcxxflags}" \ LINK="%{__cxx}" \ LINK_SHLIB="%{__cxx}" %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sipfilesdir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog LICENSE NEWS THANKS doc/* %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{py_sitedir}/sip.so %{py_sitedir}/sip*.py %{py_incdir}/*.h %dir %{_sipfilesdir}