source: projects/specs/trunk/m/memcached/memcached-vl.spec @ 2689

Revision 2689, 2.7 KB checked in by kudoh, 13 years ago (diff)
Line 
1Summary: a high-performance, distributed memory object caching system
2Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
3Name: memcached
4Version: 1.4.5
5Release: 1%{?_dist_release}
6Source0: http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
7
8# Patches
9# From http://code.google.com/p/memcached/issues/detail?id=60
10Patch0: memcached-1.4.5-issue60.diff
11
12License: modified BDS style License
13Url: http://www.danga.com/memcached/
14Group: Applications/Databases
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: libevent-devel
17
18%description
19memcached is a high-performance, distributed memory object caching system,
20generic in nature, but intended for use in speeding up dynamic web
21applications by alleviating database load.
22
23%package devel
24Summary:        Files needed for development using memcached protocol
25Summary(ja):    memcached プロトコルを使用した開発に必要なファイル
26Group:          Development/Libraries
27Requires:       %{name} = %{version}-%{release}
28
29%description devel
30Install memcached-devel if you are developing C/C++ applications that require access to the
31memcached binary include files.
32
33%prep
34%setup -q
35%patch0 -p1
36
37%build
38%configure
39
40%install
41rm -rf %{buildroot}
42mkdir -p %{buildroot}%{_initdir}
43mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
44mkdir -p %{buildroot}%{_localstatedir}/run/memcached
45%__make %{?_smp_mflags}
46%makeinstall
47
48rm -f %{buildroot}%{_bindir}/memcached-debug
49
50install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
51install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
52
53cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
54PORT=11211
55USER=nobody
56MAXCONN=1024
57CACHESIZE=64
58OPTIONS=""
59EOF
60
61%clean
62rm -rf %{buildroot}
63
64%files
65%defattr(-,root,root)
66%doc AUTHORS COPYING ChangeLog NEWS README doc/CONTRIBUTORS doc/*.txt
67%config(noreplace) %{_sysconfdir}/sysconfig/memcached
68%{_initdir}/memcached
69%{_bindir}/memcached
70%{_bindir}/memcached-tool
71%{_mandir}/man1/memcached.1*
72%dir %{_localstatedir}/run/memcached
73
74%files devel
75%defattr(-,root,root,0755)
76%{_includedir}/memcached/*
77
78%changelog
79* Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.5-1
80- new upstream release
81- added Patch0 from Fedora
82- rebuilt with libevent-2.0.10
83- fixed &&files
84- splitted -devel package
85
86* Mon Jun 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.8-1
87- new upstream release.
88- wrote spec in UTF-8.
89
90* Mon May 19 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.5-1
91- new upstream release.
92- added some scripts.
93
94* Mon Jul 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.12-0vl2
95- rebuilt with libevent-1.3b
96
97* Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1.12-0vl1
98- new package
99
Note: See TracBrowser for help on using the repository browser.