|
|
4398df6 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
4398df6 |
|
|
|
4398df6 |
Name: PyQwt
|
|
|
2079c9f |
Version: 5.2.0
|
|
|
c6896f9 |
Release: 2%{?dist}
|
|
|
4398df6 |
Summary: Python bindings for Qwt
|
|
|
4398df6 |
|
|
|
4398df6 |
Group: Development/Languages
|
|
|
4398df6 |
# GPLv2+ exceptions (see COPYING.PyQwt)
|
|
|
4398df6 |
License: GPLv2+ with exceptions
|
|
|
4398df6 |
URL: http://pyqwt.sourceforge.net/
|
|
|
4398df6 |
Source0: http://downloads.sourceforge.net/pyqwt/%{name}-%{version}.tar.gz
|
|
|
4398df6 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
4398df6 |
|
|
|
4398df6 |
BuildRequires: python-devel
|
|
|
4398df6 |
BuildRequires: sip-devel
|
|
|
4398df6 |
BuildRequires: PyQt4-devel
|
|
|
4398df6 |
BuildRequires: numpy
|
|
|
4398df6 |
BuildRequires: qwt-devel
|
|
|
4398df6 |
|
|
|
4398df6 |
Requires: PyQt4
|
|
|
4398df6 |
Requires: numpy
|
|
|
c6896f9 |
%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
|
|
4398df6 |
|
|
|
4398df6 |
%description
|
|
|
4398df6 |
PyQwt is a set of Python bindings for the Qwt C++ class library which extends
|
|
|
4398df6 |
the Qt framework with widgets for scientific and engineering applications. It
|
|
|
4398df6 |
provides a widget to plot 2-dimensional data and various widgets to display and
|
|
|
4398df6 |
control bounded or unbounded floating point values.
|
|
|
4398df6 |
|
|
|
4398df6 |
%package devel
|
|
|
4398df6 |
Summary: Files needed to build other bindings on PyQwt
|
|
|
4398df6 |
Group: Development/Languages
|
|
|
4398df6 |
Requires: %{name} = %{version}-%{release}
|
|
|
4398df6 |
Requires: PyQt4-devel
|
|
|
4398df6 |
Requires: qwt-devel
|
|
|
4398df6 |
%description devel
|
|
|
4398df6 |
Files needed to build other bindings for Qwt C++ classes that inherit from
|
|
|
4398df6 |
any of the PyQwt classes.
|
|
|
4398df6 |
|
|
|
4398df6 |
%prep
|
|
|
4398df6 |
%setup -q
|
|
|
4398df6 |
|
|
|
4398df6 |
# mark examples non-executable
|
|
|
4398df6 |
find qt4examples/ -name "*.py" | xargs chmod a-x
|
|
|
4398df6 |
|
|
|
4398df6 |
%build
|
|
|
4398df6 |
QWTDIR=%{_includedir}/qwt
|
|
|
4398df6 |
cd configure
|
|
|
4398df6 |
%{__python} configure.py -I$QWTDIR -lqwt --disable-numarray --disable-numeric
|
|
|
4398df6 |
make %{?_smp_mflags}
|
|
|
4398df6 |
|
|
|
4398df6 |
%install
|
|
|
4398df6 |
rm -rf %{buildroot}
|
|
|
4398df6 |
cd configure
|
|
|
4398df6 |
make DESTDIR=%{buildroot} install
|
|
|
2079c9f |
# move the generated pdf and html documentation to sphinx directory and remove the build files
|
|
|
2079c9f |
cd ..
|
|
|
2079c9f |
mv sphinx/build/latex/PyQwt.pdf sphinx
|
|
|
c6896f9 |
rm sphinx/build/html/.buildinfo
|
|
|
2079c9f |
mv sphinx/build/html sphinx
|
|
|
2079c9f |
rm -rf sphinx/build
|
|
|
4398df6 |
|
|
|
2079c9f |
# non-executable scripts
|
|
|
4398df6 |
chmod 755 %{buildroot}/%{python_sitearch}/PyQt4/Qwt5/grace.py
|
|
|
2079c9f |
chmod 755 %{buildroot}/%{python_sitearch}/PyQt4/Qwt5/qplt.py
|
|
|
2079c9f |
|
|
|
2079c9f |
#FIXME!!! temporarily remove qwt.py* files which conflict with PyQt4 package
|
|
|
2079c9f |
rm -rf %{buildroot}/%{python_sitearch}/PyQt4/uic
|
|
|
4398df6 |
|
|
|
4398df6 |
%clean
|
|
|
4398df6 |
rm -rf %{buildroot}
|
|
|
4398df6 |
|
|
|
4398df6 |
|
|
|
4398df6 |
%files
|
|
|
4398df6 |
%defattr(-,root,root,-)
|
|
|
4398df6 |
%doc ANNOUNCEMENT-%{version} README
|
|
|
4398df6 |
%doc COPYING*
|
|
|
2079c9f |
%{python_sitearch}/PyQt4/*
|
|
|
4398df6 |
|
|
|
4398df6 |
%files devel
|
|
|
4398df6 |
%defattr(-,root,root,-)
|
|
|
2079c9f |
%doc sphinx/*
|
|
|
4398df6 |
%doc qt4examples/
|
|
|
4398df6 |
%{_datadir}/sip/PyQt4/Qwt5/
|
|
|
4398df6 |
|
|
|
4398df6 |
%changelog
|
|
|
c6896f9 |
* Tue Nov 17 2009 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.2.0-2
|
|
|
c6896f9 |
- Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#537894)
|
|
|
c6896f9 |
- Rebuilt for new sip-4.9.x (and PyQt4-4.6.x)
|
|
|
c6896f9 |
- Removed html/.buildinfo from sphinx documentation (to fix a rpmlint error)
|
|
|
c6896f9 |
|
|
|
2079c9f |
* Wed Sep 23 2009 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.2.0-1
|
|
|
2079c9f |
- upgrade to version 5.2.0, which supports newer versions of Qwt, PyQt4
|
|
|
2079c9f |
and SIP
|
|
|
2079c9f |
- included new Sphinx generated pdf and html documentation in -devel subpackage
|
|
|
2079c9f |
- made qplt.py executable (to fix a rpmlint error)
|
|
|
2079c9f |
|
|
|
2c9f305 |
* Sat Mar 5 2009 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.1.0-4
|
|
|
2c9f305 |
- rebuild for new qwt (fixes RH bug #487348)
|
|
|
2c9f305 |
|
|
|
4398df6 |
* Sat Jan 24 2009 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.1.0-3
|
|
|
4398df6 |
- made grace.py executable again
|
|
|
4398df6 |
|
|
|
4398df6 |
* Fri Jan 09 2009 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.1.0-2
|
|
|
4398df6 |
- disabled support for Numeric and Numarray
|
|
|
4398df6 |
- incorporated fixes from package review in BZ472229
|
|
|
4398df6 |
|
|
|
4398df6 |
* Tue Nov 18 2008 Tadej Janež <tadej.janez@tadej.hicsalta.si> 5.1.0-1
|
|
|
4398df6 |
- initial package
|