rpms/python-mpmath/F-11 python-mpmath.spec, NONE, 1.1 sources, 1.1, 1.2

Jussi Lehtola jussilehtola at fedoraproject.org
Thu Oct 22 08:12:25 UTC 2009


Author: jussilehtola

Update of /cvs/pkgs/rpms/python-mpmath/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8471/F-11

Modified Files:
	sources 
Added Files:
	python-mpmath.spec 
Log Message:
Imported in Fedora.


--- NEW FILE python-mpmath.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:		python-mpmath
Version:	0.13
Release:	5%{?dist}
Summary:	A pure Python library for multiprecision floating-point arithmetic
Group:		Applications/Engineering
License:	BSD
URL:		http://code.google.com/p/mpmath/
Source0:	http://mpmath.googlecode.com/files/mpmath-%{version}.tar.gz
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch:	noarch

BuildRequires:	python-devel
# For building documentation
BuildRequires:	dvipng
BuildRequires:	python-sphinx
BuildRequires:	tex(latex)
# For running test
BuildRequires:	python-py


%description
Mpmath is a pure-Python library for multiprecision floating-point arithmetic.
It provides an extensive set of transcendental functions, unlimited exponent
sizes, complex numbers, interval arithmetic, numerical integration and
differentiation, root-finding, linear algebra, and much more. Almost any
calculation can be performed just as well at 10-digit or 1000-digit precision,
and in many cases mpmath implements asymptotically fast algorithms that scale
well for extremely high precision work. If available, mpmath will (optionally)
use gmpy to speed up high precision operations.

If you require plotting capabilities in mpmath, install python-matplotlib.

%package doc
Summary:	HTML documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{version}-%{release}

%description doc
This package contains the HTML documentation for %{name}.


%prep
%setup -q -n mpmath-%{version}
# Convert line encodings 
for doc in LICENSE CHANGES PKG-INFO README mpmath/tests/runtests.py; do
 sed "s|\r||g" $doc > $doc.new && \
 touch -r $doc $doc.new && \
 mv $doc.new $doc
done
find doc -name *.txt -exec sed -i "s|\r||g" {} \;

# Get rid of unnecessary shebangs
for lib in mpmath/elliptic.py mpmath/tests/runtests.py; do
 sed '/#!\/usr\/bin\/env/d' $lib > $lib.new && \
 touch -r $lib $lib.new && \
 mv $lib.new $lib
done

%build
python setup.py build
# Build documentation
cd doc
python build.py 

%install
rm -rf %{buildroot}
python setup.py install -O1 --skip-build --root %{buildroot}

%check
cd build/lib/mpmath/tests/
py.test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE PKG-INFO README
%{python_sitelib}/mpmath/
%{python_sitelib}/mpmath-%{version}-*.egg-info

%files doc
%defattr(-,root,root,-)
%doc doc/build/*

%changelog
* Tue Oct 06 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.13-5
- Removed BR: python-matplotlib, since it didn't actually help in the missing
  image problem.
- Added versioned require in -doc.

* Tue Oct 06 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.13-4
- Replaced R: python-matplotlib with a comment in %%description.
- Added missing BR: python-matplotlib.

* Tue Oct 06 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.13-3
- Added missing BR: dvipng.
- Added %%check phase.

* Wed Sep 23 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.13-2
- Add missing BR: tex(latex).

* Wed Sep 23 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.13-1
- First release.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-mpmath/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	22 Oct 2009 04:47:03 -0000	1.1
+++ sources	22 Oct 2009 08:12:25 -0000	1.2
@@ -0,0 +1 @@
+ed7812cc7470c0b8fbbca76a2ff02075  mpmath-0.13.tar.gz




More information about the scm-commits mailing list