diff --git a/sip.spec b/sip.spec index 789c9c9..e74f5a7 100644 --- a/sip.spec +++ b/sip.spec @@ -20,7 +20,7 @@ Summary: SIP - Python/C++ Bindings Generator Name: sip Version: 4.19.12 -Release: 6%{?dist} +Release: 7%{?dist} # sipgen/parser.{c.h} is GPLv3+ with exceptions (bison) License: GPLv2 or GPLv3 and (GPLv3+ with exceptions) @@ -156,7 +156,6 @@ Obsoletes: sip-devel < %{version}-%{release} mkdir %{_target_platform}-python2 pushd %{_target_platform}-python2 %{__python2} ../configure.py \ - --no-dist-info \ CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" %make_build @@ -165,7 +164,6 @@ popd mkdir %{_target_platform}-python2-pyqt4 pushd %{_target_platform}-python2-pyqt4 %{__python2} ../configure.py \ - --no-dist-info \ --sip-module=PyQt4.sip \ CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" @@ -175,7 +173,6 @@ popd mkdir %{_target_platform}-python2-pyqt5 pushd %{_target_platform}-python2-pyqt5 %{__python2} ../configure.py \ - --no-dist-info \ --sip-module=PyQt5.sip \ CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" @@ -187,7 +184,6 @@ popd mkdir %{_target_platform}-python3 pushd %{_target_platform}-python3 %{__python3} ../configure.py \ - --no-dist-info \ CXXFLAGS+="%{optflags}" CFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" %make_build @@ -196,7 +192,6 @@ popd mkdir %{_target_platform}-python3-pyqt4 pushd %{_target_platform}-python3-pyqt4 %{__python3} ../configure.py \ - --no-dist-info \ --sip-module=PyQt4.sip \ CXXFLAGS+="%{optflags}" CFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" @@ -206,7 +201,6 @@ popd mkdir %{_target_platform}-python3-pyqt5 pushd %{_target_platform}-python3-pyqt5 %{__python3} ../configure.py \ - --no-dist-info \ --sip-module=PyQt5.sip \ CXXFLAGS+="%{optflags}" CFLAGS+="%{optflags}" LFLAGS+="%{?__global_ldflags}" @@ -259,17 +253,20 @@ install -D -p -m644 %{SOURCE1} %{buildroot}%{rpm_macros_dir}/macros.sip %{python2_sitearch}/sip.* %{python2_sitearch}/sipconfig.py* %{python2_sitearch}/sipdistutils.py* +%{python2_sitearch}/sip-%{version}.dist-info/ %files -n python2-pyqt4-sip %doc NEWS README %license LICENSE LICENSE-GPL2 LICENSE-GPL3 %{python2_sitearch}/PyQt4/ +%{python2_sitearch}/PyQt4_sip-%{version}.dist-info/ %files -n python2-pyqt5-sip %doc NEWS README %license LICENSE LICENSE-GPL2 LICENSE-GPL3 %dir %{python2_sitearch}/PyQt5/ %{python2_sitearch}/PyQt5/sip.* +%{python2_sitearch}/PyQt5_sip-%{version}.dist-info/ %if %{with python3} %files -n python%{python3_pkgversion}-sip-devel @@ -281,6 +278,7 @@ install -D -p -m644 %{SOURCE1} %{buildroot}%{rpm_macros_dir}/macros.sip %{python3_sitearch}/sip.* %{python3_sitearch}/sipconfig.py* %{python3_sitearch}/sipdistutils.py* +%{python3_sitearch}/sip-%{version}.dist-info/ %{python3_sitearch}/__pycache__/* %exclude %{python3_sitearch}/__pycache__/exclude_rpm_hack @@ -289,6 +287,7 @@ install -D -p -m644 %{SOURCE1} %{buildroot}%{rpm_macros_dir}/macros.sip %license LICENSE LICENSE-GPL2 LICENSE-GPL3 %dir %{python3_sitearch}/PyQt4/ %{python3_sitearch}/PyQt4/sip.* +%{python3_sitearch}/PyQt4_sip-%{version}.dist-info/ %{python3_sitearch}/__pycache__/* %exclude %{python3_sitearch}/__pycache__/exclude_rpm_hack @@ -297,12 +296,16 @@ install -D -p -m644 %{SOURCE1} %{buildroot}%{rpm_macros_dir}/macros.sip %license LICENSE LICENSE-GPL2 LICENSE-GPL3 %dir %{python3_sitearch}/PyQt5/ %{python3_sitearch}/PyQt5/sip.* +%{python3_sitearch}/PyQt5_sip-%{version}.dist-info/ %{python3_sitearch}/__pycache__/* %exclude %{python3_sitearch}/__pycache__/exclude_rpm_hack %endif %changelog +* Tue Aug 14 2018 Rex Dieter - 4.19.12-7 +- include dist-info (#1524189) + * Tue Aug 14 2018 Rex Dieter - 4.19.12-6 - provide python?-pyqt4-sip too - tighten dir ownership of sip python module dir(s)