1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
%define php_extension zip Name: php-%php_extension Version: %php_version Release: %php_release Summary: ZIP functions Group: System/Servers License: PHP Licence Source1: php-%php_extension.ini Source2: php-%php_extension-params.sh Prereq: php-libs >= %php_version-%php_release BuildRequires(pre): rpm-build-php # Automatically added by buildreq on Mon Jun 26 2006 BuildRequires: zziplib-devel BuildRequires: php-devel = %php_version-%php_release %description This module enables you to transparently read ZIP compressed archives and the files inside them. %prep %setup -T -c %__cp -pr %php_extsrcdir/%php_extension/* . %build phpize BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'` export LDFLAGS="-lphp-%_php_version" ### Stupid PHP not understand LDLIBS %add_optflags -fPIC -L%_libdir %configure --with-%php_extension %php_make %install %php_make_install %__install -D -m 644 %SOURCE1 %buildroot/%php_extconf/%php_extension/config %__install -D -m 644 %SOURCE2 %buildroot/%php_extconf/%php_extension/params %files %php_extconf/%php_extension %php_extdir/* %doc CREDITS %post %php_extension_postin %preun %php_extension_preun %changelog * Sun Jan 06 2008 L.A. Kostis <lakostis@altlinux.ru> 4.4.8-alt1 - rebuild with new php version (4.4.8). * Sun May 13 2007 L.A. Kostis <lakostis@altlinux.ru> 4.4.7-alt1 - rebuild with new php version (4.4.7). * Tue Apr 10 2007 L.A. Kostis <lakostis@altlinux.ru> 4.4.6-alt2 - rebuild due libmm update. * Fri Mar 09 2007 L.A. Kostis <lakostis@altlinux.ru> 4.4.6-alt1 - rebuild with 4.4.6-alt1. * Sun Mar 04 2007 L.A. Kostis <lakostis@altlinux.ru> 4.4.6-alt0.1 - new version (4.4.6). * Wed Sep 27 2006 Alexey Gladkov <legion@altlinux.ru> 4.4.4-alt2 - Bugfix rebuild. - Relax Requires/BuildRequires. * Wed Aug 23 2006 Alexey Gladkov <legion@altlinux.ru> 4.4.4-alt1 - new version (4.4.4) * Mon Jun 26 2006 Alexey Gladkov <legion@altlinux.ru> 4.4.3.cvs20060626-alt1 - first build for ALT Linux