[packages/sip] - separate -PyQt5-sip-devel, let -sip-devel don't depend on -PyQt5-sip

qboosh qboosh at pld-linux.org
Tue Jul 30 21:17:55 CEST 2019


commit 6e8f53ed05545e038caa92e285fe8cf3e3af12fd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 30 21:19:54 2019 +0200

    - separate -PyQt5-sip-devel, let -sip-devel don't depend on -PyQt5-sip

 sip.spec | 127 ++++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 77 insertions(+), 50 deletions(-)
---
diff --git a/sip.spec b/sip.spec
index 901fd06..866b1cb 100644
--- a/sip.spec
+++ b/sip.spec
@@ -47,42 +47,51 @@ SIP generuje powiązania Pythona z bibliotekami klas C++ ze zbioru
 plików ze specyfikacjami klas. Ten pakiet zawiera bibliotekę Pythona 2
 potrzebną do uruchomienia wszystkich wygenerowanych powiązań.
 
+%package -n python-sip-devel
+Summary:	Python 2 development files needed to build bindings using SIP
+Summary(pl.UTF-8):	Pliki programistyczne Pythona 2 potrzebne do budowania wiązań przy użyciu SIP-a
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	python-devel >= 1:2.3
+
+%description -n python-sip-devel
+Python 2 development files needed to build bindings for C++ classes
+using SIP.
+
+%description -n python-sip-devel -l pl.UTF-8
+Pliki programistyczne Pythona 2 potrzebne do budowania wiązań dla klas
+C++ przy użyciu SIP-a.
+
 %package -n python-PyQt5-sip
-Summary:	Python 2 module needed by SIP generated bindings
-Summary(pl.UTF-8):	Moduł Pythona 2 wymagany przez wiązania wygenerowane przez SIP
+Summary:	Python 2 module needed by SIP generated bindings for PyQt5
+Summary(pl.UTF-8):	Moduł Pythona 2 wymagany przez wiązania wygenerowane przez SIP dla PyQt5
 Group:		Libraries/Python
 Requires:	python-libs
 
 %description -n python-PyQt5-sip
 SIP generates Python bindings for C++ class libraries from a set of
 class specification files. This package includes Python 2 runtime
-library needed by all generated bindings.
-
-PyQt5 private copy.
+library needed by all generated bindings for PyQt5.
 
 %description -n python-PyQt5-sip -l pl.UTF-8
 SIP generuje powiązania Pythona z bibliotekami klas C++ ze zbioru
 plików ze specyfikacjami klas. Ten pakiet zawiera bibliotekę Pythona 2
-potrzebną do uruchomienia wszystkich wygenerowanych powiązań.
-
-Prywatna kopia PyQt5.
+potrzebną do uruchomienia wszystkich wygenerowanych wiązań dla PyQt5.
 
-%package -n python-sip-devel
-Summary:	Python 2 development files needed to build bindings using SIP
-Summary(pl.UTF-8):	Pliki programistyczne Pythona 2 potrzebne do budowania wiązań przy użyciu SIP-a
+%package -n python-PyQt5-sip-devel
+Summary:	Python 2 development files needed to build bindings for PyQt5 using SIP
+Summary(pl.UTF-8):	Pliki programistyczne Pythona 2 potrzebne do budowania wiązań dla PyQt5 przy użyciu SIP-a
 Group:		Development/Libraries
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-Requires:	python-sip = %{epoch}:%{version}-%{release}
 Requires:	python-PyQt5-sip = %{epoch}:%{version}-%{release}
-Requires:	python-devel >= 1:2.3
+Requires:	python-sip-devel = %{epoch}:%{version}-%{release}
 
-%description -n python-sip-devel
+%description -n python-PyQt5-sip-devel
 Python 2 development files needed to build bindings for C++ classes
-using SIP.
+for PyQt5 using SIP.
 
-%description -n python-sip-devel -l pl.UTF-8
+%description -n python-PyQt5-sip-devel -l pl.UTF-8
 Pliki programistyczne Pythona 2 potrzebne do budowania wiązań dla klas
-C++ przy użyciu SIP-a.
+C++ dla PyQt5 przy użyciu SIP-a.
 
 %package -n python3-sip
 Summary:	Python 3 module needed by SIP generated bindings
@@ -100,42 +109,52 @@ SIP generuje powiązania Pythona z bibliotekami klas C++ ze zbioru
 plików ze specyfikacjami klas. Ten pakiet zawiera bibliotekę Pythona 3
 potrzebną do uruchomienia wszystkich wygenerowanych powiązań.
 
+%package -n python3-sip-devel
+Summary:	Python 3 development files needed to build bindings using SIP
+Summary(pl.UTF-8):	Pliki programistyczne Pythona 3 potrzebne do budowania wiązań przy użyciu SIP-a
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	python3-sip = %{epoch}:%{version}-%{release}
+Requires:	python3-devel >= 1:3.2
+
+%description -n python3-sip-devel
+Python 3 development files needed to build bindings for C++ classes
+using SIP.
+
+%description -n python3-sip-devel -l pl.UTF-8
+Pliki programistyczne Pythona 3 potrzebne do budowania wiązań dla klas
+C++ przy użyciu SIP-a.
+
 %package -n python3-PyQt5-sip
-Summary:	Python 3 module needed by SIP generated bindings
-Summary(pl.UTF-8):	Moduł Pythona 3 wymagany przez wiązania wygenerowane przez SIP
+Summary:	Python 3 module needed by SIP generated bindings for PyQt5
+Summary(pl.UTF-8):	Moduł Pythona 3 wymagany przez wiązania wygenerowane przez SIP dla PyQt5
 Group:		Libraries/Python
 Requires:	python3-libs
 
 %description -n python3-PyQt5-sip
 SIP generates Python bindings for C++ class libraries from a set of
-class specification files. This package includes Python 3 runtime
-library needed by all generated bindings.
-
-PyQt5 private copy.
+class specification files. This package includes Python 2 runtime
+library needed by all generated bindings for PyQt5.
 
 %description -n python3-PyQt5-sip -l pl.UTF-8
 SIP generuje powiązania Pythona z bibliotekami klas C++ ze zbioru
-plików ze specyfikacjami klas. Ten pakiet zawiera bibliotekę Pythona 3
-potrzebną do uruchomienia wszystkich wygenerowanych powiązań.
-
-Prywatna kopia PyQt5.
+plików ze specyfikacjami klas. Ten pakiet zawiera bibliotekę Pythona 2
+potrzebną do uruchomienia wszystkich wygenerowanych wiązań dla PyQt5.
 
-%package -n python3-sip-devel
-Summary:	Python 3 development files needed to build bindings using SIP
-Summary(pl.UTF-8):	Pliki programistyczne Pythona 3 potrzebne do budowania wiązań przy użyciu SIP-a
+%package -n python3-PyQt5-sip-devel
+Summary:	Python 3 development files needed to build bindings for PyQt5 using SIP
+Summary(pl.UTF-8):	Pliki programistyczne Pythona 3 potrzebne do budowania wiązań dla PyQt5 przy użyciu SIP-a
 Group:		Development/Libraries
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-Requires:	python3-sip = %{epoch}:%{version}-%{release}
 Requires:	python3-PyQt5-sip = %{epoch}:%{version}-%{release}
-Requires:	python3-devel >= 1:3.2
+Requires:	python3-sip-devel = %{epoch}:%{version}-%{release}
 
-%description -n python3-sip-devel
+%description -n python3-PyQt5-sip-devel
 Python 3 development files needed to build bindings for C++ classes
-using SIP.
+for PyQt5 using SIP.
 
-%description -n python3-sip-devel -l pl.UTF-8
+%description -n python3-PyQt5-sip-devel -l pl.UTF-8
 Pliki programistyczne Pythona 3 potrzebne do budowania wiązań dla klas
-C++ przy użyciu SIP-a.
+C++ dla PyQt5 przy użyciu SIP-a.
 
 %prep
 %setup -q
@@ -232,6 +251,7 @@ install -d $RPM_BUILD_ROOT%{_sipfilesdir}
 
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/{sip,PyQt5_sip}-%{version}.dist-info
 %endif
 
 %if %{with python3}
@@ -243,6 +263,7 @@ install -d $RPM_BUILD_ROOT%{_sipfilesdir}
 
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/{sip,PyQt5_sip}-%{version}.dist-info
 %endif
 
 %clean
@@ -259,11 +280,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/sip.so
 
-%files -n python-PyQt5-sip
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/PyQt5
-%attr(755,root,root) %{py_sitedir}/PyQt5/sip.so
-
 %files -n python-sip-devel
 %defattr(644,root,root,755)
 %{py_sitedir}/sipconfig.py
@@ -271,8 +287,16 @@ rm -rf $RPM_BUILD_ROOT
 %{py_sitedir}/sipdistutils.py
 %{py_sitedir}/sipdistutils.py[co]
 %{py_sitedir}/sip.pyi
-%{py_sitedir}/PyQt5/sip.pyi
 %{py_incdir}/sip.h
+
+%files -n python-PyQt5-sip
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/PyQt5
+%attr(755,root,root) %{py_sitedir}/PyQt5/sip.so
+
+%files -n python-PyQt5-sip-devel
+%defattr(644,root,root,755)
+%{py_sitedir}/PyQt5/sip.pyi
 %endif
 
 %if %{with python3}
@@ -280,11 +304,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py3_sitedir}/sip.so
 
-%files -n python3-PyQt5-sip
-%defattr(644,root,root,755)
-%dir %{py3_sitedir}/PyQt5
-%attr(755,root,root) %{py3_sitedir}/PyQt5/sip.so
-
 %files -n python3-sip-devel
 %defattr(644,root,root,755)
 %{py3_sitedir}/sipconfig.py
@@ -292,6 +311,14 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/__pycache__/sipconfig.cpython-*.py[co]
 %{py3_sitedir}/__pycache__/sipdistutils.cpython-*.py[co]
 %{py3_sitedir}/sip.pyi
-%{py3_sitedir}/PyQt5/sip.pyi
 %{py3_incdir}/sip.h
+
+%files -n python3-PyQt5-sip
+%defattr(644,root,root,755)
+%dir %{py3_sitedir}/PyQt5
+%attr(755,root,root) %{py3_sitedir}/PyQt5/sip.so
+
+%files -n python3-PyQt5-sip-devel
+%defattr(644,root,root,755)
+%{py3_sitedir}/PyQt5/sip.pyi
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sip.git/commitdiff/6e8f53ed05545e038caa92e285fe8cf3e3af12fd



More information about the pld-cvs-commit mailing list