19a642d
Summary:        A straightforward implementation of DBM
Casey Dahlin af991d6
Name:           kyotocabinet
ce02aa8
Version:        1.2.77
42e23c3
Release:        4%{?dist}
Casey Dahlin af991d6
License:        GPLv3
ce02aa8
URL:            https://fallabs.com/%{name}/
ce02aa8
Source:         https://fallabs.com/%{name}/pkg/%{name}-%{version}.tar.gz
c213903
Patch0:         kyotocabinet-1.2.76-cflags.patch
c213903
Patch1:         kyotocabinet-1.2.76-8-byte-atomics.patch
19a642d
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
13ed0b5
BuildRequires:  gcc-c++, zlib-devel, lzo-devel, xz-devel
Casey Dahlin af991d6
Casey Dahlin af991d6
%description
19a642d
Kyoto Cabinet is a library of routines for managing a database. The
19a642d
database is a simple data file containing records, each is a pair of
19a642d
a key and a value. Every key and value is serial bytes with variable
19a642d
length. Both binary data and character string can be used as a key
19a642d
and a value. Each key must be unique within a database. And there is
19a642d
neither concept of data tables nor data types. Records are organized
19a642d
in hash table or B+ tree.
19a642d
19a642d
%package libs
19a642d
Summary:        Libraries for applications using Kyoto Cabinet
19a642d
Provides:       %{name}-lib = %{version}-%{release}
19a642d
Provides:       %{name}-lib%{?_isa} = %{version}-%{release}
19a642d
Obsoletes:      %{name}-lib < 1.2.76-3
19a642d
19a642d
%description libs
19a642d
The kyotocabinet-libs package provides the essential shared libraries
19a642d
for any Kyoto Cabinet client program or interface.
Casey Dahlin af991d6
Casey Dahlin af991d6
%package        devel
19a642d
Summary:        Development files for Kyoto Cabinet
c213903
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}, pkgconfig
Casey Dahlin af991d6
19a642d
%description devel
19a642d
The kyotocabinet-devel package contains libraries and header files for
19a642d
developing applications that use Kyoto Cabinet.
Casey Dahlin af991d6
19a642d
%package apidocs
19a642d
Summary:        API documentation for Kyoto Cabinet library
19a642d
BuildArch:      noarch
19a642d
Provides:       %{name}-api-doc = %{version}-%{release}
19a642d
Obsoletes:      %{name}-api-doc < 1.2.76-3
Casey Dahlin af991d6
19a642d
%description apidocs
19a642d
The kyotocabinet-apidocs package contains API documentation for developing
19a642d
applications that use Kyoto Cabinet.
Casey Dahlin af991d6
Casey Dahlin af991d6
%prep
Casey Dahlin af991d6
%setup -q
c213903
%patch0 -p1 -b .cflags
c213903
%patch1 -p1 -b .8-byte-atomics
Casey Dahlin af991d6
Casey Dahlin af991d6
%build
c213903
%configure --disable-opt --enable-lzo --enable-lzma
42e23c3
%make_build
Casey Dahlin af991d6
Casey Dahlin af991d6
%install
42e23c3
%make_install
19a642d
19a642d
# Don't install any static .a file
19a642d
rm -f $RPM_BUILD_ROOT%{_libdir}/libkyotocabinet.a
19a642d
19a642d
# Clean up for later usage in documentation
19a642d
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
Casey Dahlin af991d6
c213903
%check
c213903
make check
c213903
fb2e870
%ldconfig_scriptlets libs
Casey Dahlin af991d6
Casey Dahlin af991d6
%files
19a642d
%doc doc/{command.html,common.css,icon16.png}
Casey Dahlin af991d6
%{_bindir}/kccachetest
Casey Dahlin af991d6
%{_bindir}/kcdirmgr
Casey Dahlin af991d6
%{_bindir}/kcdirtest
Casey Dahlin af991d6
%{_bindir}/kcforestmgr
Casey Dahlin af991d6
%{_bindir}/kcforesttest
Casey Dahlin af991d6
%{_bindir}/kcgrasstest
Casey Dahlin af991d6
%{_bindir}/kchashmgr
Casey Dahlin af991d6
%{_bindir}/kchashtest
Casey Dahlin af991d6
%{_bindir}/kclangctest
Casey Dahlin af991d6
%{_bindir}/kcpolymgr
Casey Dahlin af991d6
%{_bindir}/kcpolytest
Casey Dahlin af991d6
%{_bindir}/kcprototest
Casey Dahlin af991d6
%{_bindir}/kcstashtest
Casey Dahlin af991d6
%{_bindir}/kctreemgr
Casey Dahlin af991d6
%{_bindir}/kctreetest
Casey Dahlin af991d6
%{_bindir}/kcutilmgr
Casey Dahlin af991d6
%{_bindir}/kcutiltest
19a642d
%{_mandir}/man1/kccachetest.1*
19a642d
%{_mandir}/man1/kcdirmgr.1*
19a642d
%{_mandir}/man1/kcdirtest.1*
19a642d
%{_mandir}/man1/kcforestmgr.1*
19a642d
%{_mandir}/man1/kcforesttest.1*
19a642d
%{_mandir}/man1/kcgrasstest.1*
19a642d
%{_mandir}/man1/kchashmgr.1*
19a642d
%{_mandir}/man1/kchashtest.1*
19a642d
%{_mandir}/man1/kclangctest.1*
19a642d
%{_mandir}/man1/kcpolymgr.1*
19a642d
%{_mandir}/man1/kcpolytest.1*
19a642d
%{_mandir}/man1/kcprototest.1*
19a642d
%{_mandir}/man1/kcstashtest.1*
19a642d
%{_mandir}/man1/kctreemgr.1*
19a642d
%{_mandir}/man1/kctreetest.1*
19a642d
%{_mandir}/man1/kcutilmgr.1*
19a642d
%{_mandir}/man1/kcutiltest.1*
19a642d
19a642d
%files libs
1e16abd
%{!?_licensedir:%global license %%doc}
1e16abd
%license COPYING FOSSEXCEPTION LINKEXCEPTION
1e16abd
%doc ChangeLog
19a642d
%{_libdir}/libkyotocabinet.so.*
Casey Dahlin af991d6
Casey Dahlin af991d6
%files devel
Casey Dahlin af991d6
%{_includedir}/kccachedb.h
Casey Dahlin af991d6
%{_includedir}/kccommon.h
Casey Dahlin af991d6
%{_includedir}/kccompare.h
Casey Dahlin af991d6
%{_includedir}/kccompress.h
Casey Dahlin af991d6
%{_includedir}/kcdb.h
Casey Dahlin af991d6
%{_includedir}/kcdbext.h
Casey Dahlin af991d6
%{_includedir}/kcdirdb.h
Casey Dahlin af991d6
%{_includedir}/kcfile.h
Casey Dahlin af991d6
%{_includedir}/kchashdb.h
Casey Dahlin af991d6
%{_includedir}/kclangc.h
Casey Dahlin af991d6
%{_includedir}/kcmap.h
Casey Dahlin af991d6
%{_includedir}/kcplantdb.h
Casey Dahlin af991d6
%{_includedir}/kcpolydb.h
Casey Dahlin af991d6
%{_includedir}/kcprotodb.h
Casey Dahlin af991d6
%{_includedir}/kcregex.h
Casey Dahlin af991d6
%{_includedir}/kcstashdb.h
Casey Dahlin bebfb1e
%{_includedir}/kctextdb.h
Casey Dahlin af991d6
%{_includedir}/kcthread.h
Casey Dahlin af991d6
%{_includedir}/kcutil.h
Casey Dahlin af991d6
%{_libdir}/libkyotocabinet.so
Casey Dahlin af991d6
%{_libdir}/pkgconfig/kyotocabinet.pc
Casey Dahlin af991d6
19a642d
%files apidocs
19a642d
%doc COPYING doc/api/* kyotocabinet.idl
Casey Dahlin af991d6
Casey Dahlin af991d6
%changelog
42e23c3
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.2.77-4
42e23c3
- Use make macros
42e23c3
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
42e23c3
c7e7097
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.77-3
c7e7097
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c7e7097
2f889a8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.77-2
2f889a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2f889a8
ce02aa8
* Mon Mar 25 2019 Robert Scheck <robert@fedoraproject.org> 1.2.77
ce02aa8
- Update to 1.2.77
ce02aa8
Peng Wu eb93de7
* Fri Mar  1 2019 Peng Wu <pwu@redhat.com> - 1.2.76-21
Peng Wu eb93de7
- Switch back to use -O2 for s390x
Peng Wu eb93de7
5b2a28c
* Wed Feb 27 2019 Parag Nemade <pnemade AT redhat DOT com> - 1.2.76-20
5b2a28c
- Fix s390x compilation issue by changing -O2 to -O1 (rh#1675243)
5b2a28c
c4d6838
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-19
c4d6838
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c4d6838
3142192
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-18
3142192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3142192
083c61b
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 1.2.76-17
083c61b
- Rebuild to fix GCC 8 mis-compilation
083c61b
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
083c61b
339bfd2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-16
339bfd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
339bfd2
d80ba21
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-15
d80ba21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d80ba21
29b2915
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-14
29b2915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29b2915
1e16abd
* Sun Feb 12 2017 Robert Scheck <robert@fedoraproject.org> 1.2.76-13
1e16abd
- Replace patch from openSUSE by the Debian one to not only build
1e16abd
  kyotocabinet with GCC >= 6 but also with GCC >= 7 (#1307706 #c15)
1e16abd
2ef6cad
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-12
2ef6cad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2ef6cad
988ed3a
* Sun Aug 14 2016 Robert Scheck <robert@fedoraproject.org> 1.2.76-11
988ed3a
- Added patch from openSUSE to build with GCC >= 6 (#1307706)
988ed3a
863afbd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.76-10
863afbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
863afbd
7cadac7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-9
7cadac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7cadac7
d664b3d
* Sun May 03 2015 Kalev Lember <kalevlember@gmail.com> - 1.2.76-8
d664b3d
- Rebuilt for GCC 5 C++11 ABI change
d664b3d
243c8d6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-7
243c8d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
243c8d6
4b626c6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-6
4b626c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b626c6
c213903
* Sun Nov 17 2013 Robert Scheck <robert@fedoraproject.org> 1.2.76-5
c213903
- Corrected wrong dependency of -devel from main to -libs package
c213903
- Always enable 8 byte atomics patch e.g. for ppc32 (#1007732 #c5)
c213903
- Fixed previously added patch for building under RHEL 5 (#915123)
c213903
- Added dependencies to enable lzo and lzma/xz compression support
c213903
- Enabled the built-in test suite (with limitations at RHEL 5 ppc)
c213903
da6e6df
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-4
da6e6df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
da6e6df
19a642d
* Sat Mar 02 2013 Robert Scheck <robert@fedoraproject.org> 1.2.76-3
19a642d
- Splitted main package into an additional library subpackage
19a642d
- Added patch and workaround for building under RHEL 5 (#915123)
19a642d
- Corrected duplicate doc packaging, renamed package to apidocs
19a642d
004bc94
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.76-2
004bc94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
004bc94
3f5e0e0
* Sat Jan 12 2013 Robert Scheck <robert@fedoraproject.org> - 1.2.76-1
3f5e0e0
- Update to 1.2.76 (#760939)
3f5e0e0
5b2759e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-5
5b2759e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5b2759e
5400674
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-4
5400674
- Rebuilt for c++ ABI breakage
5400674
4553a14
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.70-3
4553a14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4553a14
Casey Dahlin 28048c7
* Wed Oct 19 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-2
Casey Dahlin 28048c7
- Prevent -march=native build flag [735822], credit Ville Skyatta
Casey Dahlin 28048c7
  <ville.skyata@iki.fi>
Casey Dahlin 28048c7
c213903
* Wed Aug 31 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-1
Casey Dahlin bebfb1e
- Update to latest upstream
Casey Dahlin bebfb1e
e4cf271
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.31-3
e4cf271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e4cf271
Casey Dahlin cb76934
* Mon Jan 3 2011 Casey Dahlin <cjdahlin@ncsu.edu> - 1.2.31-2
Casey Dahlin cb76934
- Correct files list for soname bump
Casey Dahlin cb76934
Casey Dahlin bebfb1e
* Mon Jan 3 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.31-1
Casey Dahlin 2da5d56
- Update to latest upstream
Casey Dahlin 2da5d56
Casey Dahlin bebfb1e
* Mon Dec 13 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.29-1
Casey Dahlin ae55e67
- Update to latest upstream
Casey Dahlin ae55e67
Casey Dahlin bebfb1e
* Fri Dec 10 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-2
Casey Dahlin af991d6
- Separate out devel-doc package
Casey Dahlin af991d6
- Make sure we own our documentation folder
Casey Dahlin af991d6
- Kill rpath
Casey Dahlin af991d6
Casey Dahlin bebfb1e
* Wed Dec 8 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-1
Casey Dahlin af991d6
- Initial packaging