From 1eeb17d0c6f0401e9dabb16de8c836557d49e2f3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Jun 2020 16:24:34 +0200 Subject: [PATCH] Qt package --- ...ibqt5-opensource-5.14.2-minimal-static.dsc | 10 ++ ...14.2-minimal-static_5.14.2-1.debian.tar.xz | Bin 0 -> 2084 bytes .../qt/libqt5-opensource-5.14.2-minimal.dsc | 10 ++ ...urce-5.14.2-minimal_5.14.2-1.debian.tar.xz | Bin 0 -> 2076 bytes dist/rpm/qt/_constraints | 11 ++ dist/rpm/qt/_multibuild | 3 + dist/rpm/qt/_service | 32 ++++++ ...5-opensource-5.14.2-minimal-static.changes | 4 + ...bqt5-opensource-5.14.2-minimal-static.spec | 101 ++++++++++++++++++ .../libqt5-opensource-5.14.2-minimal.changes | 4 + .../qt/libqt5-opensource-5.14.2-minimal.spec | 101 ++++++++++++++++++ ...-everywhere-src-5.14.2-fedora_shebang.diff | 27 +++++ .../qt/qt-everywhere-src-5.14.2-shebang.diff | 18 ++++ dist/rpm/qt/rpmlintrc | 2 + 14 files changed, 323 insertions(+) create mode 100644 dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc create mode 100644 dist/deb/qt/libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz create mode 100644 dist/deb/qt/libqt5-opensource-5.14.2-minimal.dsc create mode 100644 dist/deb/qt/libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz create mode 100644 dist/rpm/qt/_constraints create mode 100644 dist/rpm/qt/_multibuild create mode 100644 dist/rpm/qt/_service create mode 100644 dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes create mode 100644 dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec create mode 100644 dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes create mode 100644 dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec create mode 100644 dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff create mode 100644 dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff create mode 100644 dist/rpm/qt/rpmlintrc diff --git a/dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc b/dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc new file mode 100644 index 0000000..0f1436c --- /dev/null +++ b/dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc @@ -0,0 +1,10 @@ +Format: 3.0 (quilt) +Source: libqt5-opensource-5.14.2-minimal-static +Binary: libqt5-opensource-5.14.2-minimal-static +Architecture: any +Version: 5.14.2-1 +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), libfontconfig1-dev, libfreetype6-dev, libssl-dev, libx11-dev, libxcb1-dev, libx11-xcb-dev, libxcb-xkb-dev, libxkbcommon-dev, libxkbcommon-x11-dev, libxcursor-dev +Files: + b3d2b6d00e6ca8a8ede6d1c9bdc74daf 549205340 libqt5-opensource-5.14.2-minimal-static_5.14.2.orig.tar.xz + d08c8e2867f1e4e30662261f9f61402a 2084 libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz diff --git a/dist/deb/qt/libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz b/dist/deb/qt/libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..c3d314f5ef9df9801c6d33228f9833058c83b51c GIT binary patch literal 2084 zcmV+<2;2AlH+ooF000E$*0e?f03iVu0001VFXf})PyYwxT>uvg#)pzxJExDwB@Va` zw3Qv_Kg;dDBAfxb`W@XqU5&P^YbM%Bo(iA7JiH`h{gYcKTH2+f3LS zqJK`J5bnFV(%3yHoN%U6i>+l%%J(eP?WEe#@l&-^vMDU=T_CNhiEnx!hi`6+K>wo^ zmrHWAi4Pfv;!ZY^NTSfX@vlBsVIwVb@{2cQ7Ud|o$py^uGLy z&_@ekNSw(9+(;cn>Fn=@0;mf%bEI<;(hgn<*$M@mO0*r@DDPCNkye-=Z;T^o?^?$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I1-T_$K^T}I^tg`u-0-Eo@HZwpO1+3a>+)`71 zfvv^o4qxYbae-eXJMZG8F-RTUyh^A^k3_(9DEMK<@ts)dzW#L!$ zBo)4v4U&)Vc=_GXiyidHmlRtdwgjXN87FCODd~BPz3nH06Q+h;`PJM-xUxkPq%{L? z^cA<8#6zxPOgzBye{-3^&SnJdJ`T_Avd7I}&0C%f$e)IT{jEz>bolJKV21w;6k{Od zuiGBrbhgKz2xy>pbcyf}vE;Odn#@O441ES5@!!e0!Nb7;emgox+zgipM3`wfJi6#P zINcKim_Ee;wrl|f=jD2b-8)d^QO*2WUHcGmtsC8JVMYl$P>*!f3Cmm)jh@L&ahC-a z$ar2yQ4(4#bC-x2`>xt>O^oJ +Build-Depends: debhelper (>= 4.1.16), libfontconfig1-dev, libfreetype6-dev, libssl-dev, libx11-dev, libxcb1-dev, libx11-xcb-dev, libxcb-xkb-dev, libxkbcommon-dev, libxkbcommon-x11-dev, libxcursor-dev +Files: + b3d2b6d00e6ca8a8ede6d1c9bdc74daf 549205340 libqt5-opensource-5.14.2-minimal_5.14.2.orig.tar.xz + ec525ca0bb568caa6674d68dd318b362 2076 libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz diff --git a/dist/deb/qt/libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz b/dist/deb/qt/libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..5bad256d38a90ce66242decfaddeb14bb5cec790 GIT binary patch literal 2076 zcmV+%2;=wtH+ooF000E$*0e?f03iVu0001VFXf})PyYwmT>uvg#)pzxJExDwB@Va` zwWt0rxj}^Qw%Bd4k%Eq3OhdEL5VSbJrMI&}DAM~?0nfU?w~iPYoNfAwLo@91$dl_v zqd@kPtss1xynG{_h=0CzU-U`-wkJSb8W2(^NEXAjVx(ec|I%YknZgYbie;>E_M5nf znH)#V1NUJ-@}LBS@_45s;t?7RtGI%zXi7da)JE;#Wlyzpi*dD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Ls`PH)1C!;*P4<75YyYvVw`vzW~ALLg5Bpxg7RTLaE(p?cT0Q?(?%H#){8st2JOj(^|btGiA{ak zww+g3(mz1-O9%W?MJlG=!~9KK$XMr51LyBcBQJ!zxclsU@dFP=ZeonaXOVGc$-OIW zW=?A7->Yb6tS$BnD@+(44l+MG*n_}6di+ekA0xsjUbHKPjieu*D*0jXd@dfZKI8`o zn#lb{(Rz1KlX;J8Rw0ai!^K49iPqH(Xdh+5=|I25N@rNb39Y_`Mibi`ku27g{RYa@ zv|GHGD6iGLGIwI+Qtg~3G8vd(rXuurEPiJxOpSmEVx|yV*lV#ffA}PmK_y zdvp+JG)>LpMr$F6>cr= zDZ9V$AKyl|R(%U$+(EBGxd^1}GYG4XV9P_~1Prd`Gl%+6)6FBT58CldB8ZqE;P}ea zX6kgP>{|L?MIFJEfio_Kl!t#x-P}|y!xoq>GrR)si+f~VFnM_8iP}7cwHvRH_Wr|O z*4P!t*iYk+}(1wAWfnVBHj1vL2W@98pEy4d$_l3nwEPZ zGJp7|sD|D`>(MizWS+#rwBJFP%!LLYxO*Yz*r=90l4HcW + + + + 12 + + + 5000 + + + diff --git a/dist/rpm/qt/_multibuild b/dist/rpm/qt/_multibuild new file mode 100644 index 0000000..939ab02 --- /dev/null +++ b/dist/rpm/qt/_multibuild @@ -0,0 +1,3 @@ + + libqt5-opensource-5.14.2-minimal-static + diff --git a/dist/rpm/qt/_service b/dist/rpm/qt/_service new file mode 100644 index 0000000..fa8e975 --- /dev/null +++ b/dist/rpm/qt/_service @@ -0,0 +1,32 @@ + + + https://github.com/Ximi1970/systray-x.git + git + feature-static + 0~git%cd.%h + dist/rpm/qt/_constraints + dist/rpm/qt/_multibuild + dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec + dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes + dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec + dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes + dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff + dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff + dist/rpm/qt/rpmlintrc + dist/deb/qt/libqt5-opensource-5.14.2-minimal.dsc + dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc + dist/deb/qt/libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz + dist/deb/qt/libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz + + + https + download.qt.io + archive/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz + + + + *.tar + xz + + + diff --git a/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes new file mode 100644 index 0000000..e08d973 --- /dev/null +++ b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon May 25 21:22:00 UTC 2017 - ximi.obs@gmail.com + +- Initial packaging diff --git a/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec new file mode 100644 index 0000000..f2eb2d8 --- /dev/null +++ b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec @@ -0,0 +1,101 @@ +# +# spec file for package libqt5-opensource-xxx-minimal-static +# +%define license_type opensource +%define package_version %{nil} + + +Version: 5.14.2 +Name: libqt5-%{license_type}-%{version}-minimal-static + +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: fdupes + +BuildRequires: fontconfig-devel +%if 0%{?fedora_version} +BuildRequires: freetype-devel +BuildRequires: openssl-devel +%else +BuildRequires: freetype2-devel +BuildRequires: libopenssl-1_0_0-devel +%endif + +BuildRequires: libxcb-devel +BuildRequires: libxkbcommon-x11-devel + +BuildRequires: libX11-devel +BuildRequires: libXcursor-devel +#BuildRequires: -post-build-checks + +Url: http://qt-project.org/ +Summary: Qt is a cross-platform application and UI framework +License: GPL-2.0 or GPL-3.0 or LGPL-2.1 or LGPL-3.0 or GFDL-1.3 +Group: System/Libraries +Release: 0 +Source: qt-everywhere-src-%{version}%{package_version}.tar.xz +# to get mtime of file: +Source1: %{name}.changes +#Patch0: qt-everywhere-src-%{version}.diff +Patch10: qt-everywhere-src-%{version}-shebang.diff +%if 0%{?fedora_version} +Patch100: qt-everywhere-src-%{version}-fedora_shebang.diff +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Prefix: /usr + + +%define common_options -%{license_type} -confirm-license -prefix %{prefix}/Qt-%{license_type}-%{version}-static -libdir %{prefix}/Qt-%{license_type}-%{version}-static/%{_libdir} -no-rpath +%define lib_options -static -fontconfig -sql-sqlite -no-sql-odbc -system-freetype -qt-zlib -qt-libpng -qt-libjpeg -openssl-linked -qt-xcb +%define special_options -verbose +%define x11_options %{nil} +%define disable_options -no-compile-examples -nomake tests -nomake examples -no-opengl -no-feature-concurrent -no-feature-xml -no-feature-testlib -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtsvg -skip qtspeech -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -skip qtwebengine + + +%description +Qt is a cross-platform application and UI framework. + +This packages contains the full toolkit. + + +%prep +%setup -q -n qt-everywhere-src-%{version} +#patch0 -p1 +%patch10 -p1 +# +%if 0%{?fedora_version} +%patch100 -p1 +%endif + + +%build +./configure %common_options %lib_options %special_options %x11_options %disable_options +make %{?jobs:-j %jobs} + + +%install +make INSTALL_ROOT=$RPM_BUILD_ROOT install + +find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*la' -print -exec perl -pi -e 's,-L%{_builddir}/\S+,,g' {} \; +find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=%_bindir/moc," -e "s,uic_location=.*,uic_location=%_bindir/uic," {} \; + +%fdupes $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,755) +%doc README LICENSE.* +%{prefix}/Qt-%{license_type}-%{version}-static + + +%changelog diff --git a/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes new file mode 100644 index 0000000..e08d973 --- /dev/null +++ b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon May 25 21:22:00 UTC 2017 - ximi.obs@gmail.com + +- Initial packaging diff --git a/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec new file mode 100644 index 0000000..bf5052f --- /dev/null +++ b/dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec @@ -0,0 +1,101 @@ +# +# spec file for package libqt5-opensource-xxx-minimal +# +%define license_type opensource +%define package_version %{nil} + + +Version: 5.14.2 +Name: libqt5-%{license_type}-%{version}-minimal + +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: fdupes + +BuildRequires: fontconfig-devel +%if 0%{?fedora_version} +BuildRequires: freetype-devel +BuildRequires: openssl-devel +%else +BuildRequires: freetype2-devel +BuildRequires: libopenssl-1_0_0-devel +%endif + +BuildRequires: libxcb-devel +BuildRequires: libxkbcommon-x11-devel + +BuildRequires: libX11-devel +BuildRequires: libXcursor-devel +#BuildRequires: -post-build-checks + +Url: http://qt-project.org/ +Summary: Qt is a cross-platform application and UI framework +License: GPL-2.0 or GPL-3.0 or LGPL-2.1 or LGPL-3.0 or GFDL-1.3 +Group: System/Libraries +Release: 0 +Source: qt-everywhere-src-%{version}%{package_version}.tar.xz +# to get mtime of file: +Source1: %{name}.changes +#Patch0: qt-everywhere-src-%{version}.diff +Patch10: qt-everywhere-src-%{version}-shebang.diff +%if 0%{?fedora_version} +Patch100: qt-everywhere-src-%{version}-fedora_shebang.diff +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Prefix: /usr + + +%define common_options -%{license_type} -confirm-license -prefix %{prefix}/Qt-%{license_type}-%{version}-static -libdir %{prefix}/Qt-%{license_type}-%{version}-static/%{_libdir} -no-rpath +%define lib_options -fontconfig -sql-sqlite -no-sql-odbc -system-freetype -qt-zlib -qt-libpng -qt-libjpeg -openssl-linked -qt-xcb +%define special_options -verbose +%define x11_options %{nil} +%define disable_options -no-compile-examples -nomake tests -nomake examples -no-opengl -no-feature-concurrent -no-feature-xml -no-feature-testlib -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtsvg -skip qtspeech -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -skip qtwebengine + + +%description +Qt is a cross-platform application and UI framework. + +This packages contains the full toolkit. + + +%prep +%setup -q -n qt-everywhere-src-%{version} +#patch0 -p1 +%patch10 -p1 +# +%if 0%{?fedora_version} +%patch100 -p1 +%endif + + +%build +./configure %common_options %lib_options %special_options %x11_options %disable_options +make %{?jobs:-j %jobs} + + +%install +make INSTALL_ROOT=$RPM_BUILD_ROOT install + +find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*la' -print -exec perl -pi -e 's,-L%{_builddir}/\S+,,g' {} \; +find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=%_bindir/moc," -e "s,uic_location=.*,uic_location=%_bindir/uic," {} \; + +%fdupes $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,755) +%doc README LICENSE.* +%{prefix}/Qt-%{license_type}-%{version}-static + + +%changelog diff --git a/dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff b/dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff new file mode 100644 index 0000000..841c0c3 --- /dev/null +++ b/dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff @@ -0,0 +1,27 @@ +diff -urN qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/data/mac/objc_namespace.sh qt-everywhere-src-5.14.2/qtbase/mkspecs/features/data/mac/objc_namespace.sh +--- qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/data/mac/objc_namespace.sh 2020-03-27 10:49:31.000000000 +0100 ++++ qt-everywhere-src-5.14.2/qtbase/mkspecs/features/data/mac/objc_namespace.sh 2020-05-31 12:11:40.399393824 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/bash + + ############################################################################# + ## +diff -urN qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/uikit/device_destinations.sh qt-everywhere-src-5.14.2/qtbase/mkspecs/features/uikit/device_destinations.sh +--- qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/uikit/device_destinations.sh 2020-03-27 10:49:31.000000000 +0100 ++++ qt-everywhere-src-5.14.2/qtbase/mkspecs/features/uikit/device_destinations.sh 2020-05-31 12:10:58.719661513 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/bash + + ############################################################################# + ## +diff -urN qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/uikit/devices.py qt-everywhere-src-5.14.2/qtbase/mkspecs/features/uikit/devices.py +--- qt-everywhere-src-5.14.2.orig/qtbase/mkspecs/features/uikit/devices.py 2020-03-27 10:49:31.000000000 +0100 ++++ qt-everywhere-src-5.14.2/qtbase/mkspecs/features/uikit/devices.py 2020-05-31 12:09:44.742136970 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + ############################################################################# + ## diff --git a/dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff b/dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff new file mode 100644 index 0000000..8bbc807 --- /dev/null +++ b/dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff @@ -0,0 +1,18 @@ +diff -urN qt-everywhere-src-5.14.2.orig/qtbase/bin/fixqt4headers.pl qt-everywhere-src-5.14.2/qtbase/bin/fixqt4headers.pl +--- qt-everywhere-src-5.14.2.orig/qtbase/bin/fixqt4headers.pl 2020-03-27 10:49:31.000000000 +0100 ++++ qt-everywhere-src-5.14.2/qtbase/bin/fixqt4headers.pl 2020-05-31 12:12:53.325925775 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + ############################################################################# + ## + ## Copyright (C) 2016 The Qt Company Ltd. +diff -urN qt-everywhere-src-5.14.2.orig/qtbase/bin/syncqt.pl qt-everywhere-src-5.14.2/qtbase/bin/syncqt.pl +--- qt-everywhere-src-5.14.2.orig/qtbase/bin/syncqt.pl 2020-03-27 10:49:31.000000000 +0100 ++++ qt-everywhere-src-5.14.2/qtbase/bin/syncqt.pl 2020-05-31 12:12:27.715090101 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + ############################################################################# + ## + ## Copyright (C) 2016 The Qt Company Ltd. diff --git a/dist/rpm/qt/rpmlintrc b/dist/rpm/qt/rpmlintrc new file mode 100644 index 0000000..9583d74 --- /dev/null +++ b/dist/rpm/qt/rpmlintrc @@ -0,0 +1,2 @@ +addFilter("devel-file-in-non-devel-package .*") +addFilter("shlib-policy-name-error .*")