use standard (same as qtbase) .prl sanitation

This commit is contained in:
Rex Dieter 2014-05-05 09:42:00 -05:00
parent 142c116f2a
commit 78e8f54455

View File

@ -13,7 +13,7 @@
Summary: Qt5 - Multimedia support Summary: Qt5 - Multimedia support
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.2.1 Version: 5.2.1
Release: 1%{?dist} Release: 2%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -95,16 +95,18 @@ make install INSTALL_ROOT=%{buildroot}
make install_docs INSTALL_ROOT=%{buildroot} make install_docs INSTALL_ROOT=%{buildroot}
%endif %endif
## .prl file love (maybe consider just deleting these -- rex ## .prl/.la file love
# nuke dangling reference(s) to %%buildroot, excessive (.la-like) libs # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
sed -i \ pushd %{buildroot}%{_qt5_libdir}
-e "/^QMAKE_PRL_BUILD_DIR/d" \ for prl_file in libQt5*.prl ; do
-e "/^QMAKE_PRL_LIBS/d" \ sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
%{buildroot}%{_qt5_libdir}/*.prl if [ -f "$(basename ${prl_file} .prl).so" ]; then
rm -fv "$(basename ${prl_file} .prl).la"
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
fi
done
popd
## unpackaged files
# .la files, die, die, die.
rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -156,6 +158,9 @@ rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
%changelog %changelog
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
- use standard (same as qtbase) .prl sanitation
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1 * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
- 5.2.1 - 5.2.1