代码拉取完成,页面将自动刷新
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
Summary: Tokyo Tyrant: network interface of Tokyo Cabinet
Name: tokyotyrant
Version: 1.1.41
Release: 3
License: LGPLv2.1+
Group: System/Libraries
Url: https://1978th.net/tokyotyrant/
Source0: http://1978th.net/tokyotyrant/%{name}-%{version}.tar.gz
Patch0: tokyotyrant-1.1.33-mdv_conf.diff
Patch1: tokyotyrant-1.1.33-sonames.diff
BuildRequires: bzip2-devel
BuildRequires: lua-devel
BuildRequires: pkgconfig(tokyocabinet)
BuildRequires: pkgconfig(zlib)
%description
Tokyo Tyrant is a package of network interface to the DBM called Tokyo Cabinet.
Though the DBM has high performance, you might bother in case that multiple
processes share the same database, or remote processes access the database.
Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo
Cabinet. It is composed of the server process managing a database and its
access library for client applications.
%files
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man8/*
#----------------------------------------------------------------------------
%package -n %{libname}
Summary: Tokyo Cabinet: a modern implementation of DBM
Group: System/Libraries
%description -n %{libname}
Tokyo Tyrant is a package of network interface to the DBM called Tokyo Cabinet.
Though the DBM has high performance, you might bother in case that multiple
processes share the same database, or remote processes access the database.
Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo
Cabinet. It is composed of the server process managing a database and its
access library for client applications.
%files -n %{libname}
%doc COPYING ChangeLog README THANKS doc/* ext/*.lua
%{_libdir}/libtokyotyrant.so.%{major}*
%{_libdir}/ttskeldir.so
%{_libdir}/ttskelmock.so
%{_libdir}/ttskelnull.so
%{_libdir}/ttskelproxy.so
#----------------------------------------------------------------------------
%package -n %{devname}
Summary: Static library and header files for the tokyotyrant library
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
%description -n %{devname}
Tokyo Tyrant is a package of network interface to the DBM called Tokyo Cabinet.
Though the DBM has high performance, you might bother in case that multiple
processes share the same database, or remote processes access the database.
Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo
Cabinet. It is composed of the server process managing a database and its
access library for client applications.
This package contains the static library and its header files.
%files -n %{devname}
%{_includedir}/*
%{_libdir}/libtokyotyrant.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/tokyotyrant.pc
%{_mandir}/man3/*
#----------------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
%patch1 -p0
# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" configure*
%build
rm -f configure
autoconf
%configure2_5x \
--enable-lua \
--with-tc=%{_prefix} \
--with-zlib=%{_prefix} \
--with-bzip=%{_prefix} \
--with-lua=%{_prefix}
%make
%install
%makeinstall_std
# cleanup
rm -rf %{buildroot}%{_datadir}/%{name}
rm -f doc/*~
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。