1 Summary: Python bindings generator for C++ class libraries
2 Summary(pl): Generator powi±zañ Pythona z bibliotekami klas C++
7 License: redistributable (see LICENSE)
8 Group: Development/Languages/Python
9 Source0: http://www.river-bank.demon.co.uk/download/sip/%{name}-%{version}.tar.gz
10 # Source0-md5: b884cc15228a166c9d6fc88aaaeccc96
11 # Source0: http://www.river-bank.demon.co.uk/download/snapshots/sip/%{name}-snapshot-%{_snap}.tar.gz
12 URL: http://www.riverbankcomputing.co.uk/sip/index.php
13 BuildRequires: python-devel >= 2.2
14 BuildRequires: qt-devel >= 3.1.2
15 BuildRequires: rpm-pythonprov
17 %pyrequires_eq python-libs
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _sipfilesdir %{_datadir}/sip
23 Generates Python bindings for C++ class libraries from a set of class
24 specification files. Also includes a runtime support library needed by
25 all generated bindings.
28 Generuje powi±zania Pythona z bibliotekami klas C++ ze zbioru plików
29 ze specyfikacjami klas. Zawiera te¿ bibliotekê potrzebn± do
30 uruchomienia wszystkich wygenerowanych powi±zañ.
37 # - macros overrides must be last
38 # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
40 TMAKEPATH=/usr/share/tmake \
46 LIBDIR_QT="%{_libdir}" \
47 LIBDIR_X11="/usr/X11R6/%{_lib}"
51 CFLAGS="%{rpmcflags} -pipe -w" \
57 CFLAGS="%{rpmcflags} -fPIC -pipe -w -D_REENTRANT" \
58 CXXFLAGS="%{rpmcflags} -fPIC -pipe -w -D_REENTRANT" \
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_sipfilesdir}
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc ChangeLog LICENSE NEWS README THANKS
74 %attr(755,root,root) %{_bindir}/*
75 %attr(755,root,root) %{py_sitedir}/sip.so
76 %{py_sitedir}/sipconfig.py