- up to 0.6.5
[packages/fastcst.git] / fastcst.spec
1 %define ruby_ridir      %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
2 %define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
3 %define ruby_archdir    %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
4 Summary:        Fast Changeset Tool
5 Summary(pl):    Fast Changeset Tool - narzêdzie do zestawów zmian
6 Name:           fastcst
7 Version:        0.6.5
8 Release:        1
9 License:        GPL
10 Group:          Development/Languages
11 Source0:        http://www.zedshaw.com/projects/fastcst/%{name}-%{version}.tar.bz2
12 # Source0-md5:  6efc500b9692eb4f70b9e28fe96ddb33
13 URL:            http://www.zedshaw.com/projects/fastcst/
14 BuildRequires:  ruby
15 BuildRequires:  ruby-devel
16 Requires:       ruby
17 Requires:       ruby-RMail
18 Requires:       ruby-pluginfactory
19 Requires:       ruby-guid
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 A fast suffix-tree based changeset tool.
24
25 %description -l pl
26 Szybkie narzêdzie do zestawów zmian oparte na drzewie przyrostków
27 (suffiksów).
28
29 %prep
30 %setup -q
31
32 %build
33
34 ruby setup.rb config \
35         --rbdir=%{ruby_rubylibdir} \
36         --sodir=%{ruby_archdir}
37
38 ruby setup.rb setup
39
40 rdoc -o rdoc lib --inline-source
41 rdoc --ri lib -o ri
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
46
47 ruby setup.rb install --prefix=$RPM_BUILD_ROOT
48
49 cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README* rdoc
57 %attr(755,root,root) %{_bindir}/fcst
58 %attr(755,root,root) %{ruby_archdir}/suffix_array.so
59 %{ruby_rubylibdir}/sadelta.rb
60 %{ruby_rubylibdir}/fastcst
61 %{ruby_ridir}/*
This page took 0.062625 seconds and 3 git commands to generate.