|
|
|
@ -1,17 +1,14 @@
|
|
|
|
|
Summary: A straightforward implementation of DBM
|
|
|
|
|
Name: kyotocabinet
|
|
|
|
|
Version: 1.2.76
|
|
|
|
|
Release: 17%{?dist}
|
|
|
|
|
License: GPLv3
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
URL: http://fallabs.com/%{name}/
|
|
|
|
|
Source: http://fallabs.com/%{name}/pkg/%{name}-%{version}.tar.gz
|
|
|
|
|
Version: 1.2.80
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
License: GPL-3.0-only
|
|
|
|
|
URL: https://dbmx.net/%{name}/
|
|
|
|
|
Source: https://dbmx.net/%{name}/pkg/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: kyotocabinet-1.2.76-cflags.patch
|
|
|
|
|
Patch1: kyotocabinet-1.2.76-8-byte-atomics.patch
|
|
|
|
|
Patch2: kyotocabinet-1.2.76-tr1_hashtable.patch
|
|
|
|
|
Patch3: kyotocabinet-1.2.76-gcc6.patch
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
BuildRequires: zlib-devel, lzo-devel, xz-devel
|
|
|
|
|
BuildRequires: gcc-c++, zlib-devel, lzo-devel, xz-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Kyoto Cabinet is a library of routines for managing a database. The
|
|
|
|
@ -24,7 +21,6 @@ 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
|
|
|
|
@ -35,7 +31,6 @@ for any Kyoto Cabinet client program or interface.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for Kyoto Cabinet
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}, pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
@ -44,10 +39,7 @@ developing applications that use Kyoto Cabinet.
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
@ -56,21 +48,14 @@ The kyotocabinet-apidocs package contains API documentation for developing
|
|
|
|
|
applications that use Kyoto Cabinet.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .cflags
|
|
|
|
|
%patch1 -p1 -b .8-byte-atomics
|
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
|
%patch2 -p1 -b .tr1_hashtable
|
|
|
|
|
%endif
|
|
|
|
|
%patch3 -p1 -b .gcc6
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-opt --enable-lzo --enable-lzma
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
# Don't install any static .a file
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libkyotocabinet.a
|
|
|
|
@ -79,20 +64,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libkyotocabinet.a
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc doc/{command.html,common.css,icon16.png}
|
|
|
|
|
%{_bindir}/kccachetest
|
|
|
|
|
%{_bindir}/kcdirmgr
|
|
|
|
@ -130,14 +106,12 @@ make check
|
|
|
|
|
%{_mandir}/man1/kcutiltest.1*
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING FOSSEXCEPTION LINKEXCEPTION
|
|
|
|
|
%doc ChangeLog
|
|
|
|
|
%{_libdir}/libkyotocabinet.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_includedir}/kccachedb.h
|
|
|
|
|
%{_includedir}/kccommon.h
|
|
|
|
|
%{_includedir}/kccompare.h
|
|
|
|
@ -146,9 +120,6 @@ make check
|
|
|
|
|
%{_includedir}/kcdbext.h
|
|
|
|
|
%{_includedir}/kcdirdb.h
|
|
|
|
|
%{_includedir}/kcfile.h
|
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
|
%{_includedir}/kcfunctional.h
|
|
|
|
|
%endif
|
|
|
|
|
%{_includedir}/kchashdb.h
|
|
|
|
|
%{_includedir}/kclangc.h
|
|
|
|
|
%{_includedir}/kcmap.h
|
|
|
|
@ -164,10 +135,76 @@ make check
|
|
|
|
|
%{_libdir}/pkgconfig/kyotocabinet.pc
|
|
|
|
|
|
|
|
|
|
%files apidocs
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING doc/api/* kyotocabinet.idl
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.2.80-7
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.2.80-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.80-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.80-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.80-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.80-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 18 2023 Peng Wu <pwu@redhat.com> - 1.2.80-2
|
|
|
|
|
- Migrate to SPDX license
|
|
|
|
|
|
|
|
|
|
* Mon Apr 17 2023 Peng Wu <pwu@redhat.com> - 1.2.80-1
|
|
|
|
|
- Update to 1.2.80
|
|
|
|
|
- Resolves: RHBZ#2186606
|
|
|
|
|
|
|
|
|
|
* Wed Apr 12 2023 Florian Weimer <fweimer@redhat.com> - 1.2.79-3
|
|
|
|
|
- Port configure script to C99 (#2186199)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.79-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2022 Peng Wu <pwu@redhat.com> - 1.2.79-1
|
|
|
|
|
- Update to 1.2.79
|
|
|
|
|
|
|
|
|
|
* Wed Sep 23 2020 Robert Scheck <robert@fedoraproject.org> 1.2.78-1
|
|
|
|
|
- Update to 1.2.78 (#1858682)
|
|
|
|
|
- Added patch to ignore randomly failing tests (#1863664)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.77-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.2.77-4
|
|
|
|
|
- Use make macros
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.77-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.77-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Mar 25 2019 Robert Scheck <robert@fedoraproject.org> 1.2.77-1
|
|
|
|
|
- Update to 1.2.77
|
|
|
|
|
|
|
|
|
|
* Fri Mar 1 2019 Peng Wu <pwu@redhat.com> - 1.2.76-21
|
|
|
|
|
- Switch back to use -O2 for s390x
|
|
|
|
|
|
|
|
|
|
* Wed Feb 27 2019 Parag Nemade <pnemade AT redhat DOT com> - 1.2.76-20
|
|
|
|
|
- Fix s390x compilation issue by changing -O2 to -O1 (rh#1675243)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-19
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 1.2.76-17
|
|
|
|
|
- Rebuild to fix GCC 8 mis-compilation
|
|
|
|
|
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
|
|
|
|
|