Search
SailfishOS Open Build Service
>
Projects
>
home:sebas
:
branches:home:plfiorini:maui:devel
:
hw:lge:hammerhead
>
qtsvg
> qtsvg.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtsvg.spec of Package qtsvg
# Package prefix %define pkgname qt5-qtsvg Name: qtsvg VCS: git@github.com:maui-packages/qtsvg.git#ba8b6154178f844a24d2e2c5fc5c7f8dd8f26f80 Summary: Qt SVG 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-qtxml-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 SVG module. %package -n qt5-qtsvg Summary: Qt SVG module Group: Qt/Qt %description -n qt5-qtsvg 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 SVG module. %package -n qt5-qtsvg-devel Summary: Qt SVG - development files Group: Qt/Qt Requires: %{pkgname} = %{version}-%{release} %description -n qt5-qtsvg-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 SVG module development files. %package -n qt5-qtsvg-plugin-imageformat-svg Summary: Qt SVG image format plugin Group: Qt/Qt Requires: %{pkgname} = %{version}-%{release} %description -n qt5-qtsvg-plugin-imageformat-svg This package contains the SVG image format plugin %prep %setup -q -n %{name}-%{version} %build export QTDIR=/usr/share/qt5 touch .git # Can't build without QtWidgets, see https://bugs.kde.org/show_bug.cgi?id=336028 # also this might be the cause why Hawaii doesn't show any icon #%qmake5 QT.widgets.name= DEFINES+=QT_NO_WIDGETS %qmake5 make %{_smp_mflags} %install rm -rf %{buildroot} %qmake5_install # Remove unneeded .la files rm -f %{buildroot}/%{_libdir}/*.la # 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/" {} \; # These manage to really royally screw up cmake find %{buildroot}%{_libdir} -type f -name "*_*Plugin.cmake" \ -exec rm {} \; %fdupes %{buildroot}/%{_includedir} %post -n qt5-qtsvg /sbin/ldconfig %postun -n qt5-qtsvg /sbin/ldconfig %files -n qt5-qtsvg %defattr(-,root,root,-) %{_libdir}/libQt5Svg.so.5 %{_libdir}/libQt5Svg.so.5.* %files -n qt5-qtsvg-devel %defattr(-,root,root,-) %{_libdir}/libQt5Svg.so %{_libdir}/libQt5Svg.prl %{_libdir}/pkgconfig/* %{_includedir}/qt5/* %{_datadir}/qt5/mkspecs/ %{_libdir}/cmake/ %files -n qt5-qtsvg-plugin-imageformat-svg %defattr(-,root,root,-) %{_libdir}/qt5/plugins/imageformats/lib*svg.so %{_libdir}/qt5/plugins/iconengines/*.so