Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 951332c3e7aca2e14be42d4c345f1767 > files > 1

python-rational-0.1-4mdk.src.rpm

%define oname   rational
%define name    python-%oname
%define version 0.1
%define release 4mdk


Summary:       Rational numbers for python
Name:          %{name}
Version:       %{version}
Release:       %{release}
Source0:       %{oname}.py
License:       LGPL
Group:         Development/Python
BuildRoot:     %{_tmppath}/%{name}-buildroot
Url:           http://www.python.org/peps/pep-0239.html
BuildRequires: python
BuildArch:     noarch

%description
This is a python module for rational numbers, following PEP 239,
with some extensions. While it is not as efficent as cRat, it is
more has some extra features (e.g., NaN and infinity handling).

%install
rm -rf $RPM_BUILD_ROOT
install -m644 -D %SOURCE0 $RPM_BUILD_ROOT/%{_libdir}/python%pyver/site-packages/%{oname}.py
cd $RPM_BUILD_ROOT/%{_libdir}/python%pyver/site-packages/
python -c "import %{oname}"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/python*/site-packages/%{oname}.py*

%changelog
* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.1-4mdk
- Really rebuild for new python

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.1-3mdk
- Rebuild for new python

* Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 0.1-2mdk
- python 2.3

* Wed Jul 9 2003 Austin Acton <aacton@yorku.ca> 0.1-1mdk 
- from andi payn <payn@myrealbox.com> :
  - initial specfile