Logoj0ke.net Open Build Service > Projects > internetx:php5:extensions > php5-APC > Changes
Sign Up | Log In

Changes of Revision 4

[-] Added php5-APC.spec
x
 
1
@@ -0,0 +1,79 @@
2
+# norootforbuild
3
+
4
+%define pkg APC
5
+%define php_version %(php-config --version 2>/dev/null)
6
+#
7
+Name: php5-APC
8
+Version: 3.0.16
9
+Release: 0
10
+#
11
+License: Other/See package
12
+Group: Productivity/Networking/Web/Servers
13
+#
14
+BuildRequires: php5-devel >= 5.1
15
+Requires: php5 = %{php_version}
16
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
17
+Conflicts : php5-xcache php5-eaccelerator
18
+#
19
+URL: http://pecl.php.net/package/APC
20
+Source: http://pecl.php.net/get/%{pkg}-%{version}.tgz
21
+Source1: apc.ini
22
+#
23
+Summary: Alternative PHP Cache
24
+%description
25
+APC is a free, open, and robust framework for caching and optimizing PHP
26
+intermediate code.
27
+
28
+ Authors:
29
+----------
30
+    George Schlossnagle <george@omniti.com>
31
+    Daniel Cowgill <dan@communityconnect.com>
32
+    Rasmus Lerdorf <rasmus@php.net>
33
+
34
+%debug_package
35
+%prep
36
+%setup -n %{pkg}-%{version}
37
+
38
+%build
39
+
40
+CFLAGS="%{optflags} -fno-strict-aliasing"
41
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
42
+%if 0%{?suse_version} > 1000
43
+CFLAGS="$CFLAGS -fstack-protector"
44
+CXXFLAGS="$CXXFLAGS -fstack-protector"
45
+%endif
46
+
47
+export CFLAGS
48
+export CXXFLAGS
49
+
50
+/usr/bin/phpize
51
+
52
+%configure --enable-apc-mmap
53
+
54
+%{__make} %{?jobs:-j%jobs}
55
+%{__make} test PHP_EXECUTABLE=/usr/bin/php5
56
+
57
+%install
58
+%{__make} install INSTALL_ROOT="%{buildroot}"
59
+%{__install} -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/apc.ini
60
+
61
+%clean
62
+%{__rm} -rf %{buildroot}
63
+
64
+%files
65
+%defattr(-,root,root,-)
66
+%{_libdir}/php5/extensions/apc.so
67
+%config(noreplace) %{_sysconfdir}/php5/conf.d/apc.ini
68
+%doc CHANGELOG INSTALL LICENSE NOTICE TECHNOTES.txt TODO
69
+
70
+%changelog php5-APC
71
+* Mon Apr 02 2007 judas_iscariote@shorewall.net
72
+- update to version 3.0.14 
73
+- apache2-devel is not needed to build this.
74
+* Sun Feb 25 2007 - judas_iscariote@shorewall.net
75
+- update to version 3.0.13, please see the vendor site for details. 
76
+* Thu Nov 07 2006 - soporte@onfocus.cl
77
+- should conflict with EA and XCache, having both installed can lead into
78
+  very strange results.
79
+- update to 3.0.12p2.
80
+
81