1 # TODO: Check if really v 4.5 is python 2.5 compatible, if so,
4 Summary: Python bindings generator for C++ class libraries
5 Summary(pl.UTF-8): Generator powiązań Pythona z bibliotekami klas C++
10 License: redistributable (see LICENSE)
11 Group: Development/Languages/Python
12 Source0: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%{version}.tar.gz
13 # Source0-md5: 4b8f7361839b33868dd3cc576509ba8e
14 URL: http://www.riverbankcomputing.com/software/sip/
15 # Patch0: %{name}-python2.5.patch
16 BuildRequires: libstdc++-devel
17 BuildRequires: python-devel >= 2.3
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.167
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sipfilesdir %{_datadir}/sip
25 Generates Python bindings for C++ class libraries from a set of class
28 %description -l pl.UTF-8
29 Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
30 ze specyfikacjami klas.
32 %package -n python-sip
33 Summary: Python module needed by generated bindings
34 Summary(pl.UTF-8): Moduł Pythona wymagany przez wygenerowane powiązania
35 Group: Libraries/Python
36 %pyrequires_eq python-libs
38 %description -n python-sip
39 Generates Python bindings for C++ class libraries from a set of class
40 specification files. This package includes runtime library needed by
41 all generated bindings.
43 %description -n python-sip -l pl.UTF-8
44 Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
45 ze specyfikacjami klas. Ten pakiet zawiera bibliotekę potrzebną do
46 uruchomienia wszystkich wygenerowanych powiązań.
48 %package -n python-sip-devel
49 Summary: Development files needed to build bindings
50 Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania powiązań
51 Group: Development/Libraries
52 Requires: %{name} = %{epoch}:%{version}-%{release}
53 Requires: python-devel >= 2.3
54 %pyrequires_eq python-libs
56 %description -n python-sip-devel
57 Development files needed to build bindings for C++ classes.
59 %description -n python-sip-devel -l pl.UTF-8
60 Pliki programistyczne potrzebne do budowania powiązań z klasami C++.
68 # - macros overrides must be last
69 # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
77 CFLAGS="%{rpmcflags}" \
78 CXXFLAGS="%{rpmcxxflags}" \
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_sipfilesdir}
89 DESTDIR=$RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
96 %doc ChangeLog LICENSE NEWS README doc/*
97 %attr(755,root,root) %{_bindir}/*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{py_sitedir}/sip.so
104 %files -n python-sip-devel
105 %defattr(644,root,root,755)
106 %{py_sitedir}/sip*.py