packages: ZendGuardLoader/ZendGuardLoader.spec - almost raw, unfinished
arekm
arekm at pld-linux.org
Sun Dec 12 17:16:43 CET 2010
Author: arekm Date: Sun Dec 12 16:16:43 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- almost raw, unfinished
---- Files affected:
packages/ZendGuardLoader:
ZendGuardLoader.spec (1.35 -> 1.36)
---- Diffs:
================================================================
Index: packages/ZendGuardLoader/ZendGuardLoader.spec
diff -u packages/ZendGuardLoader/ZendGuardLoader.spec:1.35 packages/ZendGuardLoader/ZendGuardLoader.spec:1.36
--- packages/ZendGuardLoader/ZendGuardLoader.spec:1.35 Wed Oct 15 12:37:46 2008
+++ packages/ZendGuardLoader/ZendGuardLoader.spec Sun Dec 12 17:16:38 2010
@@ -5,18 +5,18 @@
%define no_install_post_strip 1
%define no_install_post_compress_docs 1
%define no_install_post_chrpath 1
-Summary: Zend Optimizer - PHP code optimizer
-Summary(pl.UTF-8): Zend Optimizer - optymalizator kodu PHP
-Name: ZendOptimizer
-Version: 3.3.3
-Release: 3
+Summary: Zend Guard - PHP code guard
+Summary(pl.UTF-8): Zend Guard - optymalizator kodu PHP
+Name: ZendGuardLoader
+Version: 5.5.0
+Release: 0.1
License: Zend License, distributable only if unmodified and for free (see LICENSE)
Group: Libraries
-Source0: http://downloads.zend.com/optimizer/3.3.3/%{name}-%{version}-linux-glibc23-i386.tar.gz
-# Source0-md5: 38a3c83ca79534377b90b246c0f49d01
-Source1: http://downloads.zend.com/optimizer/3.3.3/%{name}-%{version}-linux-glibc23-x86_64.tar.gz
-# Source1-md5: 0e268aee33fe56d61f02699a4c54df20
-URL: http://www.zend.com/products/zend_optimizer
+Source0: http://downloads.zend.com/guard/5.5.0/%{name}-php-5.3-linux-glibc23-i386.tar.gz
+# Source0-md5: f53e51ecb59e390be5551ff7cc8576b0
+Source1: http://downloads.zend.com/guard/5.5.0/%{name}-php-5.3-linux-glibc23-x86_64.tar.gz
+# Source1-md5: 9408297e9e38d5ce2cca92c619b5ad50
+URL: http://www.zend.com/products/zend_guard
BuildRequires: rpmbuild(macros) >= 1.344
BuildRequires: tar >= 1:1.15.1
Requires(triggerpostun): sed >= 4.0
@@ -24,36 +24,23 @@
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Zend Optimizer - PHP code optimizer.
+Zend Guard - PHP code guard.
%description -l pl.UTF-8
-Zend Optimizer - optymalizator kodu PHP.
-
-%package -n php4-%{name}
-Summary: Zend Optimizer for PHP 4.x
-Summary(pl.UTF-8): Zend Optimizer dla PHP 4.x
-Group: Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: php4-common >= 3:4.4.0-3
-
-%description -n php4-%{name}
-Zend Optimizer for PHP 4.x.
-
-%description -n php4-%{name} -l pl.UTF-8
-Zend Optimizer dla PHP 4.x.
+Zend Guard - optymalizator kodu PHP.
%package -n php-%{name}
-Summary: Zend Optimizer for PHP 5.x
-Summary(pl.UTF-8): Zend Optimizer dla PHP 5.x
+Summary: Zend Guard for PHP 5.x
+Summary(pl.UTF-8): Zend Guard dla PHP 5.x
Group: Libraries
Requires: %{name} = %{version}-%{release}
-Requires: php-common >= 4:5.0.4
+Requires: php-common >= 4:5.3
%description -n php-%{name}
-Zend Optimizer for PHP 5.x.
+Zend Guard for PHP 5.x.
%description -n php-%{name} -l pl.UTF-8
-Zend Optimizer dla PHP 5.x.
+Zend Guard dla PHP 5.x.
%prep
%setup -q -c
@@ -65,76 +52,49 @@
%{__tar} --strip-components=1 -zxf %{SOURCE1}
%endif
-cat <<'EOF' > data/zendoptimizer.ini
-; ZendOptimizer user settings.
+cat <<'EOF' > zendguard.ini
+; ZendGuard user settings.
[Zend]
-zend_optimizer.optimization_level=15
+zend_guard.optimization_level=15
EOF
-cat <<'EOF' > data/pack.ini
-; ZendOptimizer package settings. Overwritten with each upgrade.
+cat <<'EOF' > pack.ini
+; ZendGuard package settings. Overwritten with each upgrade.
; if you need to add options, edit %{name}.ini instead
[Zend]
-zend_optimizer.version=%{version}
-zend_extension_manager.optimizer=%{_libdir}/Zend/lib/Optimizer-%{version}
-zend_extension_manager.optimizer_ts=%{_libdir}/Zend/lib/Optimizer_TS-%{version}
+zend_guard.version=%{version}
+zend_extension_manager.guard=%{_libdir}/Zend/lib/Guard-%{version}
+zend_extension_manager.guard_ts=%{_libdir}/Zend/lib/Guard_TS-%{version}
zend_extension=%{_libdir}/Zend/lib/ZendExtensionManager.so
zend_extension_ts=%{_libdir}/Zend/lib/ZendExtensionManager_TS.so
EOF
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/etc/php4,/etc/php}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/php}
+
+install -D php-*/ZendGuardLoader.so $RPM_BUILD_ROOT%{_libdir}/Zend/lib/Guard-%{version}/php-$d/ZendGuardLoader.so
-cd data
-for a in *_comp; do
- d=$(basename $a _comp | tr _ .)
- install -D $a/ZendOptimizer.so $RPM_BUILD_ROOT%{_libdir}/Zend/lib/Optimizer-%{version}/php-$d/ZendOptimizer.so
-done
-for a in *_comp/TS; do
- d=$(basename $(dirname $a) _comp | tr _ .)
- install -D $a/ZendOptimizer.so $RPM_BUILD_ROOT%{_libdir}/Zend/lib/Optimizer_TS-%{version}/php-$d/ZendOptimizer.so
-done
-
-install zendid $RPM_BUILD_ROOT%{_bindir}
-install poweredbyoptimizer.gif $RPM_BUILD_ROOT%{_sysconfdir}/php
-install poweredbyoptimizer.gif $RPM_BUILD_ROOT%{_sysconfdir}/php4
-install *.so $RPM_BUILD_ROOT%{_libdir}/Zend/lib
-ln -s %{_sysconfdir}/php $RPM_BUILD_ROOT%{_libdir}/Zend/etc
+ln -s %{_sysconfdir}/php $RPM_BUILD_ROOT%{_libdir}/Zend%{_sysconfdir}
ln -s %{_bindir} $RPM_BUILD_ROOT%{_libdir}/Zend/bin
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/php{,4}/conf.d
-install zendoptimizer.ini $RPM_BUILD_ROOT/etc/php4/conf.d/zendoptimizer.ini
-install zendoptimizer.ini $RPM_BUILD_ROOT/etc/php/conf.d/zendoptimizer.ini
-install pack.ini $RPM_BUILD_ROOT/etc/php4/conf.d/zendoptimizer_pack.ini
-install pack.ini $RPM_BUILD_ROOT/etc/php/conf.d/zendoptimizer_pack.ini
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/php/conf.d
+install zendguard.ini $RPM_BUILD_ROOT%{_sysconfdir}/php/conf.d/zendguard.ini
+install pack.ini $RPM_BUILD_ROOT%{_sysconfdir}/php/conf.d/zendguard_pack.ini
%clean
rm -rf $RPM_BUILD_ROOT
-%preun -n php4-%{name}
-if [ "$1" = "0" ]; then
- %php4_webserver_restart
-fi
-
-%post -n php4-%{name}
-# let /usr/lib/Zend/etc point to php's config dir. php which installed first wins.
-# not sure how critical is existence of this etc link at all.
-if [ ! -L %{_libdir}/Zend/etc ]; then
- ln -snf /etc/php4 %{_libdir}/Zend/etc
-fi
-%php4_webserver_restart
-
%preun -n php-%{name}
if [ "$1" = "0" ]; then
%php_webserver_restart
fi
%post -n php-%{name}
-# let /usr/lib/Zend/etc point to php's config dir. php which installed first wins.
+# let %{_prefix}/lib/Zend%{_sysconfdir} point to php's config dir. php which installed first wins.
# not sure how critical is existence of this etc link at all.
-if [ ! -L %{_libdir}/Zend/etc ]; then
- ln -snf /etc/php %{_libdir}/Zend/etc
+if [ ! -L %{_libdir}/Zend%{_sysconfdir} ]; then
+ln -snf %{_sysconfdir}/php %{_libdir}/Zend%{_sysconfdir}
fi
%php_webserver_restart
@@ -145,18 +105,10 @@
EOF
fi
-%triggerpostun -n php4-%{name} -- %{name} < 2.5.10a-0.20
-if [ -f /etc/php4/php.ini ]; then
- cp -f /etc/php4/conf.d/ZendOptimizer.ini{,.rpmnew}
- sed -ne '/^\(zend_\|\[Zend\]\)/{/^zend_extension\(_manager\.optimizer\)\?\(_ts\)\?=/d;p}' /etc/php4/php.ini > /etc/php4/conf.d/ZendOptimizer.ini
- cp -f /etc/php4/php.ini{,.rpmsave}
- sed -i -e '/^\(zend_\|\[Zend\]\)/d' /etc/php4/php.ini
-fi
-
%triggerpostun -- %{name} < 2.5.10a-0.20
if [ -f /etc/php/php.ini ]; then
- cp -f /etc/php/conf.d/ZendOptimizer.ini{,.rpmnew}
- sed -ne '/^\(zend_\|\[Zend\]\)/{/^zend_extension\(_manager\.optimizer\)\?\(_ts\)\?=/d;p}' /etc/php/php.ini > /etc/php/conf.d/ZendOptimizer.ini
+ cp -f /etc/php/conf.d/ZendGuard.ini{,.rpmnew}
+ sed -ne '/^\(zend_\|\[Zend\]\)/{/^zend_extension\(_manager\.guard\)\?\(_ts\)\?=/d;p}' /etc/php/php.ini > /etc/php/conf.d/ZendGuard.ini
cp -f /etc/php/php.ini{,.rpmsave}
sed -i -e '/^\(zend_\|\[Zend\]\)/d' /etc/php/php.ini
fi
@@ -167,28 +119,22 @@
%attr(755,root,root) %{_bindir}/zendid
%dir %{_libdir}/Zend
%dir %{_libdir}/Zend/lib
-%dir %{_libdir}/Zend/lib/Optimizer-%{version}
-%dir %{_libdir}/Zend/lib/Optimizer-%{version}/php-*
-%dir %{_libdir}/Zend/lib/Optimizer_TS-%{version}
-%dir %{_libdir}/Zend/lib/Optimizer_TS-%{version}/php-*
-%attr(755,root,root) %{_libdir}/Zend/lib/Optimizer-%{version}/php-*/ZendOptimizer.so
-%attr(755,root,root) %{_libdir}/Zend/lib/Optimizer_TS-%{version}/php-*/ZendOptimizer.so
+%dir %{_libdir}/Zend/lib/Guard-%{version}
+%dir %{_libdir}/Zend/lib/Guard-%{version}/php-*
+%dir %{_libdir}/Zend/lib/Guard_TS-%{version}
+%dir %{_libdir}/Zend/lib/Guard_TS-%{version}/php-*
+%attr(755,root,root) %{_libdir}/Zend/lib/Guard-%{version}/php-*/ZendGuard.so
+%attr(755,root,root) %{_libdir}/Zend/lib/Guard_TS-%{version}/php-*/ZendGuard.so
%attr(755,root,root) %{_libdir}/Zend/lib/ZendExtensionManager.so
%attr(755,root,root) %{_libdir}/Zend/lib/ZendExtensionManager_TS.so
%{_libdir}/Zend/bin
-%ghost %{_libdir}/Zend/etc
-
-%files -n php4-%{name}
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/php4/conf.d/zendoptimizer.ini
-%config %verify(not md5 mtime size) /etc/php4/conf.d/zendoptimizer_pack.ini
-/etc/php4/poweredbyoptimizer.gif
+%ghost %{_libdir}/Zend%{_sysconfdir}
%files -n php-%{name}
%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/php/conf.d/zendoptimizer.ini
-%config %verify(not md5 mtime size) /etc/php/conf.d/zendoptimizer_pack.ini
-/etc/php/poweredbyoptimizer.gif
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php/conf.d/zendguard.ini
+%config %verify(not md5 mtime size) %{_sysconfdir}/php/conf.d/zendguard_pack.ini
+%{_sysconfdir}/php/poweredbyguard.gif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -196,158 +142,6 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
-Revision 1.35 2008/10/15 10:37:46 glen
-- create files in prep
-
-Revision 1.34 2008/08/27 13:36:48 arekm
-- fix build
-
-Revision 1.33 2008/08/27 11:27:56 arekm
-- zendoptimizer needs to be loaded after ioncube
-
-Revision 1.32 2008/08/12 22:11:39 arekm
-- up to 3.3.3
-
-Revision 1.31 2007/02/12 21:23:45 glen
-- tabs in preamble
-
-Revision 1.30 2007/02/12 00:48:35 baggins
-- converted to UTF-8
-
-Revision 1.29 2007/01/26 10:57:58 glen
-- 3.2.2 - Zend Optimizer 3 with full support for PHP 5.2
-
-Revision 1.28 2007/01/16 21:45:53 glen
-- use new php extension macros
-
-Revision 1.27 2006/04/03 08:13:08 glen
-- drop circular dep (php*-ZendOptimizer post script requires ZendOptimizer)
-- rel 2
-
-Revision 1.26 2006/01/24 13:05:01 arekm
-- updated
-
-Revision 1.25 2005/12/19 14:30:38 glen
-- 2.6.0
-
-Revision 1.24 2005/10/10 09:12:23 glen
-- rel 1
-
-Revision 1.23 2005/10/10 09:08:44 qboosh
-- pl for php*
-
-Revision 1.22 2005/10/09 15:16:44 glen
-- typo
-
-Revision 1.21 2005/10/09 15:15:22 glen
-- merged from DEVEL, can work with both php4 and php5 packages
-
-Revision 1.19.2.13 2005/09/30 11:25:11 glen
-- two ini files for package settings and user settings. pack.ini gets overwritten with upgrades
-
-Revision 1.19.2.12 2005/09/30 11:13:20 glen
-- require php-common rather php as latter one basically means apache SAPIs
-
-Revision 1.19.2.11 2005/09/30 11:04:19 glen
-- add migration trigger to separate ini file
-
-Revision 1.19.2.10 2005/09/30 10:44:52 glen
-- let there be possibitlity to have etc symlink be correct in both php versions
-
-Revision 1.19.2.9 2005/09/30 10:33:14 glen
-- clean up requires
-
-Revision 1.19.2.8 2005/09/30 10:32:32 glen
-- if license says "distributable only if unmodified and for free", then it's
- okay to store unmodified tarball on distfiles, remove NoSource.
-
-Revision 1.19.2.7 2005/09/30 10:28:06 glen
-- strict internal deps
-
-Revision 1.19.2.6 2005/09/30 10:19:25 glen
-- adapterized, unified use /etc/ and sysconfdir
-- fixed php4 dep
-- fixed php epoch
-- corrections to preambles
-
-Revision 1.19.2.5 2005/09/30 10:11:35 glen
-- use conf.d for ini, complete php setup
-
-Revision 1.19.2.4 2005/09/30 10:05:30 glen
-- simplified files and install
-
-Revision 1.19.2.3 2005/09/30 09:54:01 glen
-- merged update 2.5.10a from HEAD
-
-Revision 1.19.2.2 2005/07/15 17:42:16 glen
-- 2.5.10. NFY. still doesn't work with php 4.4.0
-
-Revision 1.19.2.1 2005/07/15 16:40:33 glen
-- unfinished package split devel
-
-Revision 1.20 2005/07/25 16:56:33 undefine
-- up to 2.5.10a by Mikolaj Kucharski <build at kompuart.pl>
-- not sure about license, nosource given. maybe someone look at it?
-
-Revision 1.19 2005/05/11 13:17:29 qboosh
-- use x8664 macro
-
-Revision 1.18 2005/03/23 13:54:13 spider
-- its not only for php4
-
-Revision 1.17 2005/03/23 12:48:53 glen
-- _docdir macro
-- removed double slashes
-- cosmetics
-
-Revision 1.16 2005/01/28 18:55:44 glen
-- update to 2.5.7
-- support for php/php4 and apache1/apache2
-
-Revision 1.15 2004/10/30 12:17:47 paladine
-- spaces->tabs
-
-Revision 1.14 2004/10/30 07:07:25 paladine
-- unifications
-
-Revision 1.13 2004/09/07 18:45:32 djurban
-- fixed after leafnode, also it is distributable (as long as for free and not modified sources)
-- available on amd64 now too, support php from 4.0.6 to 5.0.0 not only 5.0.0
-- will STBR to ac later this evening
-
-Revision 1.12 2004/09/04 00:42:49 leafnode
-- updated, not tested yet
-
-Revision 1.11 2003/08/22 15:33:14 ankry
-- spaces -> tabs
-
-Revision 1.10 2003/06/27 21:14:13 qboosh
-- cleanups, ExclusiveArch: x86
-
-Revision 1.9 2003/06/15 13:45:20 djurban
-- fixed php.ini location
-
-Revision 1.8 2003/06/11 10:47:12 ankry
-- NoSource
-
-Revision 1.7 2003/06/10 12:30:23 ankry
-- not distributable, new %doc
-
-Revision 1.6 2003/05/25 05:45:23 misi3k
-- massive attack s/pld.org.pl/pld-linux.org/
-
-Revision 1.5 2002/02/22 23:28:39 kloczek
-- removed all Group fields translations (oure rpm now can handle translating
- Group field using gettext).
-
-Revision 1.4 2002/01/18 02:12:17 kloczek
-- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
-
-Revision 1.3 2001/11/22 10:25:36 qboosh
-- adapterized, s/Copyright/License/
-
-Revision 1.2 2001/07/18 03:20:05 kloczek
-- spec adapterized.
+Revision 1.36 2010/12/12 16:16:38 arekm
+- almost raw, unfinished
-Revision 1.1 2000/05/27 01:00:00 bonkey
--
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ZendGuardLoader/ZendGuardLoader.spec?r1=1.35&r2=1.36&f=u
More information about the pld-cvs-commit
mailing list