python-zope-interface-vl.spec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: Zope 3 Interface Infrastructure
  5. Summary(ja): Zope 3 インターフェース・インフラストラクチャ
  6. Name: python-zope-interface
  7. Version: 3.5.0
  8. Release: %{pkg_release}
  9. Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip
  10. License: ZPL (Zope Public License 2.1)
  11. Group: Development/Languages
  12. URL: http://pypi.python.org/pypi/zope.interface
  13. Requires: python
  14. BuildRequires: python, python-devel, python-setuptools
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. This is a separate distribution of the zope.interface package
  18. used in Zope 3.
  19. %description -l ja
  20. python-zope-interface は Zope 3 で利用されている zope.interface
  21. を、単体で分離して配布しているパッケージです。
  22. %prep
  23. %setup -q -n zope.interface-%{version}
  24. %build
  25. %{__python} setup.py build
  26. %install
  27. %{__rm} -rf ${RPM_BUILD_ROOT}
  28. %{__python} setup.py install --root ${RPM_BUILD_ROOT}
  29. %clean
  30. %{__rm} -rf ${RPM_BUILD_ROOT}
  31. %files
  32. %defattr(-,root,root)
  33. %doc CHANGES.txt PKG-INFO README.txt
  34. %{python_sitearch}/zope
  35. #%{python_sitearch}/zope.interface-3.5.0-py2.5.egg-info
  36. #%{python_sitearch}/zope.interface-3.5.0-py2.5-nspkg.pth
  37. %{python_sitearch}/zope.interface-3.5.0-py%{pyver}.egg-info
  38. %{python_sitearch}/zope.interface-3.5.0-py%{pyver}-nspkg.pth
  39. %changelog
  40. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 3.5.0-2
  41. - rebuild with python-2.6
  42. - fixed path
  43. * Tue Dec 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.5.0-1
  44. - initial build for Vine Linux