Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039429
en ru br
Репозитории ALT
5.1: 0.3-alt2.1
4.1: 0.3-alt2.1
4.0: 0.3-alt2
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-pythonwifi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Version: 0.3
Release: alt2
%setup_python_module pythonwifi
Name: %packagename

Summary: Python binding for the wireless (wifi) extensions
License: GPL
Group: Development/Python

Url: http://www.romanofski.de/downloads/pywifi
Source: python-wifi-%{version}.linux-i686.tar.gz
BuildArch: noarch

# Automatically added by buildreq on Sat Dec 16 2006 (-bi)

BuildRequires: python-dev python-modules-encodings

%description
This module facilitates read only access to wireless (wifi) cards.

This module is built for python %__python_version

%package -n %name-doc
Summary: %modulename documentation and example programs
Group: Development/Python
Prefix: %prefix
Requires: %name = %version

%description -n  %name-doc
%modulename facilitates read only access to wireless (wifi) cards.
Install this package if you need API documentation
and examples for this module

%prep
%setup -q -n python-wifi

# borrowed from dag's spec too

cat <<'EOF' >setup.py
import os, string, sys
from distutils.core import setup

def main():
setup(
name="%name",
version="%version",
description="%summary",
author="Dag Wieers",
author_email="dag at wieers.com, http://dag.wieers.com/, dag.wieers at gmail.com",
maintainer="Dag Wieers",
maintainer_email="dag at wieers.com",
url="%url",
license="%license",
platforms="UNIX",
long_description="""%description""",
keywords=["wireless extensions", "wifi", "iwlibs"],
packages=['pythonwifi'],
package_dir={'pythonwifi': 'pythonwifi'},
# py_modules=["pythonwifi"],
)

if __name__ == "__main__": main()
EOF

### Fix permissions on examples and tests

chmod a+x docs/*.py examples/*.py tests/*.py

%build
mkdir -p buildroot

# Unfortunately build and install steps should be done at once

# because otherwise .pyo files won't get into INSTALLED_FILES
# record --> borrowed from python policy's spec sample

CFLAGS="%optflags" %__python setup.py \
install --optimize=1 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES

%install
cp -pr buildroot %buildroot
unset RPM_PYTHON

%files -f INSTALLED_FILES
%doc ChangeLog LICENSE README

%files -n %name-doc
%doc docs/ examples/ tests/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin