Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:F
kyotocabinet
kyotocabinet.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kyotocabinet.spec of Package kyotocabinet
# # spec file for package kyotocabinet # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: kyotocabinet Version: 1.2.76 Release: 0 %define soname 16 Summary: A straightforward implementation of DBM License: SUSE-GPL-3.0-with-FLOSS-exception Group: Productivity/Databases/Tools Url: http://fallabs.com/kyotocabinet/ Source: http://fallabs.com/kyotocabinet/pkg/kyotocabinet-%{version}.tar.gz Source99: baselibs.conf # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch1: %{name}-fix_rpath.patch Patch2: configure-8-byte-atomics.patch # PATCH-FIX-OPENSUSE gcc6-fix-errors.patch -- Fix errors seen by GCC6/GCC7. Patch3: gcc6-fix-errors.patch # PATCH-FIX-OPENSUSE gcc6-fix-errors.patch -- Do not supress debuginfo Patch4: kyotocabinet-fix-debuginfo.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libbz2-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if "%_target_cpu" == "i386" # kyotocabinet uses __sync_* primitives and requires at least 586 BuildArch: i586 %endif %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 %patch2 -p1 %patch3 -p1 %patch4 -p1 sed -ie "/ldconfig/d" Makefile.in sed -ie "/DOCDIR/d" Makefile.in %build sed -ri 's/-march=native/-O2 -g3/g' configure.in autoreconf -iv export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export CFLAGS="${CFLAGS//-march=i386/-march=i586}"; export CXXFLAGS="${CXXFLAGS//-march=i386/-march=i586}"; %configure make %{?_smp_mflags} %install make install DESTDIR="%buildroot" 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor