[packages/perl-TokyoCabinet] - new

qboosh qboosh at pld-linux.org
Sun Feb 12 19:00:04 CET 2017


commit 2a0cdae628aac80d0dceca0744ad395caa2b519e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 12 19:01:44 2017 +0100

    - new

 perl-TokyoCabinet.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
---
diff --git a/perl-TokyoCabinet.spec b/perl-TokyoCabinet.spec
new file mode 100644
index 0000000..a50ad97
--- /dev/null
+++ b/perl-TokyoCabinet.spec
@@ -0,0 +1,75 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+Summary:	TokyoCabinet - Perl binding for Tokyo Cabinet
+Summary(pl.UTF-8):	TokyoCabinet - wiązania Perla do biblioteki Tokyo Cabinet
+Name:		perl-TokyoCabinet
+Version:	1.34
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Languages/Perl
+Source0:	http://fallabs.com/tokyocabinet/perlpkg/tokyocabinet-perl-%{version}.tar.gz
+# Source0-md5:	e83e45e6a209dd81530b57d9414fd6ab
+URL:		http://fallabs.com/tokyocabinet/
+BuildRequires:	bzip2-devel
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+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 Perl 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 Perla do biblioteki.
+
+%prep
+%setup -q -n tokyocabinet-perl-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# tests and pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/{memsize.pl,tc?test.pl,*.pod}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/index.html
+%{perl_vendorarch}/TokyoCabinet.pm
+%dir %{perl_vendorarch}/auto/TokyoCabinet
+%attr(755,root,root) %{perl_vendorarch}/auto/TokyoCabinet/TokyoCabinet.so
+%{_mandir}/man3/TokyoCabinet.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-TokyoCabinet.git/commitdiff/2a0cdae628aac80d0dceca0744ad395caa2b519e



More information about the pld-cvs-commit mailing list