]>
Commit | Line | Data |
---|---|---|
4d6e5f32 | 1 | Summary: Python bindings generator for C++ class libraries |
8bf916ba | 2 | Summary(pl.UTF-8): Generator powiązań Pythona z bibliotekami klas C++ |
183bd075 | 3 | Name: sip |
756ecdce | 4 | Version: 4.16.3 |
f52b964d | 5 | Release: 1 |
39232d42 | 6 | Epoch: 2 |
1c28206b | 7 | License: SIP (redistributable, see LICENSE) or GPL v2 or GPL v3 |
183bd075 | 8 | Group: Development/Languages/Python |
1c28206b | 9 | Source0: http://downloads.sourceforge.net/pyqt/sip-%{version}.tar.gz |
756ecdce | 10 | # Source0-md5: 884d60b6f17fc5b910da4665caf6fd85 |
b4641a2f | 11 | URL: http://www.riverbankcomputing.com/software/sip/ |
ba9c55ee | 12 | BuildRequires: libstdc++-devel |
bfdf8b01 | 13 | BuildRequires: python-devel >= 2.3 |
bfdf8b01 | 14 | BuildRequires: rpm-pythonprov |
ba9c55ee | 15 | BuildRequires: rpmbuild(macros) >= 1.167 |
ac08bdef | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
183bd075 | 17 | |
7f2259e9 JB |
18 | %define _sipfilesdir %{_datadir}/sip |
19 | ||
183bd075 | 20 | %description |
21 | Generates Python bindings for C++ class libraries from a set of class | |
a79f66c3 | 22 | specification files. It supports Python v2 and v3. |
183bd075 | 23 | |
dd6dda9e JR |
24 | %description -l pl.UTF-8 |
25 | Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików | |
a79f66c3 | 26 | ze specyfikacjami klas. Obsługiwany jest Python 2 i 3. |
7143dd0b | 27 | |
7143dd0b KK |
28 | %package -n python-sip |
29 | Summary: Python module needed by generated bindings | |
8bf916ba | 30 | Summary(pl.UTF-8): Moduł Pythona wymagany przez wygenerowane powiązania |
7143dd0b KK |
31 | Group: Libraries/Python |
32 | %pyrequires_eq python-libs | |
33 | ||
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. | |
38 | ||
dd6dda9e JR |
39 | %description -n python-sip -l pl.UTF-8 |
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ń. | |
183bd075 | 43 | |
9e00b3d2 KK |
44 | %package -n python-sip-devel |
45 | Summary: Development files needed to build bindings | |
8bf916ba | 46 | Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania powiązań |
9e00b3d2 KK |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
49 | Requires: python-devel >= 2.3 | |
50 | %pyrequires_eq python-libs | |
51 | ||
52 | %description -n python-sip-devel | |
53 | Development files needed to build bindings for C++ classes. | |
54 | ||
dd6dda9e JR |
55 | %description -n python-sip-devel -l pl.UTF-8 |
56 | Pliki programistyczne potrzebne do budowania powiązań z klasami C++. | |
9e00b3d2 | 57 | |
183bd075 | 58 | %prep |
16564698 | 59 | %setup -q |
183bd075 | 60 | |
61 | %build | |
f7707c80 JB |
62 | # configure.py notes: |
63 | # - macros overrides must be last | |
64 | # - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags | |
3e2f7554 | 65 | %{__python} configure.py \ |
f7707c80 | 66 | -b %{_bindir} \ |
21ced613 | 67 | -e %{py_incdir} \ |
8df445fb | 68 | -v %{_sipfilesdir} \ |
db24e112 | 69 | -d %{py_sitedir} \ |
dd4053c2 | 70 | CC="%{__cc}" \ |
f7707c80 | 71 | CXX="%{__cxx}" \ |
751a9b24 AM |
72 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
73 | CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \ | |
8df445fb KK |
74 | LINK="%{__cxx}" \ |
75 | LINK_SHLIB="%{__cxx}" | |
76 | ||
77 | %{__make} | |
183bd075 | 78 | |
79 | %install | |
21ced613 | 80 | rm -rf $RPM_BUILD_ROOT |
21ced613 | 81 | install -d $RPM_BUILD_ROOT%{_sipfilesdir} |
183bd075 | 82 | |
15e0c203 JB |
83 | %{__make} install \ |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
f2b32c00 JB |
86 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
87 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
7048cca3 | 88 | |
183bd075 | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
7048cca3 JB |
94 | %doc LICENSE NEWS README doc/html |
95 | %attr(755,root,root) %{_bindir}/sip | |
7143dd0b | 96 | |
9e00b3d2 KK |
97 | %files -n python-sip |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{py_sitedir}/sip.so | |
89b2e86b | 100 | %dir %{_sipfilesdir} |
9e00b3d2 KK |
101 | |
102 | %files -n python-sip-devel | |
7143dd0b | 103 | %defattr(644,root,root,755) |
f2b32c00 JB |
104 | %{py_sitedir}/sipconfig.py |
105 | %{py_sitedir}/sipconfig.py[co] | |
106 | %{py_sitedir}/sipdistutils.py | |
107 | %{py_sitedir}/sipdistutils.py[co] | |
7048cca3 | 108 | %{py_incdir}/sip.h |