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

Changes of Revision 4

[-] Added php5-eaccelerator.spec
x
 
1
@@ -0,0 +1,81 @@
2
+#
3
+# spec file for package php5-eaccelerator (Version 0.9.5)
4
+#
5
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+#norootforbuild
13
+
14
+%define php_version %(php-config --version 2>/dev/null)
15
+
16
+Name:           php5-eaccelerator
17
+Version:        0.9.5.2
18
+Release:        1
19
+Url:            http://eaccelerator.net/
20
+Group:          Productivity/Multimedia/Video/Players
21
+License:        GPL
22
+Summary:        a free PHP accelerator, optimizer, encoder and dynamic content cache
23
+Source:         eaccelerator-%{version}.tar.bz2
24
+Source1:        eaccelerator.ini
25
+Autoreqprov:    on
26
+BuildRequires:  php5-devel
27
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
28
+Requires:       php5 = %{php_version}
29
+Conflicts :     php5-APC php5-xcache
30
+
31
+%description
32
+eAccelerator is a free open-source PHP accelerator, optimizer, encoder and
33
+dynamic content cache. It increases the performance of PHP scripts by caching
34
+them in their compiled state, so that the overhead of compiling is almost
35
+completely eliminated. It also optimizes scripts to speed up their execution.
36
+eAccelerator typically reduces server load and increases the speed of your
37
+PHP code by 1-10 times.
38
+
39
+%prep
40
+
41
+%setup -q -n eaccelerator-%{version}
42
+
43
+%build
44
+
45
+CFLAGS="%{optflags} -fno-strict-aliasing"
46
+
47
+%if 0%{?suse_version} > 1000
48
+CFLAGS="$CFLAGS -fstack-protector"
49
+%endif
50
+
51
+/usr/bin/phpize
52
+
53
+%configure --without-eaccelerator-encoder --without-eaccelerator-loader
54
+
55
+%{__make} %{?jobs:-j%jobs}
56
+
57
+%install
58
+%{__make} EXTENSION_DIR=%{buildroot}/usr/%{_lib}/php5/extensions install
59
+%{__mkdir_p} %{buildroot}/var/cache/php5-eaccelerator/
60
+%{__mkdir_p} %{buildroot}/%{_sysconfdir}/php5/conf.d/
61
+%{__cp} -a %SOURCE1 %{buildroot}/%{_sysconfdir}/php5/conf.d/
62
+
63
+%clean
64
+%{__rm} -rf %{buildroot}
65
+
66
+%files
67
+%defattr (-, root, root)
68
+%doc AUTHORS COPYING ChangeLog README eaccelerator.ini
69
+%{_libdir}/php5/extensions/eaccelerator.so
70
+%config(noreplace) %{_sysconfdir}/php5/conf.d/eaccelerator.ini
71
+%attr (750, wwwrun, root) /var/cache/php5-eaccelerator
72
+
73
+%changelog -n php5-eaccelerator
74
+* Fri Feb 16 2007 - judas_iscariote@shorewall.net
75
+- add norootforbuild
76
+- should require the exact php version against it was built.
77
+* Thu Nov 07 2006 - soporte@onfocus.cl
78
+- should conflict with APC and XCache, having both installed can lead into
79
+  very strange results.
80
+- update to 0.9.5 final.
81
+* Wed Oct 11 2006 - tsieden@suse.de
82
+- initial release 0.9.5-rc1
83