1985a70
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1985a70
1985a70
Name:           python-wifi
1985a70
Version:        0.3.1
b192a75
Release:        3%{?dist}
1985a70
Summary:        Python binding for the wireless extensions
1985a70
1985a70
Group:          Development/Libraries
1985a70
License:        LGPLv2+
1985a70
URL:            https://developer.berlios.de/projects/pythonwifi/
1985a70
Source0:        http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
1985a70
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1985a70
BuildArch:      noarch
1985a70
1985a70
BuildRequires:  python
1985a70
BuildRequires:  python-setuptools-devel
1985a70
1985a70
1985a70
%description
1985a70
Python-Wifi is a Python library that provides access to information about a
1985a70
W-LAN card's capabilities, like the wireless extensions written in C.
1985a70
1985a70
1985a70
%prep
1985a70
%setup -q
1985a70
1985a70
1985a70
%build
1985a70
python ./setup.py build
1985a70
1985a70
1985a70
%install
1985a70
rm -rf %{buildroot}
1985a70
python setup.py install -O1 --skip-build --root="%{buildroot}"
1985a70
# Fix permissions on examples
1985a70
chmod -x examples/*.py
1985a70
# Convert to utf-8
1985a70
for file in docs/AUTHORS docs/pywifi_english.tpp docs/pywifi.tpp; do
1985a70
    mv $file timestamp
1985a70
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
1985a70
    touch -r timestamp $file
1985a70
done
1985a70
1985a70
1985a70
%clean
1985a70
rm -rf %{buildroot}
1985a70
1985a70
1985a70
%files
1985a70
%defattr(-,root,root,-)
1985a70
%doc ChangeLog LICENSE NEWS README docs/ examples/ tests/
1985a70
%{python_sitelib}/pythonwifi/
1985a70
%{python_sitelib}/python_wifi*.egg-info
1985a70
1985a70
1985a70
%changelog
b192a75
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-3
b192a75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b192a75
1985a70
* Wed Feb 18 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-2
1985a70
- Changes acc. to bug #478300
1985a70
1985a70
* Sat Dec 27 2008 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-1
1985a70
- Initial spec for Fedora