silvercity-vl.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define name silvercity
  2. %define srcname SilverCity
  3. %define version 0.9.7
  4. %define release 2%{?_dist_release}
  5. %define pyexeclib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  6. Summary: lexing analyzer for over 20 programming and markup langauges
  7. Summary(ja): 20 以上のプログラミング言語とマークアップ言語用の構文解析器
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Source0: http://downloads.sourceforge.net/silvercity/%{srcname}-%{version}.tar.gz
  12. Patch0: SilverCity-0.9.7-shebang.diff
  13. License: redistributable
  14. Group: Applications/Text
  15. URL: http://silvercity.sourceforge.net/
  16. Requires: python
  17. BuildRequires: python-devel
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. SilverCity is a lexing package, based on Scintilla,
  23. that can provide lexical analysis for over 20 programming
  24. and markup langauges.
  25. Scripting language bindings currently exist for Python.
  26. %description -l ja
  27. SilverCity は Scintilla ベースの構文解析器です。
  28. 20 以上のプログラミング言語とマークアップ言語の
  29. 構文を解析できます。
  30. スクリプト言語のバインディングは現在 Python 用のものが
  31. 提供されています。
  32. %prep
  33. %setup -q -n %{srcname}-%{version}
  34. %patch0 -p1
  35. %build
  36. %{__python} setup.py build
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. %{__python} setup.py install --root=${RPM_BUILD_ROOT}
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files
  43. %defattr(-,root,root)
  44. %doc LICENSE.txt
  45. %{_bindir}/*
  46. %{pyexeclib}/SilverCity/
  47. %{python_sitearch}/SilverCity*.egg-info
  48. %changelog
  49. * Sat Mar 20 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.7-2
  50. - rebuilt with python-2.6
  51. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.9.7-1vl5
  52. - rebuilt with python-2.5.2
  53. - applied new versioning policy and spec in utf-8
  54. - added pyexeclib macro
  55. * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.9.7-0vl2
  56. - initial build for Vine Linux
  57. - add Patch0 to have cgi-styler-form.py work correctly