Репозиторий Sisyphus
Последнее обновление: 18 октября 2019 | Пакетов: 17501 | Посещений: 15290292
en ru br
Репозитории ALT
S:0.5.0-alt1.1
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.5.0
Release: alt1.1
%setup_python_module pythonwifi
Name: %packagename

Summary: Python binding for the wireless (wifi) extensions
License: GPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>

Url: http://pythonwifi.wikispot.org/
Source: http://download.berlios.de/pythonwifi/python-wifi-0.5.0.tar.bz2
BuildArch: noarch

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

BuildRequires: python-devel 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 -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 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 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