[packages/python-pyside] - initial; from fc

arekm arekm at pld-linux.org
Thu Jun 11 21:09:41 CEST 2015


commit 746146925274014b56ab02becc3a3cd28afe0915
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jun 11 21:09:28 2015 +0200

    - initial; from fc

 python-pyside.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 100 insertions(+)
---
diff --git a/python-pyside.spec b/python-pyside.spec
new file mode 100644
index 0000000..c4c8b05
--- /dev/null
+++ b/python-pyside.spec
@@ -0,0 +1,100 @@
+%bcond_with	tests
+#
+Summary:	Python bindings for Qt4
+Name:		python-pyside
+Version:	1.2.2
+Release:	1
+License:	LGPLv2
+Group:		Development/Languages/Python
+URL:		http://www.pyside.org
+Source0:	http://download.qt-project.org/official_releases/pyside/pyside-qt4.8+%{version}.tar.bz2
+# Source0-md5:	1969c2ff90eefaa4b200d234059d2287
+BuildRequires:	QtWebKit-devel
+BuildRequires:	cmake
+BuildRequires:	generatorrunner-devel
+BuildRequires:	phonon-devel
+BuildRequires:	python-devel
+BuildRequires:	qt4-build
+BuildRequires:	shiboken >= 1.2.0
+BuildRequires:	shiboken-python2 >= 1.2.0
+%if %{with tests}
+BuildRequires:	xorg-app-xauth
+BuildRequires:	xorg-xserver-Xvfb
+%endif
+
+%define		__noautoprov	%{python_sitearch}/PySide/.*\.so
+
+%description
+PySide provides Python bindings for the Qt cross-platform application
+and UI framework. PySide consists of a full set of Qt bindings, being
+compatible with PyQt4 API 2.
+
+%package devel
+Summary:	Development files for %{name}
+Requires:	%{name} = %{version}-%{release}
+Requires:	QtWebKit-devel
+Requires:	cmake
+Requires:	phonon-devel
+Requires:	python-devel
+Requires:	qt4-build
+Requires:	shiboken
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n pyside-qt4.8+%{version}
+
+# Fix up unit tests to use lrelease-qt4
+sed -i -e "s/lrelease /lrelease-qt4 /" tests/QtCore/translation_test.py
+
+
+%build
+install -d build
+cd build
+%{cmake} \
+	..
+%{__make}
+cd ..
+
+%if %{with tests}
+# Tests need an X server
+export DISPLAY=:21
+Xvfb $DISPLAY &
+trap "kill $! ||:" EXIT
+sleep 3
+
+cd build
+ctest -V ||:
+cd ..
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# Fix permissions
+chmod 755 $RPM_BUILD_ROOT%{py_sitedir}/PySide/*.so
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING PySide/licensecomment.txt
+%attr(755,root,root) %{_libdir}/libpyside*.so.*
+%{py_sitedir}/PySide/
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/PySide/
+%attr(755,root,root) %{_libdir}/libpyside*.so
+%{_libdir}/cmake/PySide-%{version}/
+%{_pkgconfigdir}/pyside.pc
+%{_datadir}/PySide/
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyside.git/commitdiff/746146925274014b56ab02becc3a3cd28afe0915



More information about the pld-cvs-commit mailing list