Репозитории 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
%define version 4.4.4
%define release alt0.M41.1
#define snap_date %nil
#define snap_rel %nil
%setup_python_module PyQt4
Summary: Python bindings for Qt.
Name: %packagename
Version: %version
License: GPL
Group: Development/Python
%ifdef snap_date
Release: %release.snap%snap_date.%snap_rel
%else
Release: %release
%endif
Source0: PyQt-x11-gpl.tar
URL: http://www.riverbankcomputing.co.uk/pyqt/
%py_package_requires sip >= 4.7.8
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: %py_package_dependencies sip-devel >= 4.7.5
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
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
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description examples
This package contains PyQt4 examples
%package doc
Summary: PyQt4 docs
Group: Development/Python
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
%make_build
%install
make install DESTDIR=%buildroot INSTALL_ROOT=%buildroot
chrpath --delete %buildroot%python_sitelibdir/PyQt4/QtDesigner.so
%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 можно просмотреть здесь
%define release alt0.M41.1
#define snap_date %nil
#define snap_rel %nil
%setup_python_module PyQt4
Summary: Python bindings for Qt.
Name: %packagename
Version: %version
License: GPL
Group: Development/Python
%ifdef snap_date
Release: %release.snap%snap_date.%snap_rel
%else
Release: %release
%endif
Source0: PyQt-x11-gpl.tar
URL: http://www.riverbankcomputing.co.uk/pyqt/
%py_package_requires sip >= 4.7.8
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: %py_package_dependencies sip-devel >= 4.7.5
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
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
Requires: %name
%py_package_provides %modulename-examples = %version-%release
%description examples
This package contains PyQt4 examples
%package doc
Summary: PyQt4 docs
Group: Development/Python
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
%make_build
%install
make install DESTDIR=%buildroot INSTALL_ROOT=%buildroot
chrpath --delete %buildroot%python_sitelibdir/PyQt4/QtDesigner.so
%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 можно просмотреть здесь