Adrian Schröter 2018-05-25 10:55:03 +00:00 committed by Git OBS Bridge
parent 4019510ecf
commit 512f15762e

View File

@ -86,8 +86,7 @@ BuildRequires: pkgconfig(Qt5XmlPatterns)
#BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: libxslt-devel
BuildRequires: llvm-clang-devel >= 3.9
#BuildRequires: llvm-devel >= 3.9
BuildRequires: clang-devel >= 3.9
BuildRequires: python-devel >= 2.6
BuildRequires: python-setuptools
@ -133,23 +132,23 @@ cp -a ./pyside?_install/py*-release/* %{buildroot}%{_prefix}/
sed -i 's,=.*/pyside._install/[^\/]*,=/usr,' %{buildroot}%{_prefix}/lib/pkgconfig/*.pc
sed -i 's,^libdir=.*,libdir=%{_libdir},' %{buildroot}%{_prefix}/lib/pkgconfig/*.pc
sed -i 's,"[^"]*/include/shiboken2","/usr/include/shiboken2",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/lib/libshiboken2.\(.*\)","%{_libdir}/libshiboken2.\1",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/bin/shiboken2","%{_prefix}/bin/shiboken2",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/include/shiboken2","/usr/include/shiboken2",' %{buildroot}%{_prefix}/lib*/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/lib/libshiboken2.\(.*\)","%{_libdir}/libshiboken2.\1",' %{buildroot}%{_prefix}/lib*/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/bin/shiboken2","%{_prefix}/bin/shiboken2",' %{buildroot}%{_prefix}/lib*/cmake/Shiboken*/*.cmake
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib*/cmake/Shiboken*/*.cmake
sed -i 's,"[^"]*/include/PySide2","/usr/include/PySide2",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/lib/cmake/\(.*\)","%{_libdir}/cmake/\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/lib/libpyside2\.\(.*\)","%{_libdir}/libpyside2.\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/\(python.*/site-packages\)","%{_libdir}/\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/share/PySide2/typesystems","%{_prefix}/share/PySide2/typesystems",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/include/PySide2","/usr/include/PySide2",' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/lib/cmake/\(.*\)","%{_libdir}/cmake/\1",' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/lib/libpyside2\.\(.*\)","%{_libdir}/libpyside2.\1",' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/\(python.*/site-packages\)","%{_libdir}/\1",' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
sed -i 's,"[^"]*/share/PySide2/typesystems","%{_prefix}/share/PySide2/typesystems",' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib*/cmake/PySide2*/*.cmake
%if "%{_libdir}" == "/usr/lib64"
mv %{buildroot}%{_prefix}/lib/lib* %{buildroot}/%{_libdir}/
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}/%{_libdir}/
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}/%{_libdir}/
rmdir %{buildroot}%{_prefix}/lib
mv %{buildroot}%{_prefix}/lib/pkgconfig/* %{buildroot}/%{_libdir}/pkgconfig/
mv %{buildroot}%{_prefix}/lib/cmake/* %{buildroot}/%{_libdir}/cmake/
rmdir %{buildroot}%{_prefix}/lib{/cmake,/pkgconfig,}
%endif
%check