1 Summary: Ruby binding for Tokyo Cabinet
2 Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki Tokyo Cabinet
3 Name: ruby-tokyocabinet
7 Source0: http://fallabs.com/tokyocabinet/rubypkg/tokyocabinet-ruby-%{version}.tar.gz
8 # Source0-md5: 8e71f49c5ae2cb8c46f5c2e5f43c182c
9 Patch0: %{name}-gemspec.patch
10 Group: Development/Languages
11 URL: http://fallabs.com/tokyocabinet/
12 BuildRequires: bzip2-devel
13 BuildRequires: rpm-rubyprov
14 BuildRequires: rpmbuild(macros) >= 1.665
15 BuildRequires: ruby-devel
16 BuildRequires: tokyocabinet-devel
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Tokyo Cabinet is a library of routines for managing a database. The
22 database is a simple data file containing records, each is a pair of a
23 key and a value. Every key and value is serial bytes with variable
24 length. Both binary data and character string can be used as a key and
25 a value. There is neither concept of data tables nor data types.
26 Records are organized in hash table, B+ tree, or fixed-length array.
28 This package contains Ruby binding for the library.
30 %description -l pl.UTF-8
31 Tokyo Cabinet to biblioteka procedur do zarządzania bazą danych. Baza
32 danych to prosty plik danych zawierający pary klucz-wartość. Każdy
33 klucz oraz wartość to szereg bajtów o zmiennej długości. Jako kluczy
34 oraz wartości można używać zarówno danych binarnych, jak i łańcuchów
35 znaków. Nie ma konceptu tabel danych ani typów danych. Rekordy są
36 zorganizowane w tablicy haszującej, B+ drzewie lub tablicy o stałej
39 Ten pakiet zawiera wiązania języka Ruby do biblioteki.
42 %setup -q -n tokyocabinet-ruby-%{version}
46 ruby extconf.rb --vendor
50 CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC -I." \
51 ldflags="%{rpmldflags}"
53 %{__sed} -e '/^if \$0/,$d' tokyocabinet.gemspec > tokyocabinet-%{version}.gemspec
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{ruby_specdir}
62 cp -p tokyocabinet-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
64 %{__rm} doc/created.rid
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %attr(755,root,root) %{ruby_vendorarchdir}/tokyocabinet.so
73 %{ruby_specdir}/tokyocabinet-%{version}.gemspec