silvercity-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %define name silvercity
  2. %define srcname SilverCity
  3. %define version 0.9.7
  4. %define release 4%{?_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. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.9.7-4
  50. - rebuild with gcc-5.4.0
  51. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.7-3
  52. - rebuilt with python-2.7.2
  53. * Sat Mar 20 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.7-2
  54. - rebuilt with python-2.6
  55. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.9.7-1vl5
  56. - rebuilt with python-2.5.2
  57. - applied new versioning policy and spec in utf-8
  58. - added pyexeclib macro
  59. * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.9.7-0vl2
  60. - initial build for Vine Linux
  61. - add Patch0 to have cgi-styler-form.py work correctly