Matt Domsch 851668b
%define oname IPy
Matt Domsch 851668b
Matt Domsch 851668b
# per fedora python packaging guidelines
Matt Domsch 851668b
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Matt Domsch 851668b
Matt Domsch 851668b
Summary:        Python module for handling IPv4 and IPv6 Addresses and Networks
Matt Domsch 851668b
Name:           python-%{oname}
Matt Domsch 3f7cf19
Version:        0.60
Matt Domsch 3f7cf19
Release:        1%{?dist}
Matt Domsch 851668b
URL:            http://software.inl.fr/trac/trac.cgi/wiki/IPy
Matt Domsch 851668b
Source0:        http://cheeseshop.python.org/packages/source/I/IPy/IPy-%{version}.tar.gz
Matt Domsch 851668b
License:        BSD
Matt Domsch 851668b
Group:          System Environment/Libraries
Matt Domsch 851668b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matt Domsch 851668b
BuildRequires:  python-devel
Matt Domsch 851668b
BuildArch:      noarch
Matt Domsch 851668b
Matt Domsch 851668b
%description
Matt Domsch 851668b
IPy is a Python module for handling IPv4 and IPv6 Addresses and Networks 
Matt Domsch 851668b
in a fashion similar to perl's Net::IP and friends. The IP class allows 
Matt Domsch 851668b
a comfortable parsing and handling for most notations in use for IPv4 
Matt Domsch 851668b
and IPv6 Addresses and Networks.
Matt Domsch 851668b
Matt Domsch 851668b
%prep
Matt Domsch 851668b
%setup -q -n %{oname}-%{version}
Matt Domsch 851668b
Matt Domsch 851668b
%build
Matt Domsch 851668b
CFLAGS="%{optflags}" %{_bindir}/python setup.py build
Matt Domsch 851668b
Matt Domsch 851668b
%check
Matt Domsch 851668b
make test
Matt Domsch 851668b
Matt Domsch 851668b
%install
Matt Domsch 851668b
%{__rm} -rf %{buildroot}
Matt Domsch 851668b
%{__python} setup.py install --skip-build --root %{buildroot}
Matt Domsch 851668b
Matt Domsch 851668b
Matt Domsch 851668b
%clean
Matt Domsch 851668b
%{__rm} -rf %{buildroot}
Matt Domsch 851668b
Matt Domsch 851668b
%files
Matt Domsch 851668b
%defattr(-,root,root)
Matt Domsch 851668b
%doc AUTHORS COPYING ChangeLog PKG-INFO README example
Matt Domsch 851668b
%{python_sitelib}/%{oname}*
Matt Domsch 851668b
Matt Domsch 851668b
Matt Domsch 851668b
%changelog
Matt Domsch 3f7cf19
* Tue May 20 2008 Matt Domsch <matt@domsch.com> 0.60-1
Matt Domsch 3f7cf19
- with assistance from  Mike Frisch
Matt Domsch 3f7cf19
- 0.60
Matt Domsch 3f7cf19
Matt Domsch 851668b
* Tue Jun 05 2007 Matt Domsch <matt@domsch.com> 0.53-2
Matt Domsch 851668b
- simple cleanups per Fedora package review, with thanks to Nigel Jones.
Matt Domsch 851668b
Matt Domsch 851668b
* Thu May 10 2007 Matt Domsch <matt@domsch.com> 0.53-1
Matt Domsch 851668b
- repackaged for Fedora
Matt Domsch 851668b
Matt Domsch 851668b
* Sat Jan 20 2007 David Walluck <walluck@mandriva.org> 0.52-1mdv2007.0
Matt Domsch 851668b
+ Revision: 110982
Matt Domsch 851668b
- 0.52
Matt Domsch 851668b
Matt Domsch 851668b
* Wed Dec 13 2006 Nicolas L├ęcureuil <neoclust@mandriva.org> 0:0.51-2mdv2007.1
Matt Domsch 851668b
+ Revision: 96523
Matt Domsch 851668b
- Rebuild against new python
Matt Domsch 851668b
Matt Domsch 851668b
* Thu Nov 02 2006 David Walluck <walluck@mandriva.org> 0:0.51-1mdv2007.1
Matt Domsch 851668b
+ Revision: 75609
Matt Domsch 851668b
- 0.51
Matt Domsch 851668b
Matt Domsch 851668b
* Sun Oct 15 2006 David Walluck <walluck@mandriva.org> 0:0.42-3mdv2007.1
Matt Domsch 851668b
+ Revision: 65303
Matt Domsch 851668b
- sync with 2mdv
Matt Domsch 851668b
- Import python-IPy
Matt Domsch 851668b
Matt Domsch 851668b
Matt Domsch 851668b
Matt Domsch 851668b
* Sat Sep 16 2006 David Walluck <walluck@mandriva.com> 0:0.42-1mdv2007.0
Matt Domsch 851668b
- release