Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
beagle
>
qtxmlpatterns
> qtxmlpatterns.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtxmlpatterns.spec of Package qtxmlpatterns
%define _qtmodule_snapshot_version 5.0.1 Name: qt5-qtxmlpatterns Summary: Qt XML Patterns library Version: 5.0.1 Release: 1%{?dist} Group: Qt/Qt License: LGPLv2.1 with exception or GPLv3 URL: http://qt.nokia.com #Source0: %{name}-%{version}.tar.xz Source0: qtxmlpatterns-opensource-src-%{_qtmodule_snapshot_version}.tar.xz BuildRequires: qt5-qtcore-devel BuildRequires: qt5-qtxml-devel BuildRequires: qt5-qtgui-devel BuildRequires: qt5-qtnetwork-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 XMLPatterns library %package devel Summary: Qt XML Patterns - development files Group: Qt/Qt Requires: %{name} = %{version}-%{release} %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 XMLPatterns library development files #### Build section %prep %setup -q -n qtxmlpatterns-opensource-src-%{_qtmodule_snapshot_version} # The original source assumes build happens within a monolithic tree. # The tool used is syncqt, which complains a lot but really only wants # to know where the mkspecs may be found. Hence the environment variable # name is a little misleading. # # XXX: FOR THE LOVE OF ALL THAT MAY BE HOLY - DO NOT USE RPMBUILD AND # ITS INTERNAL qmake MACRO. IT BREAKS THE BUILD! %build export QTDIR=/usr/share/qt5 qmake make %{?_smp_flags} %install rm -rf %{buildroot} %qmake_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/" {} \; # We don't need qt5/Qt/ rm -rf %{buildroot}/%{_includedir}/qt5/Qt # %fdupes %{buildroot}/%{_includedir} #### Pre/Post section %post -p /sbin/ldconfig %postun -p /sbin/ldconfig #### File section %files %defattr(-,root,root,-) %{_libdir}/libQt5XmlPatterns.so.5 %{_libdir}/libQt5XmlPatterns.so.5.* %{_bindir}/* %files devel %defattr(-,root,root,-) %{_libdir}/libQt5XmlPatterns.so %{_libdir}/libQt5XmlPatterns.prl %{_libdir}/pkgconfig/* %{_includedir}/qt5/ %{_datadir}/qt5/mkspecs/ %{_libdir}/cmake/ #### No changelog section, separate $pkg.changes contains the history