source: projects/specs/branches/6/p/php-ext-memcache/php-ext-memcache-vl.spec @ 7918

Revision 7918, 2.0 KB checked in by tomop, 11 years ago (diff)

php5-5.5.5-1

  • Property svn:executable set to *
Line 
1Summary: memcache extension for PHP
2Summary(ja): PHP用memcache拡張
3Name: php-ext-memcache
4Version: 3.0.8
5Release: 1%{_dist_release}
6Source: memcache-%{version}.tgz
7##Patch0: memcache-2.2.6-session_strict.patch
8License: The PHP License
9Group: Development/Languages
10BuildRequires: php5-devel
11BuildRequires: zlib-devel
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13Requires: %{req_php_api}
14
15Vendor: Project Vine
16Distribution: Vine Linux
17Packager: tomop
18
19%description
20This module enable to access memcached in PHP scripts.
21
22%description -l ja
23このモジュールは、PHPスクリプト中でmemcachedにアクセスできるようにします。
24
25%prep
26%setup -q -n memcache-%{version}
27##%patch0 -p1 -b .session_strict
28mv ../package.xml ./
29phpize
30
31%build
32%configure --enable-memcache-session=yes
33%__make %{?_smp_mflags}
34
35%install
36rm -rf %{buildroot}
37mkdir -p %{buildroot}%{_libdir}/php5/
38mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d
39%makeinstall INSTALL_ROOT=%{buildroot}
40
41
42cat > %{buildroot}%{_sysconfdir}/php5/php.d/memcache.ini <<EOF
43; Enable memcache extension module
44extension=memcache.so
45
46memcache.allow_failover = 1
47memcache.max_failover_attempts = 20
48memcache.chunk_size = 16384
49memcache.default_port = 11211
50memcache.hash_function = crc32
51memcache.hash_strategy = consistent
52EOF
53
54
55%clean
56rm -rf %{buildroot}
57
58%files
59%defattr(-,root,root)
60%doc CREDITS README
61%{_libdir}/php5/*
62%config(noreplace) %{_sysconfdir}/php5/php.d/*
63
64%changelog
65* Thu Oct 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.8-1
66- new upstream release.
67
68* Tue Jun 25 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.7-1
69- new upstream release.
70
71* Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-3
72- converted encoding to UTF-8.
73
74* Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-2
75- rebuilt with current environment.
76
77* Mon Dec 13 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
78- new upstream release.
79
80* Fri Jul 10 2009 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.2.4-1
81- initial build.
82
Note: See TracBrowser for help on using the repository browser.