python-iwlib-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: 1.2
  7. Release: 1%{?_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. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. Python bindings for the iwlib kernel interface,
  21. that provides functions to examine the wireless network devices
  22. installed on the system.
  23. %prep
  24. %setup -q
  25. %build
  26. %{__python} setup.py build
  27. %install
  28. rm -rf %{buildroot}
  29. %{__python} setup.py install --skip-build --root %{buildroot}
  30. mkdir -p %{buildroot}%{_sbindir}
  31. chmod 755 %{buildroot}%{python_sitearch}/iwlib.so
  32. %clean
  33. rm -rf %{buildroot}
  34. %files
  35. %defattr(-,root,root)
  36. %doc COPYING
  37. %{python_sitearch}/iwlib.so
  38. %if "%{python_ver}" >= "2.5"
  39. %{python_sitearch}/*.egg-info
  40. %endif
  41. %changelog
  42. * Sat Aug 09 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.2-1
  43. - new upstream release
  44. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-4
  45. - rebuild with VineSeed environment
  46. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-3
  47. - rebuild with python-2.7.2
  48. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1-2
  49. - rebuild with python-2.6
  50. * Wed Sep 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
  51. - initial build for Vine Linux
  52. * Mon Jul 27 2009 Jiri Popelka <jpopelka@redhat.com> - 0.1-1
  53. - Get iwlib code from rhpl 0.222-1