Luigi Baldoni
7c2ebcc488
- Update to version 6.1.4 * All widgets ( including plot canvas ) + missing initialization of the background color hint, when drawing a styled focus rectangle + devicePixelRatio handling adjusted, QT_SCALE_FACTOR supported * Maintenance + deprecated QString::null replaced by QString() + making clang-tidy/clazy and friends happier + compiler warnings with newer Qt versions fixed * PyQt-Qwt + specific defines added * QwtPointMapper + being multithreaded when possible * QwtPlotRenderer + using QPdfWriter instead of QPrinter, when possible * Build system + auto-disable building the designer plugin, when the corresponding Qt installation was not build with designer support * Bug fixes + font resolving when using widget fonts for rendering to a different paint device. + QwtPlotDirectPainter::CopyBackingStore: bad offset ( subtracting the canvas frame ), when flushing the updated backing store fixed + QwtAbstractSlider::stepAlignment fixed, when the value is exactly the upperBound, but no tick position + Missing right/bottom pixel added for QwtColumnSymbol::NoFrame + QwtWeedingCurveFitter::fitCurve fixed when being called with no points + missing updates added for QwtLegend::setMaxColumns, QwtScaleWidget::setLayoutFlag + QwtPlotCurve::drawSteps: polygon clipping fixed by adding an extra pixel to the clip rectangle + QwtPlotItem::ScaleInterest enabled for all constructors of QwtPlotSeriesItem + QwtPlotMarker::boundingRect fixed for HLine/VLine + QwtPlotIntervalCurve/QwtPlotTradingCurve::boundingRect fixed - Refreshed qwt-6.1.3-mkspecs.patch as qwt-6.1.4-mkspecs.patch - Update to version 6.1.4 * All widgets ( including plot canvas ) + missing initialization of the background color hint, when drawing a styled focus rectangle + devicePixelRatio handling adjusted, QT_SCALE_FACTOR supported * Maintenance + deprecated QString::null replaced by QString() + making clang-tidy/clazy and friends happier + compiler warnings with newer Qt versions fixed * PyQt-Qwt + specific defines added * QwtPointMapper + being multithreaded when possible * QwtPlotRenderer + using QPdfWriter instead of QPrinter, when possible * Build system + auto-disable building the designer plugin, when the corresponding Qt installation was not build with designer support * Bug fixes + font resolving when using widget fonts for rendering to a different paint device. + QwtPlotDirectPainter::CopyBackingStore: bad offset ( subtracting the canvas frame ), when flushing the updated backing store fixed + QwtAbstractSlider::stepAlignment fixed, when the value is exactly the upperBound, but no tick position + Missing right/bottom pixel added for QwtColumnSymbol::NoFrame + QwtWeedingCurveFitter::fitCurve fixed when being called with no points + missing updates added for QwtLegend::setMaxColumns, QwtScaleWidget::setLayoutFlag + QwtPlotCurve::drawSteps: polygon clipping fixed by adding an extra pixel to the clip rectangle + QwtPlotItem::ScaleInterest enabled for all constructors of QwtPlotSeriesItem + QwtPlotMarker::boundingRect fixed for HLine/VLine + QwtPlotIntervalCurve/QwtPlotTradingCurve::boundingRect fixed - Refreshed qwt-6.1.3-mkspecs.patch as qwt-6.1.4-mkspecs.patch - Dropped designer subpackage OBS-URL: https://build.opensuse.org/request/show/695925 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/qwt6?expand=0&rev=5
165 lines
4.8 KiB
RPMSpec
165 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package qwt6
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 6
|
|
Name: qwt6
|
|
Version: 6.1.4
|
|
Release: 0
|
|
Summary: Qt Widgets for Technical Applications
|
|
License: SUSE-QWT-1.0
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://qwt.sourceforge.net/
|
|
Source: https://sourceforge.net/projects/qwt/files/qwt/%{version}/qwt-%{version}.tar.bz2
|
|
# PATCH-FIX-OPENSUSE to prevent 'ERROR: RPATH "/usr/local/qwt-6.1.0/lib" on
|
|
# /usr/lib(64)/qt4/plugins/designer/libqwt_designer_plugin.so is not allowed'.
|
|
Patch0: qwt-6.1.3-rpath.patch
|
|
# PATCH-FIX-OPENSUSE pkgconfig.patch -- Create and install pc files for pkg-config
|
|
Patch1: qwt-6.1.3-pkgconfig.patch
|
|
# PATCH-FIX-OPENSUSE mkspecs.patch -- Use established settings for the .pc files
|
|
Patch2: qwt-6.1.4-mkspecs.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: freetype2-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: qt-devel
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
%description
|
|
The Qwt(Qt4) library contains GUI Components and utility classes which are
|
|
primarily useful for programs with a technical background. Beside 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 -n libqwt%{sover}
|
|
Summary: Shared library for Qt4 Widgets
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libqwt%{sover}
|
|
This package contains the shared library to run Technical Applications
|
|
developed with/for Qwt(Qt4).
|
|
|
|
%package devel
|
|
Summary: Include headers for Qwt
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: freetype2-devel
|
|
Requires: gcc-c++
|
|
Requires: qt-devel
|
|
Requires: pkgconfig(libpng)
|
|
Conflicts: qwt-devel
|
|
%if 0%{?suse_version}
|
|
Recommends: %{name}-devel-doc
|
|
Recommends: %{name}-examples
|
|
%endif
|
|
|
|
%description devel
|
|
This package contains the header files of Qwt and its Qt designer plugin
|
|
in order to create Qt applications using the Qwt(qt4) widgets.
|
|
|
|
%package examples
|
|
Summary: Example programs using Qwt
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description examples
|
|
This package contains example programs demonstrating the Qwt widgets.
|
|
|
|
%package devel-doc
|
|
Summary: Development documentation for Qwt(Qt4)
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description devel-doc
|
|
This package contains the development documentation of the Qwt widgets
|
|
as is it created by doxygen.
|
|
|
|
%prep
|
|
%setup -q -n qwt-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
# remove leftovers
|
|
rm -f doc/man/man3/_tmp_qwt*
|
|
# rename manpages
|
|
for f in doc/man/man3/*; do
|
|
qwt6name=$(echo $(basename ${f} .3)|sed \
|
|
'/^Qwt/{s/Qwt/Qwt6/;be;}; /^qwt/{s/qwt/qwt6/;be;}; s/$/_qwt6/; :e;')
|
|
mv -v ${f} doc/man/man3/${qwt6name}.3
|
|
done
|
|
|
|
%build
|
|
mkdir build
|
|
pushd build
|
|
qmake .. \
|
|
QMAKE_STRIP="" \
|
|
QMAKE_CXXFLAGS="%{optflags}"
|
|
|
|
make V=1 %{?_smp_mflags}
|
|
popd
|
|
|
|
%install
|
|
pushd build
|
|
make V=1 DESTDIR=%{buildroot} install INSTALL_ROOT=%{buildroot}
|
|
popd
|
|
|
|
# Qwt base examples
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
mkdir -p %{buildroot}%{_docdir}/libqt4/%{name}
|
|
cp -r examples %{buildroot}%{_docdir}/libqt4/%{name}/examples
|
|
cp -r build/examples/bin %{buildroot}%{_libdir}/%{name}/examples
|
|
|
|
mkdir -p %{buildroot}%{_mandir}
|
|
mv %{buildroot}%{_docdir}/libqt4/qwt6/man/man3 \
|
|
%{buildroot}%{_mandir}/
|
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
%post -n libqwt%{sover} -p /sbin/ldconfig
|
|
%postun -n libqwt%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libqwt%{sover}
|
|
%if 0%{?sle_version} != 120200
|
|
%license COPYING
|
|
%else
|
|
%doc COPYING
|
|
%endif
|
|
%{_libdir}/libqwt.so.*
|
|
|
|
%files devel
|
|
%doc README
|
|
%{_libdir}/libqwt.so
|
|
%{_libdir}/pkgconfig/qwt.pc
|
|
%dir %{_includedir}/%{name}
|
|
%{_includedir}/%{name}/*.h
|
|
%{_datadir}/qt4/mkspecs/features/
|
|
%{_mandir}/man?/*.?%{ext_info}
|
|
|
|
%files examples
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_libdir}/%{name}/examples
|
|
%{_libdir}/%{name}/examples/
|
|
|
|
%files devel-doc
|
|
%dir %{_docdir}/libqt4/%{name}
|
|
%doc %{_docdir}/libqt4/%{name}/
|
|
|
|
%changelog
|