Qt package

This commit is contained in:
Ximi1970
2020-06-01 16:24:34 +02:00
parent 3f8043e184
commit 1eeb17d0c6
14 changed files with 323 additions and 0 deletions

View File

@@ -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 <ximi.obs@gmail.com>
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

View File

@@ -0,0 +1,10 @@
Format: 3.0 (quilt)
Source: libqt5-opensource-5.14.2-minimal
Binary: libqt5-opensource-5.14.2-minimal
Architecture: any
Version: 5.14.2-1
Maintainer: Maxime Rijnders <ximi.obs@gmail.com>
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

Binary file not shown.

11
dist/rpm/qt/_constraints vendored Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<constraints>
<hardware>
<disk>
<size unit="G">12</size>
</disk>
<memory>
<size unit="M">5000</size>
</memory>
</hardware>
</constraints>

3
dist/rpm/qt/_multibuild vendored Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>libqt5-opensource-5.14.2-minimal-static</package>
</multibuild>

32
dist/rpm/qt/_service vendored Normal file
View File

@@ -0,0 +1,32 @@
<services>
<service name="obs_scm">
<param name="url">https://github.com/Ximi1970/systray-x.git</param>
<param name="scm">git</param>
<param name="revision">feature-static</param>
<param name="versionformat">0~git%cd.%h</param>
<param name="extract">dist/rpm/qt/_constraints</param>
<param name="extract">dist/rpm/qt/_multibuild</param>
<param name="extract">dist/rpm/qt/libqt5-opensource-5.14.2-minimal.spec</param>
<param name="extract">dist/rpm/qt/libqt5-opensource-5.14.2-minimal.changes</param>
<param name="extract">dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.spec</param>
<param name="extract">dist/rpm/qt/libqt5-opensource-5.14.2-minimal-static.changes</param>
<param name="extract">dist/rpm/qt/qt-everywhere-src-5.14.2-fedora_shebang.diff</param>
<param name="extract">dist/rpm/qt/qt-everywhere-src-5.14.2-shebang.diff</param>
<param name="extract">dist/rpm/qt/rpmlintrc</param>
<param name="extract">dist/deb/qt/libqt5-opensource-5.14.2-minimal.dsc</param>
<param name="extract">dist/deb/qt/libqt5-opensource-5.14.2-minimal-static.dsc</param>
<param name="extract">dist/deb/qt/libqt5-opensource-5.14.2-minimal_5.14.2-1.debian.tar.xz</param>
<param name="extract">dist/deb/qt/libqt5-opensource-5.14.2-minimal-static_5.14.2-1.debian.tar.xz</param>
</service>
<service name="download_url">
<param name="protocol">https</param>
<param name="host">download.qt.io</param>
<param name="path">archive/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="buildtime" name="set_version" />
</services>

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon May 25 21:22:00 UTC 2017 - ximi.obs@gmail.com
- Initial packaging

View File

@@ -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

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon May 25 21:22:00 UTC 2017 - ximi.obs@gmail.com
- Initial packaging

View File

@@ -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

View File

@@ -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
#############################################################################
##

View File

@@ -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.

2
dist/rpm/qt/rpmlintrc vendored Normal file
View File

@@ -0,0 +1,2 @@
addFilter("devel-file-in-non-devel-package .*")
addFilter("shlib-policy-name-error .*")