Репозитории ALT
5.1: | 4.7-alt1.M51.1 |
4.1: | 4.4.4-alt0.M41.1 |
+backports: | 4.4.2-alt1.M41.1 |
4.0: | 4.1.1-alt1 |
Группа :: Разработка/Python
Пакет: python-module-PyQt4
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: python-module-PyQt4
Version: 4.7
Release: alt1.M51.1
Summary: Python bindings for Qt.
License: GPL
Group: Development/Python
%setup_python_module PyQt4
Source0: PyQt-x11-gpl.tar
URL: http://www.riverbankcomputing.co.uk/software/pyqt
%py_package_requires sip >= 4.8.2
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: %py_package_dependencies sip-devel >= 4.8.1
BuildPreReq: %py_package_dependencies dbus-devel
%add_python_req_skip Compiler
BuildRequires: gcc-c++ libqt4-devel chrpath
%description
Python bindings for the Qt C++ class library. Also includes a PyQt4 backend
code generator for Qt Designer.
%package devel
Requires: %name = %version-%release
Summary: Sip files for %name
BuildArch: noarch
Group: Development/Python
%py_package_provides %modulename-devel = %version-%release
%description devel
Sip files for PyQt to build extension
%package examples
Summary: PyQt4 examples
Group: Development/Python
BuildArch: noarch
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description examples
This package contains PyQt4 examples
%package doc
Summary: PyQt4 docs
Group: Development/Python
BuildArch: noarch
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description doc
This package contains PyQt4 docs
%prep
%setup -n PyQt-x11-gpl
subst 's|/lib/libpython|/%_lib/libpython|g' configure.py
subst 's|/lib" |/%_lib" |g' configure.py
subst 's|#include <QTextStream>|#include <QTextStream>\n#define QT_SHARED\n|g' \
configure.py
%build
export QT4DIR=%_qt4dir
echo 'yes' | python configure.py \
-q %_qt4dir/bin/qmake \
-d %python_sitelibdir \
-p %_qt4dir/plugins \
-a --confirm-license
%make_build
%install
make install DESTDIR=%buildroot INSTALL_ROOT=%buildroot
chrpath --delete %buildroot%python_sitelibdir/PyQt4/QtDesigner.so
rm -rf %buildroot%python_sitelibdir/PyQt4/uic/port_v3
bzip2 ChangeLog
%files
%_bindir/*
%python_sitelibdir/*
%_qt4dir/plugins/designer/libpythonplugin.so
%files devel
%dir %_datadir/sip
%_datadir/sip/*
%dir %_datadir/qt4
%_datadir/qt4/*
%files doc
%doc doc/*
%doc NEWS README ChangeLog* THANKS
%files examples
%doc examples
%changelog
…
Полный changelog можно просмотреть здесь
Version: 4.7
Release: alt1.M51.1
Summary: Python bindings for Qt.
License: GPL
Group: Development/Python
%setup_python_module PyQt4
Source0: PyQt-x11-gpl.tar
URL: http://www.riverbankcomputing.co.uk/software/pyqt
%py_package_requires sip >= 4.8.2
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: %py_package_dependencies sip-devel >= 4.8.1
BuildPreReq: %py_package_dependencies dbus-devel
%add_python_req_skip Compiler
BuildRequires: gcc-c++ libqt4-devel chrpath
%description
Python bindings for the Qt C++ class library. Also includes a PyQt4 backend
code generator for Qt Designer.
%package devel
Requires: %name = %version-%release
Summary: Sip files for %name
BuildArch: noarch
Group: Development/Python
%py_package_provides %modulename-devel = %version-%release
%description devel
Sip files for PyQt to build extension
%package examples
Summary: PyQt4 examples
Group: Development/Python
BuildArch: noarch
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description examples
This package contains PyQt4 examples
%package doc
Summary: PyQt4 docs
Group: Development/Python
BuildArch: noarch
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description doc
This package contains PyQt4 docs
%prep
%setup -n PyQt-x11-gpl
subst 's|/lib/libpython|/%_lib/libpython|g' configure.py
subst 's|/lib" |/%_lib" |g' configure.py
subst 's|#include <QTextStream>|#include <QTextStream>\n#define QT_SHARED\n|g' \
configure.py
%build
export QT4DIR=%_qt4dir
echo 'yes' | python configure.py \
-q %_qt4dir/bin/qmake \
-d %python_sitelibdir \
-p %_qt4dir/plugins \
-a --confirm-license
%make_build
%install
make install DESTDIR=%buildroot INSTALL_ROOT=%buildroot
chrpath --delete %buildroot%python_sitelibdir/PyQt4/QtDesigner.so
rm -rf %buildroot%python_sitelibdir/PyQt4/uic/port_v3
bzip2 ChangeLog
%files
%_bindir/*
%python_sitelibdir/*
%_qt4dir/plugins/designer/libpythonplugin.so
%files devel
%dir %_datadir/sip
%_datadir/sip/*
%dir %_datadir/qt4
%_datadir/qt4/*
%files doc
%doc doc/*
%doc NEWS README ChangeLog* THANKS
%files examples
%doc examples
%changelog
…
Полный changelog можно просмотреть здесь