Luigi Baldoni
de5ebc1d63
- Fixes boo#1210931 - Add qwt6-rpmlintrc - Add _multibuild to support Qt6 - qwt-6.2.0-qt6-pkgconfig.patch OBS-URL: https://build.opensuse.org/request/show/1083518 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/qwt6?expand=0&rev=17
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
Index: qwt-6.2.0/src/src.pro
|
|
===================================================================
|
|
--- qwt-6.2.0.orig/src/src.pro
|
|
+++ qwt-6.2.0/src/src.pro
|
|
@@ -82,14 +82,31 @@ contains(QWT_CONFIG, QwtPkgConfig) {
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
QMAKE_PKGCONFIG_FILE = Qt$${QT_MAJOR_VERSION}$${QMAKE_PKGCONFIG_NAME}
|
|
- QMAKE_PKGCONFIG_REQUIRES = Qt5Widgets Qt5Concurrent Qt5PrintSupport
|
|
|
|
- contains(QWT_CONFIG, QwtSvg) {
|
|
- QMAKE_PKGCONFIG_REQUIRES += Qt5Svg
|
|
+ isEqual(QT_MAJOR_VERSION, 5) {
|
|
+
|
|
+ QMAKE_PKGCONFIG_REQUIRES = Qt5Widgets Qt5Concurrent Qt5PrintSupport
|
|
+
|
|
+ contains(QWT_CONFIG, QwtSvg) {
|
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt5Svg
|
|
+ }
|
|
+
|
|
+ contains(QWT_CONFIG, QwtOpenGL) {
|
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt5OpenGL
|
|
+ }
|
|
}
|
|
|
|
- contains(QWT_CONFIG, QwtOpenGL) {
|
|
- QMAKE_PKGCONFIG_REQUIRES += Qt5OpenGL
|
|
+ isEqual(QT_MAJOR_VERSION, 6) {
|
|
+
|
|
+ QMAKE_PKGCONFIG_REQUIRES = Qt6Widgets Qt6Concurrent Qt6PrintSupport
|
|
+
|
|
+ contains(QWT_CONFIG, QwtSvg) {
|
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt6Svg
|
|
+ }
|
|
+
|
|
+ contains(QWT_CONFIG, QwtOpenGL) {
|
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt6OpenGL
|
|
+ }
|
|
}
|
|
|
|
QMAKE_DISTCLEAN += $${DESTDIR}/$${QMAKE_PKGCONFIG_DESTDIR}/$${QMAKE_PKGCONFIG_FILE}.pc
|