]>
Commit | Line | Data |
---|---|---|
cd9f4af1 | 1 | # TODO: python3 version? |
2d28a826 | 2 | %define qt_ver 4.8 |
6dd402f6 | 3 | %define pyside_ver 1.2.4 |
2d28a826 JB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_with apidocs # build API documentation (needs Qt sources) | |
7 | # | |
8 | Summary: PySide - Python bindings for the Qt 4 toolkit | |
9 | Summary(pl.UTF-8): PySide - wiązania Pythona do toolkitu Qt 4 | |
10 | Name: python-PySide | |
11 | Version: %{qt_ver}_%{pyside_ver} | |
6dd402f6 | 12 | Release: 1 |
2d28a826 JB |
13 | License: LGPL v2.1+ |
14 | Group: Libraries/Python | |
6dd402f6 JB |
15 | #Source0Download: https://github.com/pyside/PySide/releases |
16 | Source0: https://github.com/pyside/PySide/archive/%{pyside_ver}/PySide-%{pyside_ver}.tar.gz | |
17 | # Source0-md5: c28563e1f3c3ce269a7cc634f97d271c | |
18 | URL: https://github.com/pyside/PySide/ | |
2d28a826 JB |
19 | BuildRequires: OpenGL-devel |
20 | BuildRequires: QtCore-devel >= %{qt_ver} | |
21 | BuildRequires: QtDeclarative-devel >= %{qt_ver} | |
22 | BuildRequires: QtGui-devel >= %{qt_ver} | |
23 | BuildRequires: QtHelp-devel >= %{qt_ver} | |
24 | BuildRequires: QtMultimedia-devel >= %{qt_ver} | |
25 | BuildRequires: QtNetwork-devel >= %{qt_ver} | |
26 | BuildRequires: QtOpenGL-devel >= %{qt_ver} | |
27 | BuildRequires: QtScript-devel >= %{qt_ver} | |
28 | BuildRequires: QtScriptTools-devel >= %{qt_ver} | |
29 | BuildRequires: QtSql-devel >= %{qt_ver} | |
30 | BuildRequires: QtSvg-devel >= %{qt_ver} | |
31 | BuildRequires: QtTest-devel >= %{qt_ver} | |
32 | BuildRequires: QtUiTools-devel >= %{qt_ver} | |
33 | BuildRequires: QtWebKit-devel >= %{qt_ver} | |
34 | BuildRequires: QtXml-devel >= %{qt_ver} | |
35 | BuildRequires: QtXmlPatterns-devel >= %{qt_ver} | |
36 | BuildRequires: cmake >= 2.6 | |
37 | BuildRequires: phonon-devel | |
38 | BuildRequires: rpm-pythonprov | |
39 | BuildRequires: rpmbuild(macros) >= 1.605 | |
cd9f4af1 | 40 | BuildRequires: shiboken-python2 >= %{pyside_ver} |
2d28a826 JB |
41 | %if %{with apidocs} |
42 | BuildRequires: graphviz | |
43 | BuildRequires: qt4-build | |
44 | BuildRequires: qt4-source | |
45 | BuildRequires: sphinx-pdg | |
46 | %endif | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | PySide project provides LGPL-licensed Python bindings for the Qt. It | |
51 | also includes complete toolchain for rapidly generating bindings for | |
52 | any Qt-based C++ class hierarchies. PySide Qt bindings allow both free | |
53 | open source and proprietary software development and ultimately aim to | |
54 | support Qt platforms. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Projekt PySide udostępnia na licencji LGPL wiązania Pythona dla | |
58 | tookitu Qt. Zawiera także pełny zestaw narzędzi do szybkiego | |
59 | generowania wiązań dla dowolnej hierarchii klas C++ opartych na Qt. | |
60 | Wiązania Qt PySide pozwalają na tworzenie zarówno wolnodostępnego, jak | |
61 | i własnościowego oprogramowania i mają na celu wsparcie platform Qt. | |
62 | ||
63 | %package devel | |
64 | Summary: Development files for PySide bindings | |
65 | Summary(pl.UTF-8): Pliki programistyczne dla wiązań PySide | |
66 | Group: Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
cd9f4af1 | 68 | Requires: shiboken-python2 >= %{pyside_ver} |
2d28a826 JB |
69 | |
70 | %description devel | |
71 | Development files for PySide bindings. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Pliki programistyczne dla wiązań PySide. | |
75 | ||
76 | %prep | |
6dd402f6 | 77 | %setup -q -n PySide-%{pyside_ver} |
2d28a826 JB |
78 | |
79 | %build | |
80 | install -d build | |
81 | cd build | |
82 | %cmake .. | |
83 | ||
84 | %{__make} | |
6dd402f6 | 85 | cd .. |
2d28a826 JB |
86 | |
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} -C build install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
93 | %py_comp $RPM_BUILD_ROOT%{py_sitedir}/PySide | |
94 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/PySide | |
95 | %py_postclean | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
2d28a826 | 105 | %attr(755,root,root) %{_libdir}/libpyside-python%{py_ver}.so.*.*.* |
cd9f4af1 | 106 | %attr(755,root,root) %ghost %{_libdir}/libpyside-python%{py_ver}.so.1.2 |
2d28a826 JB |
107 | %dir %{py_sitedir}/PySide |
108 | %attr(755,root,root) %{py_sitedir}/PySide/QtCore.so | |
109 | %attr(755,root,root) %{py_sitedir}/PySide/QtDeclarative.so | |
110 | %attr(755,root,root) %{py_sitedir}/PySide/QtGui.so | |
111 | %attr(755,root,root) %{py_sitedir}/PySide/QtHelp.so | |
112 | %attr(755,root,root) %{py_sitedir}/PySide/QtMultimedia.so | |
113 | %attr(755,root,root) %{py_sitedir}/PySide/QtNetwork.so | |
114 | %attr(755,root,root) %{py_sitedir}/PySide/QtOpenGL.so | |
115 | %attr(755,root,root) %{py_sitedir}/PySide/QtScript.so | |
116 | %attr(755,root,root) %{py_sitedir}/PySide/QtScriptTools.so | |
117 | %attr(755,root,root) %{py_sitedir}/PySide/QtSql.so | |
118 | %attr(755,root,root) %{py_sitedir}/PySide/QtSvg.so | |
119 | %attr(755,root,root) %{py_sitedir}/PySide/QtTest.so | |
120 | %attr(755,root,root) %{py_sitedir}/PySide/QtUiTools.so | |
121 | %attr(755,root,root) %{py_sitedir}/PySide/QtWebKit.so | |
122 | %attr(755,root,root) %{py_sitedir}/PySide/QtXml.so | |
123 | %attr(755,root,root) %{py_sitedir}/PySide/QtXmlPatterns.so | |
124 | %attr(755,root,root) %{py_sitedir}/PySide/phonon.so | |
125 | %{py_sitedir}/PySide/__init__.py[co] | |
cd9f4af1 | 126 | %{py_sitedir}/PySide/_utils.py[co] |
2d28a826 JB |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_libdir}/libpyside-python%{py_ver}.so | |
131 | %{_includedir}/PySide | |
132 | %dir %{_datadir}/PySide | |
133 | %{_datadir}/PySide/typesystems | |
134 | %{_pkgconfigdir}/pyside.pc | |
135 | %{_libdir}/cmake/PySide-%{pyside_ver} |