]>
Commit | Line | Data |
---|---|---|
10d245fe | 1 | # TODO: Check if really v 4.5 is python 2.5 compatible, if so, |
e2147388 | 2 | # kill python2.5.patch |
4d6e5f32 | 3 | Summary: Python bindings generator for C++ class libraries |
dd6dda9e | 4 | Summary(pl.UTF-8): Generator powiązań Pythona z bibliotekami klas C++ |
183bd075 | 5 | Name: sip |
a2ac45ce | 6 | Version: 4.5.2 |
e2147388 | 7 | Release: 1 |
39232d42 | 8 | Epoch: 2 |
e0a3fafb | 9 | License: redistributable (see LICENSE) |
183bd075 | 10 | Group: Development/Languages/Python |
ba9c55ee | 11 | Source0: http://www.riverbankcomputing.com/Downloads/sip4/sip-%{version}.tar.gz |
a2ac45ce | 12 | # Source0-md5: 0fdb0cbdcbbe158009196437711eb8bd |
0696c57f | 13 | URL: http://www.riverbankcomputing.co.uk/sip/index.php |
10d245fe | 14 | # Patch0: %{name}-python2.5.patch |
ba9c55ee | 15 | BuildRequires: libstdc++-devel |
bfdf8b01 | 16 | BuildRequires: python-devel >= 2.3 |
bfdf8b01 | 17 | BuildRequires: rpm-pythonprov |
ba9c55ee | 18 | BuildRequires: rpmbuild(macros) >= 1.167 |
ac08bdef | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
183bd075 | 20 | |
7f2259e9 JB |
21 | %define _sipfilesdir %{_datadir}/sip |
22 | ||
183bd075 | 23 | %description |
24 | Generates Python bindings for C++ class libraries from a set of class | |
7143dd0b | 25 | specification files. |
183bd075 | 26 | |
dd6dda9e JR |
27 | %description -l pl.UTF-8 |
28 | Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików | |
7143dd0b KK |
29 | ze specyfikacjami klas. |
30 | ||
7143dd0b KK |
31 | %package -n python-sip |
32 | Summary: Python module needed by generated bindings | |
dd6dda9e | 33 | Summary(pl.UTF-8): Moduł Pythona wymagany przez wygenerowane powiązania |
7143dd0b KK |
34 | Group: Libraries/Python |
35 | %pyrequires_eq python-libs | |
36 | ||
37 | %description -n python-sip | |
38 | Generates Python bindings for C++ class libraries from a set of class | |
39 | specification files. This package includes runtime library needed by | |
40 | all generated bindings. | |
41 | ||
dd6dda9e JR |
42 | %description -n python-sip -l pl.UTF-8 |
43 | Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików | |
44 | ze specyfikacjami klas. Ten pakiet zawiera bibliotekę potrzebną do | |
45 | uruchomienia wszystkich wygenerowanych powiązań. | |
183bd075 | 46 | |
9e00b3d2 KK |
47 | %package -n python-sip-devel |
48 | Summary: Development files needed to build bindings | |
dd6dda9e | 49 | Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania powiązań |
9e00b3d2 KK |
50 | Group: Development/Libraries |
51 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
52 | Requires: python-devel >= 2.3 | |
53 | %pyrequires_eq python-libs | |
54 | ||
55 | %description -n python-sip-devel | |
56 | Development files needed to build bindings for C++ classes. | |
57 | ||
dd6dda9e JR |
58 | %description -n python-sip-devel -l pl.UTF-8 |
59 | Pliki programistyczne potrzebne do budowania powiązań z klasami C++. | |
9e00b3d2 | 60 | |
183bd075 | 61 | %prep |
7143dd0b | 62 | %setup -q |
10d245fe | 63 | #%%patch0 -p1 |
183bd075 | 64 | |
65 | %build | |
f7707c80 JB |
66 | # configure.py notes: |
67 | # - macros overrides must be last | |
68 | # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags | |
21ced613 | 69 | python configure.py \ |
f7707c80 | 70 | -b %{_bindir} \ |
21ced613 | 71 | -e %{py_incdir} \ |
8df445fb | 72 | -v %{_sipfilesdir} \ |
db24e112 | 73 | -d %{py_sitedir} \ |
dd4053c2 | 74 | CC="%{__cc}" \ |
f7707c80 | 75 | CXX="%{__cxx}" \ |
8df445fb KK |
76 | CFLAGS="%{rpmcflags}" \ |
77 | CXXFLAGS="%{rpmcxxflags}" \ | |
78 | LINK="%{__cxx}" \ | |
79 | LINK_SHLIB="%{__cxx}" | |
80 | ||
81 | %{__make} | |
183bd075 | 82 | |
83 | %install | |
21ced613 | 84 | rm -rf $RPM_BUILD_ROOT |
21ced613 | 85 | install -d $RPM_BUILD_ROOT%{_sipfilesdir} |
183bd075 | 86 | |
15e0c203 JB |
87 | %{__make} install \ |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
183bd075 | 90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
bfdf8b01 | 95 | %doc ChangeLog LICENSE NEWS THANKS doc/* |
0696c57f | 96 | %attr(755,root,root) %{_bindir}/* |
7143dd0b | 97 | |
9e00b3d2 KK |
98 | %files -n python-sip |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{py_sitedir}/sip.so | |
101 | ||
102 | %files -n python-sip-devel | |
7143dd0b | 103 | %defattr(644,root,root,755) |
ac55a606 | 104 | %{py_sitedir}/sip*.py |
ac08bdef | 105 | %{py_incdir}/*.h |
7f2259e9 | 106 | %dir %{_sipfilesdir} |