Blame SPECS/kyotocabinet.spec

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