# trim changelog included in binary rpms %global _changelog_trimtime %(date +%s -d "1 year ago") Name: qwt-qt5 Summary: Qt Widgets for Technical Applications Version: 6.1.1 Release: 3%{?dist} License: LGPLv2 with exceptions URL: http://qwt.sourceforge.net Source: http://downloads.sourceforge.net/qwt/qwt-%{version}.tar.bz2 ## upstreamable patches # fix pkgconfig support Patch50: qwt-6.1.1-pkgconfig.patch # use QT_INSTALL_ paths instead of custom prefix Patch51: qwt-6.1.0-qt_install_paths.patch BuildRequires: pkgconfig(QtGui) pkgconfig(QtSvg) %{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}} BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qttools-devel Provides: qwt-qt5 = %{version}-%{release} Provides: qwt-qt5%{_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: qwt-qt5-devel = %{version}-%{release} Provides: qwt-qt5-devel%{_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %package doc Summary: Developer documentation for %{name} BuildArch: noarch %description doc %{summary}. %prep %setup -q -n qwt-%{version} %patch50 -p1 -b .pkgconfig %patch51 -p1 -b .qt_install_paths %build mkdir %{_target_platform} pushd %{_target_platform} %{?_qt5_qmake} QWT_CONFIG+=QwtPkgConfig .. make %{?_smp_mflags} popd %install make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} # Hacks for parallel-installability with qwt for Qt4 mv %{buildroot}%{_qt5_libdir}/libqwt.so \ %{buildroot}%{_qt5_libdir}/libqwt-qt5.so sed -i -e 's|-lqwt|-lqwt-qt5|g' %{buildroot}%{_qt5_libdir}/pkgconfig/Qt5Qwt6.pc mv %{buildroot}%{_qt5_libdir}/libqwtmathml.so \ %{buildroot}%{_qt5_libdir}/libqwtmathml-qt5.so mv %{buildroot}%{_qt5_libdir}/pkgconfig/qwtmathml.pc \ %{buildroot}%{_qt5_libdir}/pkgconfig/qwtmathml-qt5.pc sed -i -e 's|-lqwtmathml|-lqwtmathml-qt5|g' %{buildroot}%{_qt5_libdir}/pkgconfig/qwtmathml-qt5.pc # 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}/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING %doc README %{_qt5_libdir}/libqwt.so.6* %{?_qt5_plugindir}/designer/libqwt_designer_plugin.so # subpkg ? -- rex %{_qt5_libdir}/libqwtmathml.so.6* %files devel %{_qt5_headerdir}/qwt/ %{_qt5_libdir}/libqwt-qt5.so %{_qt5_libdir}/libqwtmathml-qt5.so %{_qt5_libdir}/qt5/mkspecs/features/qwt* %{_qt5_libdir}/pkgconfig/Qt5Qwt6.pc %{_qt5_libdir}/pkgconfig/qwtmathml-qt5.pc %files doc # own these to avoid needless dep on qt/qt-doc %dir %{_qt5_docdir} %dir %{_qt5_docdir}/html/ %{_qt5_docdir}/html/qwt/ %{_mandir}/man3/* %changelog * Tue Dec 09 2014 Dave Johansen 6.1.1-3 - Initial release for Qt5 * 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 * Thu May 15 2007 Frank Büttner - 5.0.1-1 - start