2 Star 1 Fork 0

mirrors_OpenMandrivaAssociation/tokyotyrant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tokyotyrant.spec 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
Bernhard Rosenkraenzer 提交于 2024-10-17 01:59 . Update http URL to https
%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/*~
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_OpenMandrivaAssociation/tokyotyrant.git
git@gitee.com:mirrors_OpenMandrivaAssociation/tokyotyrant.git
mirrors_OpenMandrivaAssociation
tokyotyrant
tokyotyrant
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385