[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | %{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} |
---|
| 3 | |
---|
| 4 | Summary: Wireless settings python bindings |
---|
| 5 | Summary(ja): wireless-tools の python バインディング |
---|
| 6 | Name: python-iwlib |
---|
[8897] | 7 | Version: 1.2 |
---|
| 8 | Release: 1%{?_dist_release} |
---|
[521] | 9 | URL: http://git.fedorahosted.org/git/python-iwlib.git |
---|
| 10 | Source: http://fedorahosted.org/released/python-iwlib/%{name}-%{version}.tar.bz2 |
---|
| 11 | License: GPLv2 |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | ExcludeArch: s390 s390x |
---|
| 14 | BuildRequires: python-devel |
---|
| 15 | BuildRequires: wireless-tools-devel |
---|
| 16 | Requires: wireless-tools |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 18 | |
---|
[8158] | 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
[521] | 22 | %description |
---|
| 23 | Python bindings for the iwlib kernel interface, |
---|
| 24 | that provides functions to examine the wireless network devices |
---|
| 25 | installed on the system. |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q |
---|
| 29 | |
---|
| 30 | %build |
---|
| 31 | %{__python} setup.py build |
---|
| 32 | |
---|
| 33 | %install |
---|
| 34 | rm -rf %{buildroot} |
---|
| 35 | %{__python} setup.py install --skip-build --root %{buildroot} |
---|
| 36 | mkdir -p %{buildroot}%{_sbindir} |
---|
| 37 | chmod 755 %{buildroot}%{python_sitearch}/iwlib.so |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | rm -rf %{buildroot} |
---|
| 41 | |
---|
| 42 | %files |
---|
| 43 | %defattr(-,root,root) |
---|
| 44 | %doc COPYING |
---|
| 45 | %{python_sitearch}/iwlib.so |
---|
| 46 | %if "%{python_ver}" >= "2.5" |
---|
| 47 | %{python_sitearch}/*.egg-info |
---|
| 48 | %endif |
---|
| 49 | |
---|
| 50 | %changelog |
---|
[8897] | 51 | * Sat Aug 09 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.2-1 |
---|
| 52 | - new upstream release |
---|
| 53 | |
---|
[8158] | 54 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-4 |
---|
| 55 | - rebuild with VineSeed environment |
---|
| 56 | |
---|
[5701] | 57 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-3 |
---|
| 58 | - rebuild with python-2.7.2 |
---|
| 59 | |
---|
[521] | 60 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1-2 |
---|
| 61 | - rebuild with python-2.6 |
---|
| 62 | |
---|
| 63 | * Wed Sep 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1 |
---|
| 64 | - initial build for Vine Linux |
---|
| 65 | |
---|
| 66 | * Mon Jul 27 2009 Jiri Popelka <jpopelka@redhat.com> - 0.1-1 |
---|
| 67 | - Get iwlib code from rhpl 0.222-1 |
---|