+# TODO: Check if really v 4.5 is python 2.5 compatible, if so,
+# kill python2.5.patch
+
Summary: Python bindings generator for C++ class libraries
-Summary(pl): Generator powi±zañ Pythona z bibliotekami klas C++
+Summary(pl.UTF-8): Generator powiązań Pythona z bibliotekami klas C++
Name: sip
-Version: 4.3.2
-Release: 2
+Version: 4.10
+Release: 1
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
+Source0: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%{version}.tar.gz
+# Source0-md5: 4b8f7361839b33868dd3cc576509ba8e
+URL: http://www.riverbankcomputing.com/software/sip/
+# Patch0: %{name}-python2.5.patch
+BuildRequires: libstdc++-devel
BuildRequires: python-devel >= 2.3
-BuildRequires: qt-devel >= 3.1.2
BuildRequires: rpm-pythonprov
-BuildRequires: tmake
+BuildRequires: rpmbuild(macros) >= 1.167
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sipfilesdir %{_datadir}/sip
Generates Python bindings for C++ class libraries from a set of class
specification files.
-%description -l pl
-Generuje powi±zania Pythona z bibliotekami klas C++ ze zbioru plików
+%description -l pl.UTF-8
+Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
ze specyfikacjami klas.
-%package devel
-Summary: sip - development files needed to build bindings
-Summary(pl): sip - pliki programistyczne potrzebne do budowania powi±zañ
-Group: Development/Libraries
-Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: python-devel >= 2.3
-%pyrequires_eq python-libs
-
-%description devel
-Development files needed to build bindings for C++ classes.
-
-%description devel -l pl
-Pliki programistyczne potrzebne do budowania powi±zañ z klasami C++.
-
%package -n python-sip
Summary: Python module needed by generated bindings
-Summary(pl): Modu³ Pythona wymagany przez wygenerowane powi±zania
+Summary(pl.UTF-8): Moduł Pythona wymagany przez wygenerowane powiązania
Group: Libraries/Python
%pyrequires_eq python-libs
specification files. This package includes runtime library needed by
all generated bindings.
-%description -n python-sip -l pl
-Generuje powi±zania Pythona z bibliotekami klas C++ ze zbioru plików
-ze specyfikacjami klas. Ten pakiet zawiera bibliotekê potrzebn± do
-uruchomienia wszystkich wygenerowanych powi±zañ.
+%description -n python-sip -l pl.UTF-8
+Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
+ze specyfikacjami klas. Ten pakiet zawiera bibliotekę potrzebną do
+uruchomienia wszystkich wygenerowanych powiązań.
+
+%package -n python-sip-devel
+Summary: Development files needed to build bindings
+Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania powiązań
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: python-devel >= 2.3
+%pyrequires_eq python-libs
+
+%description -n python-sip-devel
+Development files needed to build bindings for C++ classes.
+
+%description -n python-sip-devel -l pl.UTF-8
+Pliki programistyczne potrzebne do budowania powiązań z klasami C++.
%prep
%setup -q
+#%%patch0 -p1
%build
# configure.py notes:
# - macros overrides must be last
# - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
-QTDIR=%{_prefix} \
-TMAKEPATH=%{_datadir}/tmake \
python configure.py \
-b %{_bindir} \
- -d %{py_sitedir} \
-e %{py_incdir} \
- -l qt-mt \
-v %{_sipfilesdir} \
- LIBDIR_QT="%{_libdir}" \
- LIBDIR_X11="%{_prefix}/X11R6/%{_lib}" \
+ -d %{py_sitedir} \
CC="%{__cc}" \
CXX="%{__cxx}" \
CFLAGS="%{rpmcflags}" \
%files
%defattr(644,root,root,755)
-%doc ChangeLog LICENSE NEWS THANKS doc/*
+%doc ChangeLog LICENSE NEWS README doc/*
%attr(755,root,root) %{_bindir}/*
-%files devel
+%files -n python-sip
%defattr(644,root,root,755)
-%{py_sitedir}/sip*.py
-%{py_incdir}/*.h
+%attr(755,root,root) %{py_sitedir}/sip.so
%dir %{_sipfilesdir}
-%files -n python-sip
+%files -n python-sip-devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/sip.so
+%{py_sitedir}/sip*.py
+%{py_incdir}/*.h