rpm-macros subpkg

f41
Rex Dieter 9 years ago
parent 1a317b5403
commit 1db5bb4f22

@ -19,7 +19,7 @@
Summary: PyQt5 is Python bindings for Qt5 Summary: PyQt5 is Python bindings for Qt5
Name: python-qt5 Name: python-qt5
Version: 5.5.1 Version: 5.5.1
Release: 17%{?dist} Release: 18%{?dist}
# all BSD, except for GPLv2+ dbus bindings and examples # all BSD, except for GPLv2+ dbus bindings and examples
License: BSD and GPLv2+ License: BSD and GPLv2+
@ -75,6 +75,7 @@ BuildRequires: python3-dbus
Obsoletes: python-qt5 < 5.5.1-10 Obsoletes: python-qt5 < 5.5.1-10
%endif %endif
Requires: %{name}-rpm-macros = %{version}-%{release}
Requires: dbus-python Requires: dbus-python
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}} %{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}} %{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
@ -103,6 +104,12 @@ Provides: PyQt5-devel = %{version}-%{release}
Files needed to build other bindings for C++ classes that inherit from any Files needed to build other bindings for C++ classes that inherit from any
of the Qt5 classes (e.g. KDE or your own). of the Qt5 classes (e.g. KDE or your own).
%package rpm-macros
Summary: RPM macros %{name}
BuildArch: noarch
%description rpm-macros
%{summary}.
%package -n python3-qt5 %package -n python3-qt5
Summary: Python 3 bindings for Qt5 Summary: Python 3 bindings for Qt5
%{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}} %{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}}
@ -111,6 +118,7 @@ Summary: Python 3 bindings for Qt5
Obsoletes: python3-qt5 < 5.5.1-10 Obsoletes: python3-qt5 < 5.5.1-10
%endif %endif
Provides: python3-PyQt5 = %{version}-%{release} Provides: python3-PyQt5 = %{version}-%{release}
Requires: %{name}-rpm-macros = %{version}-%{release}
Requires: python3-dbus Requires: python3-dbus
%description -n python3-qt5 %description -n python3-qt5
%{summary}. %{summary}.
@ -263,7 +271,6 @@ sed -i \
%files %files
%doc NEWS README %doc NEWS README
%license LICENSE %license LICENSE
%{rpm_macros_dir}/macros.pyqt5
%{python2_dbus_dir}/pyqt5.so %{python2_dbus_dir}/pyqt5.so
%{_qt5_plugindir}/PyQt5/ %{_qt5_plugindir}/PyQt5/
%dir %{python2_sitearch}/PyQt5/ %dir %{python2_sitearch}/PyQt5/
@ -315,6 +322,9 @@ sed -i \
%{python2_sitearch}/PyQt5/QtWebKitWidgets.so %{python2_sitearch}/PyQt5/QtWebKitWidgets.so
%endif %endif
%files rpm-macros
%{rpm_macros_dir}/macros.pyqt5
%files devel %files devel
%{_bindir}/pylupdate5 %{_bindir}/pylupdate5
%{_bindir}/pyrcc5 %{_bindir}/pyrcc5
@ -326,7 +336,6 @@ sed -i \
%files -n python3-qt5 %files -n python3-qt5
%doc NEWS README %doc NEWS README
%license LICENSE %license LICENSE
%{rpm_macros_dir}/macros.pyqt5
%{python3_dbus_dir}/pyqt5.so %{python3_dbus_dir}/pyqt5.so
%dir %{python3_sitearch}/PyQt5/ %dir %{python3_sitearch}/PyQt5/
%{python3_sitearch}/PyQt5/__pycache__/ %{python3_sitearch}/PyQt5/__pycache__/
@ -395,6 +404,9 @@ sed -i \
%changelog %changelog
* Thu Mar 24 2016 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-18
- -rpm-macros subpkg
* Tue Mar 15 2016 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-17 * Tue Mar 15 2016 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-17
- rebuild (qt5-qtenginio) - rebuild (qt5-qtenginio)

Loading…
Cancel
Save