3 Star 3 Fork 5

Gitee 极速下载/libshmcache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/happyfish100/libshmcache
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libshmcache.spec 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
%define LibShmcacheTool libshmcache-tool
%define LibShmcacheConfig libshmcache-config
%define LibShmcacheDevel libshmcache-devel
%define CommitVersion %(echo $COMMIT_VERSION)
Name: libshmcache
Version: 1.0.8
Release: 1%{?dist}
Summary: a high performance local share memory cache for multi processes
License: LGPL
Group: Arch/Tech
URL: http://github.com/happyfish100/libshmcache/
Source: http://github.com/happyfish100/libshmcache/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libfastcommon-devel >= 1.0.56
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libfastcommon >= 1.0.56
%description
libshmcache is a local share memory cache for multi processes.
it is high performance because read is lockless.
this project contains C library and PHP extension.
commit version: %{CommitVersion}
%package tool
Summary: tool commands
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tool
This package provides tool commands
commit version: %{CommitVersion}
%package config
Summary: libshmcache config file
%description config
This package provides libshmcache config file
commit version: %{CommitVersion}
%package devel
Summary: Development header file
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the header files of libshmcache
commit version: %{CommitVersion}
%prep
%setup -q
%build
cd src && make clean && make
cd tools && make clean && make
%install
rm -rf %{buildroot}
cd src && DESTDIR=$RPM_BUILD_ROOT make install
cd tools && DESTDIR=$RPM_BUILD_ROOT make install
mkdir -p $RPM_BUILD_ROOT/etc/
cp -f ../../conf/libshmcache.conf $RPM_BUILD_ROOT/etc/
%post
%preun
%postun
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/usr/lib64/libshmcache.so*
/usr/lib/libshmcache.so*
%files tool
/usr/bin/shmcache_set
/usr/bin/shmcache_get
/usr/bin/shmcache_delete
/usr/bin/shmcache_stats
/usr/bin/shmcache_remove_all
%files config
/etc/libshmcache.conf
%files devel
%defattr(-,root,root,-)
/usr/include/shmcache/*
%changelog
* Fri Dec 23 2016 Yu Qing <384681@qq.com>
- first RPM release (1.0)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/libshmcache.git
git@gitee.com:mirrors/libshmcache.git
mirrors
libshmcache
libshmcache
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385