2013-03-02 02:02:37 +00:00
|
|
|
Summary: A straightforward implementation of DBM
|
2010-12-13 18:47:20 +00:00
|
|
|
Name: kyotocabinet
|
2013-01-12 12:48:23 +00:00
|
|
|
Version: 1.2.76
|
2018-02-07 20:44:25 +00:00
|
|
|
Release: 16%{?dist}
|
2010-12-13 18:47:20 +00:00
|
|
|
License: GPLv3
|
2013-03-02 02:02:37 +00:00
|
|
|
Group: Applications/Databases
|
|
|
|
URL: http://fallabs.com/%{name}/
|
|
|
|
Source: http://fallabs.com/%{name}/pkg/%{name}-%{version}.tar.gz
|
2013-11-17 21:40:05 +00:00
|
|
|
Patch0: kyotocabinet-1.2.76-cflags.patch
|
|
|
|
Patch1: kyotocabinet-1.2.76-8-byte-atomics.patch
|
|
|
|
Patch2: kyotocabinet-1.2.76-tr1_hashtable.patch
|
2016-08-14 19:03:39 +00:00
|
|
|
Patch3: kyotocabinet-1.2.76-gcc6.patch
|
2013-03-02 02:02:37 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2013-11-17 21:40:05 +00:00
|
|
|
BuildRequires: zlib-devel, lzo-devel, xz-devel
|
2013-03-02 02:02:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%description
|
2013-03-02 02:02:37 +00:00
|
|
|
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. And there is
|
|
|
|
neither concept of data tables nor data types. Records are organized
|
|
|
|
in hash table or B+ tree.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries for applications using Kyoto Cabinet
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Provides: %{name}-lib = %{version}-%{release}
|
|
|
|
Provides: %{name}-lib%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-lib < 1.2.76-3
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
The kyotocabinet-libs package provides the essential shared libraries
|
|
|
|
for any Kyoto Cabinet client program or interface.
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%package devel
|
2013-03-02 02:02:37 +00:00
|
|
|
Summary: Development files for Kyoto Cabinet
|
2010-12-13 18:47:20 +00:00
|
|
|
Group: Development/Libraries
|
2013-11-17 21:40:05 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}, pkgconfig
|
2010-12-13 18:47:20 +00:00
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%description devel
|
|
|
|
The kyotocabinet-devel package contains libraries and header files for
|
|
|
|
developing applications that use Kyoto Cabinet.
|
2010-12-13 18:47:20 +00:00
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%package apidocs
|
|
|
|
Summary: API documentation for Kyoto Cabinet library
|
|
|
|
Group: Documentation
|
|
|
|
%if 0%{?fedora}%{?rhel} >= 6
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
Provides: %{name}-api-doc = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-api-doc < 1.2.76-3
|
2010-12-13 18:47:20 +00:00
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%description apidocs
|
|
|
|
The kyotocabinet-apidocs package contains API documentation for developing
|
|
|
|
applications that use Kyoto Cabinet.
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-11-17 21:40:05 +00:00
|
|
|
%patch0 -p1 -b .cflags
|
|
|
|
%patch1 -p1 -b .8-byte-atomics
|
2013-03-02 02:02:37 +00:00
|
|
|
%if 0%{?rhel} == 5
|
2013-11-17 21:40:05 +00:00
|
|
|
%patch2 -p1 -b .tr1_hashtable
|
2013-03-02 02:02:37 +00:00
|
|
|
%endif
|
2016-08-14 19:03:39 +00:00
|
|
|
%patch3 -p1 -b .gcc6
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-17 21:40:05 +00:00
|
|
|
%configure --disable-opt --enable-lzo --enable-lzma
|
2013-03-02 02:02:37 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2013-03-02 02:02:37 +00:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
|
|
|
|
|
|
|
# Don't install any static .a file
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libkyotocabinet.a
|
|
|
|
|
|
|
|
# Clean up for later usage in documentation
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
2010-12-13 18:47:20 +00:00
|
|
|
|
2013-11-17 21:40:05 +00:00
|
|
|
%check
|
|
|
|
# All kcutilmgr compression tests on RHEL 5 (ppc) just cause 99.9% CPU
|
|
|
|
# usage but do not continue or simply fail. However all the other tests
|
|
|
|
# including compression ones work as expected. What is the impact here?
|
|
|
|
%if 0%{?rhel} == 5 && "%{_arch}" == "ppc"
|
|
|
|
sed -e '/$(RUNENV) $(RUNCMD) .\/kcutilmgr comp /d' -i Makefile
|
|
|
|
%endif
|
|
|
|
make check
|
|
|
|
|
2010-12-13 18:47:20 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
2010-12-13 18:47:20 +00:00
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%postun libs -p /sbin/ldconfig
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-03-02 02:02:37 +00:00
|
|
|
%doc doc/{command.html,common.css,icon16.png}
|
2010-12-13 18:47:20 +00:00
|
|
|
%{_bindir}/kccachetest
|
|
|
|
%{_bindir}/kcdirmgr
|
|
|
|
%{_bindir}/kcdirtest
|
|
|
|
%{_bindir}/kcforestmgr
|
|
|
|
%{_bindir}/kcforesttest
|
|
|
|
%{_bindir}/kcgrasstest
|
|
|
|
%{_bindir}/kchashmgr
|
|
|
|
%{_bindir}/kchashtest
|
|
|
|
%{_bindir}/kclangctest
|
|
|
|
%{_bindir}/kcpolymgr
|
|
|
|
%{_bindir}/kcpolytest
|
|
|
|
%{_bindir}/kcprototest
|
|
|
|
%{_bindir}/kcstashtest
|
|
|
|
%{_bindir}/kctreemgr
|
|
|
|
%{_bindir}/kctreetest
|
|
|
|
%{_bindir}/kcutilmgr
|
|
|
|
%{_bindir}/kcutiltest
|
2013-03-02 02:02:37 +00:00
|
|
|
%{_mandir}/man1/kccachetest.1*
|
|
|
|
%{_mandir}/man1/kcdirmgr.1*
|
|
|
|
%{_mandir}/man1/kcdirtest.1*
|
|
|
|
%{_mandir}/man1/kcforestmgr.1*
|
|
|
|
%{_mandir}/man1/kcforesttest.1*
|
|
|
|
%{_mandir}/man1/kcgrasstest.1*
|
|
|
|
%{_mandir}/man1/kchashmgr.1*
|
|
|
|
%{_mandir}/man1/kchashtest.1*
|
|
|
|
%{_mandir}/man1/kclangctest.1*
|
|
|
|
%{_mandir}/man1/kcpolymgr.1*
|
|
|
|
%{_mandir}/man1/kcpolytest.1*
|
|
|
|
%{_mandir}/man1/kcprototest.1*
|
|
|
|
%{_mandir}/man1/kcstashtest.1*
|
|
|
|
%{_mandir}/man1/kctreemgr.1*
|
|
|
|
%{_mandir}/man1/kctreetest.1*
|
|
|
|
%{_mandir}/man1/kcutilmgr.1*
|
|
|
|
%{_mandir}/man1/kcutiltest.1*
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
2017-02-12 15:02:08 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING FOSSEXCEPTION LINKEXCEPTION
|
|
|
|
%doc ChangeLog
|
2013-03-02 02:02:37 +00:00
|
|
|
%{_libdir}/libkyotocabinet.so.*
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/kccachedb.h
|
|
|
|
%{_includedir}/kccommon.h
|
|
|
|
%{_includedir}/kccompare.h
|
|
|
|
%{_includedir}/kccompress.h
|
|
|
|
%{_includedir}/kcdb.h
|
|
|
|
%{_includedir}/kcdbext.h
|
|
|
|
%{_includedir}/kcdirdb.h
|
|
|
|
%{_includedir}/kcfile.h
|
2013-11-17 21:40:05 +00:00
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
%{_includedir}/kcfunctional.h
|
|
|
|
%endif
|
2010-12-13 18:47:20 +00:00
|
|
|
%{_includedir}/kchashdb.h
|
|
|
|
%{_includedir}/kclangc.h
|
|
|
|
%{_includedir}/kcmap.h
|
|
|
|
%{_includedir}/kcplantdb.h
|
|
|
|
%{_includedir}/kcpolydb.h
|
|
|
|
%{_includedir}/kcprotodb.h
|
|
|
|
%{_includedir}/kcregex.h
|
|
|
|
%{_includedir}/kcstashdb.h
|
2011-09-02 01:51:23 +00:00
|
|
|
%{_includedir}/kctextdb.h
|
2010-12-13 18:47:20 +00:00
|
|
|
%{_includedir}/kcthread.h
|
|
|
|
%{_includedir}/kcutil.h
|
|
|
|
%{_libdir}/libkyotocabinet.so
|
|
|
|
%{_libdir}/pkgconfig/kyotocabinet.pc
|
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
%files apidocs
|
2010-12-13 18:47:20 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-03-02 02:02:37 +00:00
|
|
|
%doc COPYING doc/api/* kyotocabinet.idl
|
2010-12-13 18:47:20 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-02-07 20:44:25 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 00:56:05 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 18:10:48 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-12 15:02:08 +00:00
|
|
|
* Sun Feb 12 2017 Robert Scheck <robert@fedoraproject.org> 1.2.76-13
|
|
|
|
- Replace patch from openSUSE by the Debian one to not only build
|
|
|
|
kyotocabinet with GCC >= 6 but also with GCC >= 7 (#1307706 #c15)
|
|
|
|
|
2017-02-10 18:04:24 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-14 19:03:39 +00:00
|
|
|
* Sun Aug 14 2016 Robert Scheck <robert@fedoraproject.org> 1.2.76-11
|
|
|
|
- Added patch from openSUSE to build with GCC >= 6 (#1307706)
|
|
|
|
|
2016-02-04 02:35:34 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 13:50:51 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-03 14:00:51 +00:00
|
|
|
* Sun May 03 2015 Kalev Lember <kalevlember@gmail.com> - 1.2.76-8
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2014-08-17 01:20:38 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:50:19 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-17 21:40:05 +00:00
|
|
|
* Sun Nov 17 2013 Robert Scheck <robert@fedoraproject.org> 1.2.76-5
|
|
|
|
- Corrected wrong dependency of -devel from main to -libs package
|
|
|
|
- Always enable 8 byte atomics patch e.g. for ppc32 (#1007732 #c5)
|
|
|
|
- Fixed previously added patch for building under RHEL 5 (#915123)
|
|
|
|
- Added dependencies to enable lzo and lzma/xz compression support
|
|
|
|
- Enabled the built-in test suite (with limitations at RHEL 5 ppc)
|
|
|
|
|
2013-08-03 23:00:34 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-02 02:02:37 +00:00
|
|
|
* Sat Mar 02 2013 Robert Scheck <robert@fedoraproject.org> 1.2.76-3
|
|
|
|
- Splitted main package into an additional library subpackage
|
|
|
|
- Added patch and workaround for building under RHEL 5 (#915123)
|
|
|
|
- Corrected duplicate doc packaging, renamed package to apidocs
|
|
|
|
|
2013-02-14 03:38:35 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-12 12:48:23 +00:00
|
|
|
* Sat Jan 12 2013 Robert Scheck <robert@fedoraproject.org> - 1.2.76-1
|
|
|
|
- Update to 1.2.76 (#760939)
|
|
|
|
|
2012-07-19 18:40:20 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-28 18:53:06 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-4
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-13 07:02:09 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-19 22:12:12 +00:00
|
|
|
* Wed Oct 19 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-2
|
|
|
|
- Prevent -march=native build flag [735822], credit Ville Skyatta
|
|
|
|
<ville.skyata@iki.fi>
|
|
|
|
|
2013-11-17 21:40:05 +00:00
|
|
|
* Wed Aug 31 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-1
|
2011-09-02 01:51:23 +00:00
|
|
|
- Update to latest upstream
|
|
|
|
|
2011-02-08 03:29:04 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.31-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-03 19:42:46 +00:00
|
|
|
* Mon Jan 3 2011 Casey Dahlin <cjdahlin@ncsu.edu> - 1.2.31-2
|
|
|
|
- Correct files list for soname bump
|
|
|
|
|
2011-09-02 01:51:23 +00:00
|
|
|
* Mon Jan 3 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.31-1
|
2011-01-03 19:00:33 +00:00
|
|
|
- Update to latest upstream
|
|
|
|
|
2011-09-02 01:51:23 +00:00
|
|
|
* Mon Dec 13 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.29-1
|
2010-12-13 19:04:47 +00:00
|
|
|
- Update to latest upstream
|
|
|
|
|
2011-09-02 01:51:23 +00:00
|
|
|
* Fri Dec 10 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-2
|
2010-12-13 18:47:20 +00:00
|
|
|
- Separate out devel-doc package
|
|
|
|
- Make sure we own our documentation folder
|
|
|
|
- Kill rpath
|
|
|
|
|
2011-09-02 01:51:23 +00:00
|
|
|
* Wed Dec 8 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-1
|
2010-12-13 18:47:20 +00:00
|
|
|
- Initial packaging
|