From 00cd92d239a42d748af7ad71d1f3a6c05f61b8c9 Mon Sep 17 00:00:00 2001 From: Alexander Ploumistos Date: Mon, 15 Jun 2020 02:12:09 +0200 Subject: [PATCH] Initial release in Fedora proper --- .gitignore | 1 + README.md | 2 +- qwt5-qt5.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 qwt5-qt5.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..271eb20 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qwt5-qt5-master.tar.gz diff --git a/README.md b/README.md index 95e3562..506e557 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # qwt5-qt5 -The qwt5-qt5 package \ No newline at end of file +This is a fork of Qwt-5.2.3, the last stable release of the 5.x branch, built with Qt5. The differences from the upstream release include bugfixes, some code modernization/standardization and some changes to its build automation to facilitate building with Qt5 and integration into Fedora. diff --git a/qwt5-qt5.spec b/qwt5-qt5.spec new file mode 100644 index 0000000..134ea74 --- /dev/null +++ b/qwt5-qt5.spec @@ -0,0 +1,99 @@ +# Forked from https://sourceforge.net/projects/qwt/files/qwt/5.2.3/ +# This was the last, almost unannounced maintenance release of the 5.x branch, +# see: https://sourceforge.net/p/qwt/mailman/message/30128542/ +# This fork contains several bugfixes and configuration file patches, to comply +# with distribution-specific system paths. + +%global commit0 eeacc4497738de159ca6f352d0c8ada353831b53 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) +%global commitdate 20190819 +%global owner gbm19 + +Name: qwt5-qt5 +Version: 5.2.3a +Release: 4.%{commitdate}git%{shortcommit0}%{?dist} +Summary: Qt Widgets for Technical Applications adapted to Qt5 + +License: LGPLv2+ with exceptions +URL: https://github.com/gbm19/qwt5-qt5 +Source: https://github.com/%{owner}/%{name}/archive/master/%{name}-master.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(Qt5Gui) pkgconfig(Qt5Widgets) pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Svg) pkgconfig(Qt5Designer) + +%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} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains qt5 libraries and header files for +developing applications that use %{name}. + +%package doc +Summary: Extra Developer documentation for %{name} +Requires: qt5-qtbase +BuildArch: noarch + +%description doc +%{summary} in HTML format. + + +%prep +%setup -qc -n %{name}-master + +pushd %{name}-master +# avoid conflicts with qwt5-qt4 man files +for f in doc/man/man3/*.3; do mv $f ${f/%.3/.qt5.3}; done + + +%build +pushd %{name}-master +%{qmake_qt5} +%make_build + + +%install +pushd %{name}-master +make install INSTALL_ROOT=%{buildroot} + +%ldconfig_scriptlets + + +%files +%license %{name}-master/COPYING +%doc %{name}-master/CHANGES +%doc %{name}-master/README +%{_qt5_libdir}/lib%{name}.so.* +%{?_qt5_plugindir}/designer/libqwt5_designer_plugin.so + +%files devel +%{_mandir}/man3/* +%{_qt5_headerdir}/%{name}/ +%{_qt5_libdir}/lib%{name}.so +%{_qt5_libdir}/pkgconfig/%{name}.pc + +%files doc +%dir %{_qt5_docdir}/html/ +%{_qt5_docdir}/html/%{name}/ + + +%changelog +* Sun Jun 14 2020 Alexander Ploumistos - 5.2.3a-4.20190819giteeacc44 +- fixes based on RHBZ#1844643 + +* Fri Jun 05 2020 Alexander Ploumistos - 5.2.3a-3.20190819giteeacc44 +- Spec file cleanup + +* Sat Feb 15 2020 Alexander Ploumistos - 5.2.3a-2.20190819giteeacc44 +- Minor bugfixes + +* Sat Sep 15 2018 Miquel Garriga https://github.com/gbm19 - 5.2.3a-1.20180916gitd071002 +- First version using Qt5 diff --git a/sources b/sources new file mode 100644 index 0000000..d28c8a4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qwt5-qt5-master.tar.gz) = 25bc1cb0085d3e83d41a364be991af0bac77f52af3d7c06182845cfab13c8a98c0420aca3afaaff26a9ddd31a63f1226a321308ffffc81f1f41799842e87fd89