]> git.pld-linux.org Git - SPECS.git/blob - ruby-fastthread.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / ruby-fastthread.spec
1 Summary:        Fast replacement for Ruby's default thread library
2 Summary(pl.UTF-8):      Szybki zamiennik dla domyślnej biblioteki wątków języka Ruby
3 Name:           ruby-fastthread
4 Version:        1.0
5 Release:        1
6 License:        Ruby
7 Group:          Development/Libraries
8 Source0:        http://moonbase.rydia.net/software/optimized-locking/fastthread-%{version}.gem
9 # Source0-md5:  ced512fe09be9cc9184976d50882efb1
10 URL:            http://moonbase.rydia.net/software/optimized-locking/
11 BuildRequires:  rpmbuild(macros) >= 1.277
12 BuildRequires:  ruby-devel
13 BuildRequires:  ruby-modules
14 BuildRequires:  setup.rb >= 3.3.1
15 %{?ruby_mod_ver_requires_eq}
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Fast replacement for Ruby's default thread library.
20
21 %description -l pl.UTF-8
22 Szybki zamiennik dla domyślnej biblioteki wątków języka Ruby.
23
24 %prep
25 %setup -q -c -T
26 tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
27 cp %{_datadir}/setup.rb .
28
29 %build
30 cd ext/fastthread
31 ls *.c > MANIFEST
32 cd ../..
33 ruby setup.rb config --rbdir=%{ruby_rubylibdir} --sodir=%{ruby_archdir}
34 ruby setup.rb setup
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
39
40 ruby setup.rb install --prefix=$RPM_BUILD_ROOT
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %attr(755,root,root) %{ruby_archdir}/*.so
This page took 0.039724 seconds and 3 git commands to generate.