Search
SailfishOS Open Build Service
>
Projects
>
home:r0kk3rz
:
qt-webengine
>
qtwebchannel
> _service:tar_git:qtwebchannel.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:qtwebchannel.spec of Package qtwebchannel
Name: qt5-qtwebchannel Summary: Qt Web Channel library Version: 5.9.5+git0 Release: 1%{?dist} Group: Qt/Qt License: LGPLv3 URL: https://www.qt.io/ Source0: %{name}-%{version}.tar.bz2 BuildRequires: qt5-qtcore-devel >= 5.9.5 BuildRequires: qt5-qtdeclarative-qtquick-devel BuildRequires: qt5-qmake >= 5.9.5 #BuildRequires: qt5-qttools-qthelp-devel BuildRequires: fdupes BuildRequires: python BuildRequires: gdb BuildRequires: qml-rpm-macros %description Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Web Channel library %package devel Summary: Qt Web Channel - development files Group: Qt/Qt Requires: %{name} = %{version}-%{release} Requires: qt5-qtdeclarative-devel Requires: qml-rpm-macros %description devel Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Web Channel library development files %package -n qt5-qtqml-import-webchannel Summary: QtQml WebChannel import Group: Qt/Qt Requires: %{name} = %{version}-%{release} Requires: qt5-qtdeclarative %description -n qt5-qtqml-import-webchannel This package contains the WebChannel import for QtQml %package doc Summary: Qt Web Channel - documentation Group: Qt/Qt Requires: %{name} = %{version}-%{release} %description doc This package contains the Qt Web Channel documentation %prep %setup -q -n %{name}-%{version} %build export QTDIR=/usr/share/qt5 touch .git %qmake5 QT.widgets.name= DEFINES+=QT_NO_WIDGETS make %{?_smp_mflags} #%if 0%{?qt5_release_build} #make docs #%endif %install rm -rf %{buildroot} %qmake5_install # Fix wrong path in pkgconfig files find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \ -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \; # Fix wrong path in prl files find %{buildroot}%{_libdir} -type f -name '*.prl' \ -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \; # Remove unneeded .la files rm -f %{buildroot}/%{_libdir}/*.la # We don't need qt5/Qt/ rm -rf %{buildroot}/%{_includedir}/qt5/Qt # Copy docs mkdir -p %{buildroot}/%{_docdir}/qt5/qtwebchannel #%if 0%{?qt5_release_build} #cp -R doc/qtwebchannel %{buildroot}/%{_docdir}/qt5 #cp -R doc/qtwebchannel.qch %{buildroot}/%{_docdir}/qt5 #%endif #### Pre/Post section %post /sbin/ldconfig %postun /sbin/ldconfig #### File section %files %defattr(-,root,root,-) %{_libdir}/libQt5WebChannel.so.5 %{_libdir}/libQt5WebChannel.so.5.* # FIXME: the provided .pc file is empty! # Find out what gives and find a clean resolution %files devel %defattr(-,root,root,-) %{_libdir}/libQt5WebChannel.so %{_libdir}/libQt5WebChannel.prl %{_libdir}/pkgconfig/Qt5WebChannel.pc %{_libdir}/qt5/qml/QtWebChannel/plugins.qmltypes %{_includedir}/qt5/QtWebChannel/ %{_datadir}/qt5/mkspecs/modules/qt_lib_webchannel.pri %{_datadir}/qt5/mkspecs/modules/qt_lib_webchannel_private.pri %{_libdir}/cmake/Qt5WebChannel/Qt5WebChannelConfig.cmake %{_libdir}/cmake/Qt5WebChannel/Qt5WebChannelConfigVersion.cmake %files -n qt5-qtqml-import-webchannel %{_libdir}/qt5/qml/QtWebChannel/qmldir %{_libdir}/qt5/qml/QtWebChannel/libdeclarative_webchannel.so %files doc %{_docdir}/qt5/qtwebchannel*