SHA256
1
0
forked from pool/kyotocabinet
kyotocabinet/kyotocabinet.spec

127 lines
4.7 KiB
RPMSpec

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kyotocabinet
Version: 1.2.52
%define soname 9
Release: 0
License: GPLv3
Summary: A straightforward implementation of DBM
Url: http://fallabs.com/kyotocabinet/
Group: Productivity/Databases/Tools
Source: http://fallabs.com/kyotocabinet/pkg/kyotocabinet-%{version}.tar.gz
Patch1: %{name}-fix_rpath.patch
BuildRequires: autoconf, automake, gcc-c++
BuildRequires: libbz2-devel, libtool
BuildRequires: pkgconfig
BuildRequires: zlib-devel
Requires: libkyotocabinet%{soname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kyoto 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. Each key
must be unique within a database. There is neither concept of data tables
nor data types. Records are organized in hash table or B+ tree.
Kyoto Cabinet runs very fast. For example, elapsed time to store one
million records is 0.9 seconds for hash database, and 1.1 seconds for B+ tree
database. Moreover, the size of database is very small. For example, overhead
for a record is 16 bytes for hash database, and 4 bytes for B+ tree database.
Furthermore, scalability of Kyoto Cabinet is great. The database size can be
up to 8EB (9.22e18 bytes).
Kyoto Cabinet is written in the C++ language, and provided as API of C++, C,
Java, Python, Ruby, Perl, and Lua. Kyoto Cabinet is available on platforms
which have API conforming to C++03 with the TR1 library extensions.
Kyoto Cabinet is a free software licensed under the GNU General Public License.
On the other hand, a commercial license is also provided. If you use
Kyoto Cabinet within a proprietary software, the commercial license is required.
This package contains the command-line utilities to manage KyotoCabinet
database files.
%package -n libkyotocabinet-devel
Summary: Development Environment for the kyotocabinet Library
Group: Development/Languages/C and C++
Requires: libkyotocabinet%{soname} = %{version}
Provides: libkyotocabinet%{soname}-devel = %{version}
%description -n libkyotocabinet-devel
This package contains the development environment (headers, shared
library symlink, pkg-config file, ...) for libkyotocabinet%{soname}
%package -n libkyotocabinet%{soname}
Summary: Modern Implementation of DBM - Shared Library
Group: System/Libraries
Provides: libkyotocabinet = %{version}
%description -n libkyotocabinet%{soname}
Kyoto 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. Each key
must be unique within a database. There is neither concept of data tables
nor data types. Records are organized in hash table or B+ tree.
Kyoto Cabinet runs very fast. For example, elapsed time to store one
million records is 0.9 seconds for hash database, and 1.1 seconds for B+ tree
database. Moreover, the size of database is very small. For example, overhead
for a record is 16 bytes for hash database, and 4 bytes for B+ tree database.
Furthermore, scalability of Kyoto Cabinet is great. The database size can be
up to 8EB (9.22e18 bytes).
Kyoto Cabinet is written in the C++ language, and provided as API of C++, C,
Java, Python, Ruby, Perl, and Lua. Kyoto Cabinet is available on platforms
which have API conforming to C++03 with the TR1 library extensions.
Kyoto Cabinet is a free software licensed under the GNU General Public License.
On the other hand, a commercial license is also provided. If you use
Kyoto Cabinet within a proprietary software, the commercial license is required.
%prep
%setup -q
%patch1 -p 1
sed -ie "/ldconfig/d" Makefile.in
sed -ie "/DOCDIR/d" Makefile.in
%build
autoreconf -iv
%configure
make %{?_smp_mflags}
%install
%make_install
rm -rf %{buildroot}%{_datadir}/kyotocabinet
rm -rf %{buildroot}%{_libdir}/libkyotocabinet.a
%check
# make check
%post -n libkyotocabinet%{soname} -p /sbin/ldconfig
%postun -n libkyotocabinet%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog COPYING
%doc doc/*
%doc *.idl
%{_bindir}/*
%doc %{_mandir}/man1/*
%files -n libkyotocabinet-devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libkyotocabinet.so
%{_libdir}/pkgconfig/kyotocabinet.pc
%files -n libkyotocabinet%{soname}
%defattr(-,root,root)
%doc ChangeLog COPYING
%{_libdir}/libkyotocabinet.so.%{soname}*
%changelog