Group :: Desenvolvimento/Python
RPM: python-module-pythonwifi
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Version: 0.3
Release: alt2.1
%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
…
Todas as alterações você pod ver aqui
Release: alt2.1
%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
…
Todas as alterações você pod ver aqui