python-iwlib-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. Summary: Wireless settings python bindings
  4. Summary(ja): wireless-tools の python バインディング
  5. Name: python-iwlib
  6. Version: 0.1
  7. Release: 2%{?_dist_release}
  8. URL: http://git.fedorahosted.org/git/python-iwlib.git
  9. Source: http://fedorahosted.org/released/python-iwlib/%{name}-%{version}.tar.bz2
  10. License: GPLv2
  11. Group: System Environment/Libraries
  12. ExcludeArch: s390 s390x
  13. BuildRequires: python-devel
  14. BuildRequires: wireless-tools-devel
  15. Requires: wireless-tools
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. %description
  18. Python bindings for the iwlib kernel interface,
  19. that provides functions to examine the wireless network devices
  20. installed on the system.
  21. %prep
  22. %setup -q
  23. %build
  24. %{__python} setup.py build
  25. %install
  26. rm -rf %{buildroot}
  27. %{__python} setup.py install --skip-build --root %{buildroot}
  28. mkdir -p %{buildroot}%{_sbindir}
  29. chmod 755 %{buildroot}%{python_sitearch}/iwlib.so
  30. %clean
  31. rm -rf %{buildroot}
  32. %files
  33. %defattr(-,root,root)
  34. %doc COPYING
  35. %{python_sitearch}/iwlib.so
  36. %if "%{python_ver}" >= "2.5"
  37. %{python_sitearch}/*.egg-info
  38. %endif
  39. %changelog
  40. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1-2
  41. - rebuild with python-2.6
  42. * Wed Sep 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
  43. - initial build for Vine Linux
  44. * Mon Jul 27 2009 Jiri Popelka <jpopelka@redhat.com> - 0.1-1
  45. - Get iwlib code from rhpl 0.222-1