-
Notifications
You must be signed in to change notification settings - Fork 1
/
libshmcache.spec
executable file
·98 lines (73 loc) · 2.18 KB
/
libshmcache.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
%define LibShmcacheTool libshmcache-tool
%define LibShmcacheConfig libshmcache-config
%define LibShmcacheDevel libshmcache-devel
%define LibShmcacheDebuginfo libshmcache-debuginfo
%define CommitVersion %(echo $COMMIT_VERSION)
Name: libshmcache
Version: 1.0.4
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.35
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libfastcommon >= 1.0.35
%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 <[email protected]>
- first RPM release (1.0)