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