]> git.pld-linux.org Git - SPECS.git/blob - ruby-eruby.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / ruby-eruby.spec
1 %define pkgname eruby
2 Summary:        Embedded Ruby
3 Summary(pl.UTF-8):      Osadzony Ruby
4 Name:           ruby-%{pkgname}
5 Version:        1.0.5
6 Release:        4
7 License:        GPL
8 Group:          Development/Languages
9 Source0:        http://modruby.net/archive/%{pkgname}-%{version}.tar.gz
10 # Source0-md5:  af294fe34dc6cf24228aec95167b3099
11 BuildRequires:  rpmbuild(macros) >= 1.277
12 BuildRequires:  ruby-modules
13 %{?ruby_mod_ver_requires_eq}
14 Obsoletes:      ruby-ERuby
15 Provides:       ruby-ERuby
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 eRuby is a language to embed Ruby codes into text files. For example,
20 you can embed Ruby codes into HTML files.
21
22 %description -l pl.UTF-8
23 eRuby to język do osadzania kodu w języku Ruby w plikach tekstowych.
24 Można na przykład osadzić kod w Rubym w plikach HTML.
25
26 %prep
27 %setup -q -n eruby-%{version}
28
29 %build
30 ruby configure.rb
31 %{__make}
32
33 rdoc --ri --op ri
34 rdoc --op rdoc
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{ruby_sitearchdir},%{_bindir},%{ruby_ridir}}
39
40 install eruby.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
41 install eruby $RPM_BUILD_ROOT%{_bindir}
42
43 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README* rdoc
51 %attr(755,root,root) %{ruby_sitearchdir}/*
52 %attr(755,root,root) %{_bindir}/eruby
53 %{ruby_ridir}/ERuby
This page took 0.223451 seconds and 3 git commands to generate.