[qt5-qtconnectivity] sanitize .prl files
Rex Dieter
rdieter at fedoraproject.org
Mon May 5 14:35:57 UTC 2014
commit 8f4c1ccfc83d6ed579a94d87a0f8fcbaa7e1b763
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Mon May 5 09:36:20 2014 -0500
sanitize .prl files
qt5-qtconnectivity.spec | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/qt5-qtconnectivity.spec b/qt5-qtconnectivity.spec
index 6909a79..da4d35b 100644
--- a/qt5-qtconnectivity.spec
+++ b/qt5-qtconnectivity.spec
@@ -6,7 +6,7 @@
Summary: Qt5 - Connectivity components
Name: qt5-%{qt_module}
Version: 5.2.1
-Release: 1%{?dist}
+Release: 2%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@@ -72,9 +72,17 @@ make install INSTALL_ROOT=%{buildroot}
make install_docs INSTALL_ROOT=%{buildroot}
%endif
-## unpackaged files
-# .la files, die, die, die.
-rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
+## .prl/.la file love
+# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
+pushd %{buildroot}%{_qt5_libdir}
+for prl_file in libQt5*.prl ; do
+ sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
+ 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
%post -p /sbin/ldconfig
@@ -117,6 +125,9 @@ rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
%changelog
+* Mon May 05 2014 Rex Dieter <rdieter at fedoraproject.org> 5.2.1-2
+- sanitize .prl files
+
* Wed Feb 05 2014 Rex Dieter <rdieter at fedoraproject.org> 5.2.1-1
- 5.2.1
More information about the scm-commits
mailing list