From f679ff8606d632cfa17f6b316acdcf09a448aa98 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 14 Jan 2024 17:40:40 +0300 Subject: [PATCH] import qwt-6.1.5-5.el9 --- .gitignore | 1 + .qwt.metadata | 1 + SOURCES/qwt-6.1.1-pkgconfig.patch | 12 + SOURCES/qwt-6.1.3-no_rpath.patch | 12 + SOURCES/qwt-6.1.5-qt_install_paths.patch | 67 ++++ SOURCES/qwt-qt5.patch | 28 ++ SPECS/qwt.spec | 389 +++++++++++++++++++++++ 7 files changed, 510 insertions(+) create mode 100644 .gitignore create mode 100644 .qwt.metadata create mode 100644 SOURCES/qwt-6.1.1-pkgconfig.patch create mode 100644 SOURCES/qwt-6.1.3-no_rpath.patch create mode 100644 SOURCES/qwt-6.1.5-qt_install_paths.patch create mode 100644 SOURCES/qwt-qt5.patch create mode 100644 SPECS/qwt.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c26aec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/qwt-6.1.5.tar.bz2 diff --git a/.qwt.metadata b/.qwt.metadata new file mode 100644 index 0000000..b18c14e --- /dev/null +++ b/.qwt.metadata @@ -0,0 +1 @@ +07c71427f1f4bbd0354b3a98965943ce2f220766 SOURCES/qwt-6.1.5.tar.bz2 diff --git a/SOURCES/qwt-6.1.1-pkgconfig.patch b/SOURCES/qwt-6.1.1-pkgconfig.patch new file mode 100644 index 0000000..55f3e58 --- /dev/null +++ b/SOURCES/qwt-6.1.1-pkgconfig.patch @@ -0,0 +1,12 @@ +diff -rupN --no-dereference qwt-6.1.4/textengines/mathml/mathml.pro qwt-6.1.4-new/textengines/mathml/mathml.pro +--- qwt-6.1.4/textengines/mathml/mathml.pro 2019-01-02 17:21:31.504466243 +0100 ++++ qwt-6.1.4-new/textengines/mathml/mathml.pro 2020-01-06 17:17:19.695623736 +0100 +@@ -60,6 +60,8 @@ contains(QWT_CONFIG, QwtPkgConfig) { + + QMAKE_PKGCONFIG_LIBDIR = $${QWT_INSTALL_LIBS} + QMAKE_PKGCONFIG_INCDIR = $${QWT_INSTALL_HEADERS} ++ ++ QMAKE_PKGCONFIG_DESTDIR = pkgconfig + + # QMAKE_PKGCONFIG_DESTDIR is buggy, in combination + # with including pri files: better don't use it diff --git a/SOURCES/qwt-6.1.3-no_rpath.patch b/SOURCES/qwt-6.1.3-no_rpath.patch new file mode 100644 index 0000000..fa27de5 --- /dev/null +++ b/SOURCES/qwt-6.1.3-no_rpath.patch @@ -0,0 +1,12 @@ +diff -rupN --no-dereference qwt-6.1.4/designer/designer.pro qwt-6.1.4-new/designer/designer.pro +--- qwt-6.1.4/designer/designer.pro 2019-01-02 17:21:31.544467209 +0100 ++++ qwt-6.1.4-new/designer/designer.pro 2020-01-06 17:17:19.964623815 +0100 +@@ -98,7 +98,7 @@ contains(QWT_CONFIG, QwtDesigner) { + # compile the path for finding the Qwt library + # into the plugin. Not supported on Windows ! + +- QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS} ++ #QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS} + qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt) + + contains(QWT_CONFIG, QwtDll) { diff --git a/SOURCES/qwt-6.1.5-qt_install_paths.patch b/SOURCES/qwt-6.1.5-qt_install_paths.patch new file mode 100644 index 0000000..120c546 --- /dev/null +++ b/SOURCES/qwt-6.1.5-qt_install_paths.patch @@ -0,0 +1,67 @@ +diff -up qwt-6.1.5/qwtbuild.pri.qt_install_paths qwt-6.1.5/qwtbuild.pri +--- qwt-6.1.5/qwtbuild.pri.qt_install_paths 2020-07-13 13:22:57.829775189 -0500 ++++ qwt-6.1.5/qwtbuild.pri 2020-07-13 13:23:39.719159410 -0500 +@@ -14,7 +14,7 @@ + CONFIG += qt + CONFIG += warn_on + CONFIG += no_keywords +-CONFIG += silent ++#CONFIG += silent + + DEFINES += QT_NO_DEPRECATED_WARNINGS # not fixing those before Qwt 6.2 + +diff -up qwt-6.1.5/qwtconfig.pri.qt_install_paths qwt-6.1.5/qwtconfig.pri +--- qwt-6.1.5/qwtconfig.pri.qt_install_paths 2020-06-01 11:48:07.325112226 -0500 ++++ qwt-6.1.5/qwtconfig.pri 2020-07-13 13:22:57.831775207 -0500 +@@ -19,7 +19,7 @@ QWT_VERSION = $${QWT_VER_MAJ}.$${QW + QWT_INSTALL_PREFIX = $$[QT_INSTALL_PREFIX] + + unix { +- QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION ++ # QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION + # QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION-qt-$$QT_VERSION + } + +@@ -28,9 +28,9 @@ win32 { + # QWT_INSTALL_PREFIX = C:/Qwt-$$QWT_VERSION-qt-$$QT_VERSION + } + +-QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/doc +-QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include +-QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib ++QWT_INSTALL_DOCS = $$[QT_INSTALL_DOCS]/html ++QWT_INSTALL_HEADERS = $$[QT_INSTALL_HEADERS]/qwt ++QWT_INSTALL_LIBS = $$[QT_INSTALL_LIBS] + + ###################################################################### + # Designer plugin +@@ -42,7 +42,8 @@ QWT_INSTALL_LIBS = $${QWT_INSTALL_P + # runtime environment of designer/creator. + ###################################################################### + +-QWT_INSTALL_PLUGINS = $${QWT_INSTALL_PREFIX}/plugins/designer ++#QWT_INSTALL_PLUGINS = $${QWT_INSTALL_PREFIX}/plugins/designer ++QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PLUGINS]/designer + + # linux distributors often organize the Qt installation + # their way and QT_INSTALL_PREFIX doesn't offer a good +@@ -63,8 +64,8 @@ QWT_INSTALL_PLUGINS = $${QWT_INSTALL_P + # with every Qt upgrade. + ###################################################################### + +-QWT_INSTALL_FEATURES = $${QWT_INSTALL_PREFIX}/features +-# QWT_INSTALL_FEATURES = $$[QT_INSTALL_PREFIX]/features ++#QWT_INSTALL_FEATURES = $${QWT_INSTALL_PREFIX}/features ++QWT_INSTALL_FEATURES = $$[QMAKE_MKSPECS]/features + + ###################################################################### + # Build the static/shared libraries. +@@ -110,7 +111,7 @@ QWT_CONFIG += QwtOpenGL + # to your qmake project file. + ###################################################################### + +-#QWT_CONFIG += QwtMathML ++QWT_CONFIG += QwtMathML + + ###################################################################### + # If you want to build the Qwt designer plugin, diff --git a/SOURCES/qwt-qt5.patch b/SOURCES/qwt-qt5.patch new file mode 100644 index 0000000..e1328b5 --- /dev/null +++ b/SOURCES/qwt-qt5.patch @@ -0,0 +1,28 @@ +diff -rupN --no-dereference qwt-6.1.4/qwtfunctions.pri qwt-6.1.4-new/qwtfunctions.pri +--- qwt-6.1.4/qwtfunctions.pri 2019-01-02 17:21:31.552467404 +0100 ++++ qwt-6.1.4-new/qwtfunctions.pri 2020-01-06 17:17:19.882623791 +0100 +@@ -12,7 +12,12 @@ + defineReplace(qwtLibraryTarget) { + + unset(LIBRARY_NAME) ++ ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION} ++ } else { + LIBRARY_NAME = $$1 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { + +@@ -36,7 +41,11 @@ defineReplace(qwtLibraryTarget) { + defineTest(qwtAddLibrary) { + + LIB_PATH = $$1 ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIB_NAME = $${2}-qt$${QT_MAJOR_VERSION} ++ } else { + LIB_NAME = $$2 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { + diff --git a/SPECS/qwt.spec b/SPECS/qwt.spec new file mode 100644 index 0000000..6abc7d3 --- /dev/null +++ b/SPECS/qwt.spec @@ -0,0 +1,389 @@ +# trim changelog included in binary rpms +%global _changelog_trimtime %(date +%s -d "1 year ago") + +# build qt4 support (or not) +%if 0%{?rhel} < 8 +%global qt4 1 +%endif +# build qt5 support (or not) +%global qt5 1 + +Name: qwt +Summary: Qt Widgets for Technical Applications +Version: 6.1.5 +Release: 5%{?dist} + +License: LGPLv2 with exceptions +URL: http://qwt.sourceforge.net +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 + +## upstream patches + +## upstreamable patches +# fix pkgconfig support +Patch50: qwt-6.1.1-pkgconfig.patch +# use QT_INSTALL_ paths instead of custom prefix +Patch51: qwt-6.1.5-qt_install_paths.patch +# parallel-installable qt5 version +Patch52: qwt-qt5.patch +# +Patch53: qwt-6.1.3-no_rpath.patch + +BuildRequires: make +%if 0%{?qt5} +BuildRequires: pkgconfig(Qt5Concurrent) pkgconfig(Qt5PrintSupport) pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5OpenGL) pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Designer) +%endif +%if 0%{?qt4} +BuildRequires: pkgconfig(QtGui) pkgconfig(QtSvg) +BuildRequires: pkgconfig(QtDesigner) +%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}} +%endif + +# silly buildsys quirk +BuildConflicts: qwt-devel + + +Provides: qwt6 = %{version}-%{release} +Provides: qwt6%{_isa} = %{version}-%{release} + +%description +The Qwt library contains GUI Components and utility classes which are primarily +useful for programs with a technical background. +Besides a 2D plot widget it provides scales, sliders, dials, compasses, +thermometers, wheels and knobs to control or display values, arrays +or ranges of type double. + +%package devel +Summary: Development files for %{name} +Provides: qwt6-devel = %{version}-%{release} +Provides: qwt6-devel%{_isa} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +%{summary}. + +%package doc +Summary: Developer documentation for %{name} +BuildArch: noarch +%description doc +%{summary}. + +%if 0%{?qt5} +%package qt5 +Summary: Qt5 Widgets for Technical Applications +Provides: qwt6-qt5 = %{version}-%{release} +Provides: qwt6-qt5%{_isa} = %{version}-%{release} +%description qt5 +%{summary}. + +%package qt5-devel +Summary: Development files for %{name}-qt5 +Provides: qwt6-qt5-devel = %{version}-%{release} +Provides: qwt6-qt5-devel%{_isa} = %{version}-%{release} +Requires: %{name}-qt5%{?_isa} = %{version}-%{release} +%description qt5-devel +%{summary}. +%endif + + +%prep +%setup -q + +%patch50 -p1 -b .pkgconfig +%patch51 -p1 -b .qt_install_paths +%patch52 -p1 -b .qt5 +%patch53 -p1 -b .no_rpath + + +%build +%if 0%{?qt5} +mkdir %{_target_platform}-qt5 +pushd %{_target_platform}-qt5 +%{?qmake_qt5}%{?!qmake_qt5:%{_qt5_qmake}} QWT_CONFIG+=QwtPkgConfig .. + +%make_build +popd +%endif + +%if 0%{?qt4} +mkdir %{_target_platform} +pushd %{_target_platform} +%{qmake_qt4} QWT_CONFIG+=QwtPkgConfig .. + +%make_build +popd +%endif + + +%install +%if 0%{?qt5} +make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}-qt5 +%endif +%if 0%{?qt4} +make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} +%endif + +%if 0%{?qt4} +# fixup doc path bogosity +mv %{buildroot}%{_qt4_docdir}/html/html \ + %{buildroot}%{_qt4_docdir}/html/qwt + +mkdir -p %{buildroot}%{_mandir} +mv %{buildroot}%{_qt4_docdir}/html/man/man3 \ + %{buildroot}%{_mandir}/ + +%if 0%{?qt5} +# nuke qt5 docs, use copies from qt4 build instead +rm -rfv %{buildroot}%{_qt5_docdir}/html/* + +cp -alf %{buildroot}%{_qt4_docdir}/html/qwt/ \ + %{buildroot}%{_qt5_docdir}/html/qwt/ +%endif +%else +# fixup doc path bogosity +mv %{buildroot}%{_qt5_docdir}/html/html \ + %{buildroot}%{_qt5_docdir}/html/qwt + +mkdir -p %{buildroot}%{_mandir} +mv %{buildroot}%{_qt5_docdir}/html/man/man3 \ + %{buildroot}%{_mandir}/ +%endif + + +%if 0%{?qt4} +%ldconfig_scriptlets + +%files +%license COPYING +%doc README +%{_qt4_libdir}/libqwt.so.6* +# subpkg ? -- rex +%{_qt4_libdir}/libqwtmathml.so.6* + +%files devel +%{_qt4_headerdir}/qwt/ +%{_qt4_libdir}/libqwt.so +%{_qt4_libdir}/libqwtmathml.so +%{_qt4_libdir}/qt4/mkspecs/features/qwt* +%{_qt4_libdir}/pkgconfig/qwt.pc +%{_qt4_libdir}/pkgconfig/qwtmathml.pc +%endif + +%files doc +%if 0%{?qt4} +# own these to avoid needless dep on qt/qt-doc +%dir %{_qt4_docdir} +%dir %{_qt4_docdir}/html/ +%{_qt4_docdir}/html/qwt/ +%endif +%if 0%{?qt5} +%dir %{_qt5_docdir} +%dir %{_qt5_docdir}/html/ +%{_qt5_docdir}/html/qwt/ +%endif +%{_mandir}/man3/* + + +%if 0%{?qt5} +%ldconfig_scriptlets qt5 + +%files qt5 +%license COPYING +%doc README +%{_qt5_libdir}/libqwt-qt5.so.6* +%{_qt5_plugindir}/designer/libqwt_designer_plugin.so +%{_qt5_libdir}/libqwtmathml-qt5.so.6* + +%files qt5-devel +%{_qt5_headerdir}/qwt/ +%{_qt5_libdir}/libqwt-qt5.so +%{_qt5_libdir}/libqwtmathml-qt5.so +%{_qt5_archdatadir}/mkspecs/features/qwt* +%{_qt5_libdir}/pkgconfig/Qt5Qwt6.pc +%{_qt5_libdir}/pkgconfig/qwtmathml-qt5.pc +%endif + + +%changelog +* Sun Jan 14 2024 Arkady L. Shane - 6.1.5-5 +- Rebuilt for MSVSphere 9.3 + +* Fri Jul 23 2021 Fedora Release Engineering - 6.1.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 6.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 6.1.5-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 6.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 13 2020 Marie Loise Nolden - 6.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Jan 06 2020 Sandro Mani - 6.1.4-1 +- Update to 6.1.4 + +* Sat Nov 30 2019 Rex Dieter - 6.1.3-12 +- make qt4 conditional, no on el8+ (#1773581) + +* Fri Jul 26 2019 Fedora Release Engineering - 6.1.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 6.1.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 24 2018 Rex Dieter - 6.1.3-9 +- use %%_qt5_archdatadir/mkspecs + +* Sat Jul 14 2018 Fedora Release Engineering - 6.1.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Mar 07 2018 Rex Dieter - 6.1.3-7 +- use %%make_build %%license %%ldconfig_scriptlets + +* Fri Feb 09 2018 Fedora Release Engineering - 6.1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 6.1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 6.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Mar 09 2017 Rex Dieter - 6.1.3-3 +- changelog cosmetics (whitespace mostly) + +* Wed Mar 08 2017 Rex Dieter - 6.1.3-2 +- no_rpath.patch + +* Wed Mar 08 2017 Rex Dieter - 6.1.3-1 +- qwt-6.1.3 (#1430378) + +* Sat Feb 11 2017 Fedora Release Engineering - 6.1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 6.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 6.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 6.1.2-3 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Feb 19 2015 Rex Dieter - 6.1.2-2 +- rebuild (gcc5) + +* Fri Dec 12 2014 Rex Dieter 6.1.2-1 +- qwt-6.1.2 + +* Mon Dec 01 2014 Rex Dieter - 6.1.1-3 +- %%build: use %%qmake-qt? macro variant +- RFE: Qwt build for Qt5 (#1164515) + +* Tue Oct 28 2014 Rex Dieter 6.1.1-2 +- do out-of-src build (prep for qt5 build maybe coming someday) + +* Sat Sep 20 2014 Rex Dieter 6.1.1-1 +- qwt-6.1.1 + +* Sun Aug 17 2014 Fedora Release Engineering - 6.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 6.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Oct 29 2013 Rex Dieter - 6.1.0-1 +- qwt-6.1.0 +- QtDesigner plugin doesn't link to the proper header directory path (#824447) + +* Sun Aug 04 2013 Fedora Release Engineering - 6.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 6.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Nov 26 2012 Rex Dieter 6.0.1-2 +- qwtbuild.pri: drop CONFIG+=silent + +* Tue Aug 14 2012 Rex Dieter - 6.0.1-1 +- qwt-6.0.1 (#697168) +- add pkgconfig support + +* Fri Aug 03 2012 Rex Dieter 5.2.2-6 +- qwt*.pc : +Requires: QtGui QtSvg + +* Thu Aug 02 2012 Rex Dieter 5.2.2-5 +- pkgconfig support + +* Tue Jul 31 2012 Rex Dieter - 5.2.2-4 +- Provides: qwt5-qt4(-devel) +- pkgconfig-style deps + +- * Sat Jul 21 2012 Fedora Release Engineering - 5.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 5.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Aug 07 2011 Rex Dieter 5.2.2-1 +- 5.2.2 + +* Thu Jul 14 2011 Rex Dieter 5.2.1-3 +- .spec cosmetics +- use %%_qt4_ macros +- -doc subpkg here (instead of separately built) + +* Tue Feb 08 2011 Fedora Release Engineering - 5.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Apr 16 2010 Frank Büttner - 5.2.1-1 +- update to 5.2.1 + +* Fri Feb 05 2010 Frank Büttner - 5.2.0-1 +- fix wrong lib names + +* Fri Feb 05 2010 Frank Büttner - 5.2.0-0 +- update to 5.2.0 + +* Sun Jul 26 2009 Fedora Release Engineering - 5.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 5.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Jan 04 2009 Frank Büttner - 5.1.1-2 +- modify path patch + +* Sun Jan 04 2009 Frank Büttner - 5.1.1-1 +- update to 5.1.1 + +* Mon Feb 18 2008 Fedora Release Engineering - 5.0.2-6 +- Autorebuild for GCC 4.3 + +* Sat Sep 29 2007 Frank Büttner - 5.0.2-5 +- add EPEL support + +* Sat Sep 29 2007 Frank Büttner - 5.0.2-4 +- remove parallel build, because it will fail sometimes + +* Fri Sep 28 2007 Frank Büttner - 5.0.2-3 +- fix some errors in the spec file + +* Fri Jul 06 2007 Frank Büttner - 5.0.2-2 +- fix some errors in the spec file + +* Mon Jun 11 2007 Frank Büttner - 5.0.2-1 +- update to 5.0.2 +- split doc + +* Tue May 15 2007 Frank Büttner - 5.0.1-1 +- start