Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
armv6l
>
qtscript
> qtscript.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtscript.spec of Package qtscript
# Package prefix %define pkgname qt5-qtscript Name: qtscript VCS: git@github.com:maui-packages/qtscript#7e1afe015398a417b96354eb583b5863d43fbe23 Summary: Qt scripting module Version: 5.4.1 Release: 1 Group: Qt/Qt License: LGPLv2.1 with exception or GPLv3 URL: http://qt.io Source0: %{name}-%{version}.tar.xz BuildRequires: qt5-qtcore-devel BuildRequires: qt5-qtgui-devel BuildRequires: qt5-qtwidgets-devel BuildRequires: qt5-qmake BuildRequires: fdupes %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 scripting module. %package -n %{pkgname} Summary: Qt scripting module Group: Qt/Qt %description -n %{pkgname} 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 scripting module. %package -n %{pkgname}-devel Summary: Qt scripting - development files Group: Qt/Qt Requires: %{pkgname} = %{version}-%{release} %description -n %{pkgname}-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 scripting module development files. %prep %setup -q -n %{name}-%{version} %build export QTDIR=/usr/share/qt5 touch .git qmake -qt=5 make %{?_smp_mflags} %install rm -rf %{buildroot} %qmake5_install # Remove unneeded .la files rm -f %{buildroot}/%{_libdir}/*.la # 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/" {} \; # We don't need qt5/Qt/ rm -rf %{buildroot}/%{_includedir}/qt5/Qt %fdupes %{buildroot}/%{_includedir} %post -n %{pkgname} -p /sbin/ldconfig %postun -n %{pkgname} -p /sbin/ldconfig %files -n %{pkgname} %defattr(-,root,root,-) %{_libdir}/libQt5Script.so.5 %{_libdir}/libQt5Script.so.5.* %{_libdir}/libQt5ScriptTools.so.5 %{_libdir}/libQt5ScriptTools.so.5.* %files -n %{pkgname}-devel %defattr(-,root,root,-) %{_libdir}/libQt5Script.so %{_libdir}/libQt5Script.prl %{_libdir}/libQt5ScriptTools.so %{_libdir}/libQt5ScriptTools.prl %{_libdir}/pkgconfig/* %{_includedir}/qt5/* %{_datadir}/qt5/mkspecs/ %{_libdir}/cmake/