Name: PyQwt Version: 5.2.0 Release: 39%{?dist} Summary: Python bindings for Qwt Group: Development/Languages # GPLv2+ exceptions (see COPYING.PyQwt) License: GPLv2+ with exceptions URL: http://pyqwt.sourceforge.net/ Source0: http://downloads.sourceforge.net/pyqwt/%{name}-%{version}.tar.gz # manually link libqwt, don't hardcode -lqwt Patch1: PyQwt-5.2.0-qwt_manual_link.patch # fix building against sip-4.19 Patch2: PyQwt-5.2.0-sip-4.19.patch BuildRequires: python2-devel BuildRequires: sip-devel BuildRequires: PyQt4-devel BuildRequires: numpy-f2py BuildRequires: pkgconfig(qwt5-qt4) Requires: PyQt4%{?_isa} Requires: numpy%{?_isa} %{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}} # Filter .so files in python2_sitearch directory from auto-generated provides %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ %description PyQwt is a set of Python bindings for the Qwt C++ class library which extends the Qt framework with widgets for scientific and engineering applications. It provides a widget to plot 2-dimensional data and various widgets to display and control bounded or unbounded floating point values. %package devel Summary: Files needed to build other bindings on PyQwt Group: Development/Languages Requires: %{name}%{?_isa} = %{version}-%{release} Requires: PyQt4-devel%{?_isa} Requires: pkgconfig(qwt5-qt4) %description devel Files needed to build other bindings for Qwt C++ classes that inherit from any of the PyQwt classes. %prep %setup -q %patch1 -p1 -b .manual_link_qwt %patch2 -p1 -b .sip419 # mark examples non-executable find qt4examples/ -name "*.py" | xargs chmod a-x %build QWTINC="%(pkg-config --cflags-only-I qwt5-qt4 2>/dev/null || echo "%{_includedir}/qwt")" QWTLIB="%(pkg-config --libs qwt5-qt4 2>/dev/null || echo "-lqwt")" pushd configure %{__python2} configure.py $QWTINC $QWTLIB --disable-numarray --disable-numeric popd make %{?_smp_mflags} -C configure %install make DESTDIR=%{buildroot} install -C configure # move the generated pdf and html documentation to devel-doc directory mkdir devel-doc mv sphinx/build/latex/PyQwt.pdf devel-doc rm sphinx/build/html/.buildinfo mv sphinx/build/html devel-doc # non-executable scripts chmod 755 %{buildroot}/%{python2_sitearch}/PyQt4/Qwt5/grace.py chmod 755 %{buildroot}/%{python2_sitearch}/PyQt4/Qwt5/qplt.py %files %doc ANNOUNCEMENT-%{version} README %doc COPYING* %{python2_sitearch}/PyQt4/Qwt5/ %{python2_sitearch}/PyQt4/uic/widget-plugins/qwt.py* %files devel %doc devel-doc/* %doc qt4examples/ %{_datadir}/sip/PyQt4/Qwt5/ %changelog * Wed Feb 07 2018 Fedora Release Engineering - 5.2.0-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 5.2.0-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 5.2.0-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 06 2017 Rex Dieter - 5.2.0-36 - rebuild (sip) * Fri Feb 10 2017 Fedora Release Engineering - 5.2.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Tadej Janež - 5.2.0-33 - Fixed building against sip-4.19 (thanks to Sandro Mani for the patch). - Updated and modernized spec file: - Simplified filtering of auto-generated provides. - Replaced %%{python_*} macros with %%{python2_*} macros. - Removed %%qwt_dep and replaced it with a fixed qwt dependency. - Removed trailing white-space. * Sun Jan 01 2017 Rex Dieter - 5.2.0-33 - rebuild (sip) * Tue Jul 19 2016 Fedora Release Engineering - 5.2.0-32 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Apr 13 2016 Rex Dieter - 5.2.0-31 - rebuild (sip) * Wed Feb 03 2016 Fedora Release Engineering - 5.2.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Fedora Release Engineering - 5.2.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 5.2.0-28 - Rebuilt for GCC 5 C++11 ABI change * Fri Aug 15 2014 Fedora Release Engineering - 5.2.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 06 2014 Fedora Release Engineering - 5.2.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jun 02 2014 Rex Dieter 5.2.0-25 - rebuild (sip) * Sun Mar 16 2014 Rex Dieter 5.2.0-24 - rebuild (sip) * Sat Feb 15 2014 Rex Dieter 5.2.0-23 - rebuild (sip) * Fri Aug 02 2013 Fedora Release Engineering - 5.2.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jun 18 2013 Rex Dieter 5.2.0-21 - rebuild (sip) * Mon Mar 04 2013 Rex Dieter 5.2.0-20 - drop micro release * Wed Feb 13 2013 Fedora Release Engineering - 5.2.0-20.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Dec 05 2012 Rex Dieter 5.2.0-19.2 - rebuild (sip) * Fri Oct 19 2012 Rex Dieter 5.2.0-19 - fix/rebuild for qwt5-qt4 compat pkg * Wed Oct 03 2012 Rex Dieter 5.2.0-18 - rebuild (sip) * Wed Jul 18 2012 Fedora Release Engineering - 5.2.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 5.2.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Dec 23 2011 Rex Dieter 5.2.0-15 - rebuild (sip/PyQt4) * Wed Sep 07 2011 Tadej Janež - 5.2.0-14 - changes to the spec file that follow the latest Packaging Guidelines: - added %%{?_isa} to arch specific Requires - removed %%defattr sections which are no longer necessary - removed an obsolete work-around which removed files conflicting with the PyQt4 package * Tue Aug 09 2011 Rex Dieter 5.2.0-13 - .spec cosmetics - rebuild (qwt) * Mon Feb 07 2011 Fedora Release Engineering - 5.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 03 2011 Tadej Janež - 5.2.0-11 - changes to the spec file that follow the latest Packaging Guidelines: - removed BuildRoot tag - removed %%clean section - removed private shared object provides that were reported by rpmlint - removed the manual definition of the python_sitearch macro - simplified the handling of devel documentation files - minor cosmetic cleanups * Fri Dec 10 2010 Rex Dieter - 5.2.0-10 - rebuild (sip, #662039)) * Thu Sep 09 2010 Rex Dieter - 5.2.0-9 - rebuild(sip) * Wed Jul 21 2010 David Malcolm - 5.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Apr 21 2010 Tadej Janež - 5.2.0-7 - another rebuild (for qwt-5.2.1, f11+) * Mon Apr 19 2010 Tadej Janež - 5.2.0-6 - rebuild (for qwt-5.2.1, f11+) * Mon Apr 12 2010 Tadej Janež - 5.2.0-5 - rebuild (for qwt-5.2.0, f11+) * Thu Jan 07 2010 Rex Dieter - 5.2.0-4 - rebuild (sip) * Thu Nov 19 2009 Rex Dieter - 5.2.0-3.1 - rebuild (for qt-4.6.0-rc1, f13+) * Mon Nov 16 2009 Rex Dieter 5.2.0-3 - Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#537894) * Wed Oct 28 2009 Tadej Janež 5.2.0-2 - made qplt.py executable (to fix a rpmlint error) - removed html/.buildinfo from sphinx documentation (to fix a rpmlint error) - changed BuildRequires from numpy to numpy-f2py to cope with the numpy package split - temporarily removed qwt.py* files which conflict with the ones provided by the PyQt4 package * Sun Sep 6 2009 Milos Jakubicek - 5.2.0-1 - Fix FTBFS: Update to 5.2.0 * Fri Jul 24 2009 Fedora Release Engineering - 5.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 5.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 24 2009 Tadej Janež 5.1.0-3 - made grace.py executable again * Fri Jan 09 2009 Tadej Janež 5.1.0-2 - disabled support for Numeric and Numarray - incorporated fixes from package review in BZ472229 * Tue Nov 18 2008 Tadej Janež 5.1.0-1 - initial package