[packages/ruby-tokyocabinet] - new
qboosh
qboosh at pld-linux.org
Mon Feb 13 18:35:52 CET 2017
commit 846dd8e63193f8e3b0d612afa85ffddf68b1d80d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Feb 13 18:37:29 2017 +0100
- new
ruby-tokyocabinet-gemspec.patch | 11 +++++++
ruby-tokyocabinet.spec | 73 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
---
diff --git a/ruby-tokyocabinet.spec b/ruby-tokyocabinet.spec
new file mode 100644
index 0000000..6e32d02
--- /dev/null
+++ b/ruby-tokyocabinet.spec
@@ -0,0 +1,73 @@
+Summary: Ruby binding for Tokyo Cabinet
+Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki Tokyo Cabinet
+Name: ruby-tokyocabinet
+Version: 1.31
+Release: 1
+License: LGPL v2.1+
+Source0: http://fallabs.com/tokyocabinet/rubypkg/tokyocabinet-ruby-%{version}.tar.gz
+# Source0-md5: 8e71f49c5ae2cb8c46f5c2e5f43c182c
+Patch0: %{name}-gemspec.patch
+Group: Development/Languages
+URL: http://fallabs.com/tokyocabinet/
+BuildRequires: bzip2-devel
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.665
+BuildRequires: ruby-devel
+BuildRequires: tokyocabinet-devel
+BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tokyo Cabinet is a library of routines for managing a database. The
+database is a simple data file containing records, each is a pair of a
+key and a value. Every key and value is serial bytes with variable
+length. Both binary data and character string can be used as a key and
+a value. There is neither concept of data tables nor data types.
+Records are organized in hash table, B+ tree, or fixed-length array.
+
+This package contains Ruby binding for the library.
+
+%description -l pl.UTF-8
+Tokyo Cabinet to biblioteka procedur do zarządzania bazą danych. Baza
+danych to prosty plik danych zawierający pary klucz-wartość. Każdy
+klucz oraz wartość to szereg bajtów o zmiennej długości. Jako kluczy
+oraz wartości można używać zarówno danych binarnych, jak i łańcuchów
+znaków. Nie ma konceptu tabel danych ani typów danych. Rekordy są
+zorganizowane w tablicy haszującej, B+ drzewie lub tablicy o stałej
+długości.
+
+Ten pakiet zawiera wiązania języka Ruby do biblioteki.
+
+%prep
+%setup -q -n tokyocabinet-ruby-%{version}
+%patch0 -p1
+
+%build
+ruby extconf.rb --vendor
+
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC -I." \
+ ldflags="%{rpmldflags}"
+
+%{__sed} -e '/^if \$0/,$d' tokyocabinet.gemspec > tokyocabinet-%{version}.gemspec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{ruby_specdir}
+cp -p tokyocabinet-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%{__rm} doc/created.rid
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/*
+%attr(755,root,root) %{ruby_vendorarchdir}/tokyocabinet.so
+%{ruby_specdir}/tokyocabinet-%{version}.gemspec
diff --git a/ruby-tokyocabinet-gemspec.patch b/ruby-tokyocabinet-gemspec.patch
new file mode 100644
index 0000000..d20d9e9
--- /dev/null
+++ b/ruby-tokyocabinet-gemspec.patch
@@ -0,0 +1,11 @@
+--- tokyocabinet-ruby-1.31/tokyocabinet.gemspec.orig 2010-09-20 01:12:57.000000000 +0200
++++ tokyocabinet-ruby-1.31/tokyocabinet.gemspec 2017-02-13 18:28:58.142358297 +0100
+@@ -3,7 +3,7 @@
+ spec = Gem::Specification.new do |s|
+ s.name = "tokyocabinet"
+ s.version = "1.31"
+- s.author "FAL Labs"
++ s.author = "FAL Labs"
+ s.email = "info at fallabs.com"
+ s.homepage = "http://fallabs.com/tokyocabinet/"
+ s.summary = "Tokyo Cabinet: a modern implementation of DBM."
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-tokyocabinet.git/commitdiff/846dd8e63193f8e3b0d612afa85ffddf68b1d80d
More information about the pld-cvs-commit
mailing list