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.riverbankcomputing.com/Downloads/sip4/sip-%{version}.tar.gz
10 # Source0-md5: 7465a9cf8e1f280425ab8f9f6e85b888
11 URL: http://www.riverbankcomputing.co.uk/sip/index.php
12 BuildRequires: libstdc++-devel
13 BuildRequires: python-devel >= 2.3
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.167
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _sipfilesdir %{_datadir}/sip
21 Generates Python bindings for C++ class libraries from a set of class
25 Generuje powi±zania Pythona z bibliotekami klas C++ ze zbioru plików
26 ze specyfikacjami klas.
28 %package -n python-sip
29 Summary: Python module needed by generated bindings
30 Summary(pl): Modu³ Pythona wymagany przez wygenerowane powi±zania
31 Group: Libraries/Python
32 %pyrequires_eq python-libs
34 %description -n python-sip
35 Generates Python bindings for C++ class libraries from a set of class
36 specification files. This package includes runtime library needed by
37 all generated bindings.
39 %description -n python-sip -l pl
40 Generuje powi±zania Pythona z bibliotekami klas C++ ze zbioru plików
41 ze specyfikacjami klas. Ten pakiet zawiera bibliotekê potrzebn± do
42 uruchomienia wszystkich wygenerowanych powi±zañ.
44 %package -n python-sip-devel
45 Summary: Development files needed to build bindings
46 Summary(pl): Pliki programistyczne potrzebne do budowania powi±zañ
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
49 Requires: python-devel >= 2.3
50 %pyrequires_eq python-libs
52 %description -n python-sip-devel
53 Development files needed to build bindings for C++ classes.
55 %description -n python-sip-devel -l pl
56 Pliki programistyczne potrzebne do budowania powi±zañ z klasami C++.
63 # - macros overrides must be last
64 # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
71 CFLAGS="%{rpmcflags}" \
72 CXXFLAGS="%{rpmcxxflags}" \
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_sipfilesdir}
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc ChangeLog LICENSE NEWS THANKS doc/*
91 %attr(755,root,root) %{_bindir}/*
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{py_sitedir}/sip.so
97 %files -n python-sip-devel
98 %defattr(644,root,root,755)