Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
python-qt4
python-qt4.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-qt4.spec of Package python-qt4
# # spec file for package python-qt4 # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define rversion %{version} Name: python-qt4 Version: 4.11.4 Release: 0 Summary: PyQt - python bindings for Qt 4 License: SUSE-GPL-2.0-with-FLOSS-exception or GPL-3.0 or SUSE-NonFree Group: Development/Libraries/Python Url: http://www.riverbankcomputing.com/software/pyqt/intro Source0: http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-%{rversion}/PyQt-x11-gpl-%{rversion}.tar.gz Patch0: link-python.diff # PATCH-FIX-UPSTREAM: Fix .pro files not being generated by configure.py Patch3: pyqt4_add_pro_files.diff BuildRequires: dbus-1-python-devel BuildRequires: fdupes BuildRequires: libQtWebKit-devel BuildRequires: libqt4-devel BuildRequires: phonon-devel BuildRequires: python-devel BuildRequires: python-sip-devel >= 4.16.9 %requires_ge dbus-1-python %requires_ge libqt4-x11 %py_requires %{requires_python_sip_api} %if 0%{?sles_version} == 10 Requires: python-elementtree %endif %if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %description PyQt is a set of Python bindings for Trolltech's Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux. There are two sets of bindings: PyQt v4 supports Qt v4; and the older PyQt v3 supports Qt v3 and earlier. The bindings are implemented as a set of Python modules and contain over 300 classes and nearly 6,000 functions and methods. %package devel Summary: PyQt - devel part of python bindings for Qt 4 Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: libqt4-devel Requires: python-qt4-utils Requires: python-sip-devel %description devel PyQt is a set of Python bindings for Trolltech's Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux. There are two sets of bindings: PyQt v4 supports Qt v4; and the older PyQt v3 supports Qt v3 and earlier. The bindings are implemented as a set of Python modules and contain over 300 classes and nearly 6,000 functions and methods. This package contains all the developer tools you need to create your own PyQt applications. %package utils Summary: Common files for PyQt4 for python2 and python3 Group: Development/Libraries/Python %description utils This package is needed to avoid conflicts between python-qt4 and python3-qt4 packages. It contains files common to both of them i.e. sip files used to generate bindings and utilities pylupdate4 and pyrcc4 %prep %setup -q -n PyQt-x11-gpl-%{rversion} %patch0 -p1 %patch3 -p1 %build export CXXFLAGS="%{optflags}" export CFLAGS="%{optflags}" python configure.py --confirm-license --qsci-api -u make %{?_smp_mflags} %install %make_install INSTALL_ROOT=%{buildroot} sed -i 's/The "doc" directory/The "doc" directory of package %{name}-devel/' README DOCDIR=%{buildroot}%{_docdir}/%{name}-devel mkdir -p $DOCDIR cp -pr NEWS THANKS contrib doc examples $DOCDIR # create hardlinks for duplicate files %fdupes -s $DOCDIR %files %defattr(-,root,root) %doc README %{python_sitearch}/PyQt4/ %{python_sitelib}/dbus/mainloop/qt.so %files devel %defattr(-,root,root) %{_bindir}/pyuic4 %{_datadir}/qt4/qsci/ %{_docdir}/python-qt4-devel %{_libdir}/qt4/plugins/designer/libpyqt4.so %files utils %defattr(-,root,root) %{_bindir}/pylupdate4 %{_bindir}/pyrcc4 %{_datadir}/sip/PyQt4 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor