forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libmemcached.spec
151 lines (109 loc) · 4.04 KB
/
libmemcached.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Name: libmemcached
Summary: Client library and command line tools for memcached server
Version: 0.44
Release: 1%{?dist}
License: BSD
Group: System Environment/Libraries
URL: http://libmemcached.org/
Source0: http://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
# Add -lsasl2 to libmemcached.pc
# See http://lists.libmemcached.org/pipermail/libmemcached-discuss/2010-October/002207.html
Patch0: libmemcached-sasl.patch
# checked during configure (for test suite)
BuildRequires: memcached
BuildRequires: cyrus-sasl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
libmemcached is a C client library to the memcached server
(http://danga.com/memcached). It has been designed to be light on memory
usage, and provide full access to server side methods.
It also implements several command line tools:
memcat - Copy the value of a key to standard output.
memflush - Flush the contents of your servers.
memrm - Remove a key(s) from the server.
memstat - Dump the stats of your servers to standard output.
memslap - Generate testing loads on a memcached cluster.
memcp - Copy files to memcached servers.
memerror - Creates human readable messages from libmemcached error codes.
%package devel
Summary: Header files and development libraries for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
This package contains the header files and development libraries
for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%prep
%setup -q
%patch0 -p1 -b .sasl
%{__rm} -f libmemcached/hsieh_hash.c
%{__mkdir} examples
%{__cp} -p tests/*.{c,cpp,h} examples/
%build
%configure
%{__make} %{_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
%check
# For documentation only:
# test suite cannot run in mock (same port use for memcache servers on all arch)
# All tests completed successfully
# diff output.res output.cmp fails but result depend on server version
#%{__make} test
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root,-)
%doc AUTHORS COPYING README THANKS TODO ChangeLog
%{_bindir}/mem*
%exclude %{_libdir}/libmemcached.la
%exclude %{_libdir}/libmemcachedprotocol.la
%exclude %{_libdir}/libmemcachedutil.la
%exclude %{_libdir}/libhashkit.la
%{_libdir}/libhashkit.so.0*
%{_libdir}/libmemcached.so.6*
%{_libdir}/libmemcachedprotocol.so.0*
%{_libdir}/libmemcachedutil.so.1*
%{_mandir}/man1/mem*
%files devel
%defattr (-,root,root,-)
%doc examples
%{_includedir}/libmemcached
%{_includedir}/libhashkit
%{_libdir}/libhashkit.so
%{_libdir}/libmemcached.so
%{_libdir}/libmemcachedprotocol.so
%{_libdir}/libmemcachedutil.so
%{_libdir}/pkgconfig/libmemcached.pc
%{_mandir}/man3/libmemcached*.3.gz
%{_mandir}/man3/memcached_*.3.gz
%{_mandir}/man3/hashkit*
%changelog
* Wed Oct 20 2010 David Hrbáč <[email protected]> - 0.44-1
- new upstream release
* Thu May 06 2010 David Hrbáč <[email protected]> - 0.40-1
- new upstream version
* Wed Dec 02 2009 David Hrbáč <[email protected]> - 0.35-1
- new upstream version
* Fri Sep 18 2009 David Hrbáč <[email protected]> - 0.32-1
- new upstream version
* Fri Sep 18 2009 David Hrbáč <[email protected]> - 0.31-1
- new upstream version
* Fri Sep 18 2009 David Hrbáč <[email protected]> - 0.30-2
- initial rebuild
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 0.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Jun 14 2009 Remi Collet <[email protected]> - 0.30-1
- update to 0.30
* Tue May 19 2009 Remi Collet <[email protected]> - 0.29-1
- update to 0.29
* Fri May 01 2009 Remi Collet <[email protected]> - 0.28-2
- add upstream patch to disable nonfree hsieh hash method
* Sat Apr 25 2009 Remi Collet <[email protected]> - 0.28-1
- Initial RPM from Brian Aker spec
- create -devel subpackage
- add %%post %%postun %%check section