[svn] r6764 - in trunk/rpms: . php-pecl-zip

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Wed Apr 15 18:06:30 CEST 2009


Author: cmr
Date: 2009-04-15 17:06:30 +0100 (Wed, 15 Apr 2009)
New Revision: 6764

Added:
   trunk/rpms/php-pecl-zip/
   trunk/rpms/php-pecl-zip/php-pecl-zip.spec
Log:
- Initial RPM package.



Added: trunk/rpms/php-pecl-zip/php-pecl-zip.spec
===================================================================
--- trunk/rpms/php-pecl-zip/php-pecl-zip.spec	                        (rev 0)
+++ trunk/rpms/php-pecl-zip/php-pecl-zip.spec	2009-04-15 16:06:30 UTC (rev 6764)
@@ -0,0 +1,61 @@
+# $Id: php-pecl-fileinfo.spec 5204 2007-02-24 14:39:44Z thias $
+# Authority: matthias
+
+%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
+
+Summary: A zip management extension for php
+Name: php-pecl-zip
+Version: 1.8.10
+Release: 1
+License: PHP
+Group: Development/Languages
+URL: http://pecl.php.net/package/zip
+Source: http://pecl.php.net/get/zip-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Requires: php, file
+BuildRequires: php, php-devel, zlib-devel, file
+# Required by phpize
+BuildRequires: autoconf, automake, libtool, gcc-c++
+
+%description
+Zip is an extension to create, modify and read zip files.
+
+
+%prep
+%setup -n zip-%{version}
+
+
+%build
+# Workaround for broken old phpize on 64 bits
+%{__cat} %{_bindir}/phpize | sed 's|/lib/|/%{_lib}/|g' > phpize && sh phpize
+%configure
+%{__make} %{?_smp_mflags} test
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install INSTALL_ROOT=%{buildroot}
+
+# Drop in the bit of configuration
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
+%{__cat} > %{buildroot}%{_sysconfdir}/php.d/zip.ini << 'EOF'
+; Enable zip extension module
+extension=zip.so
+EOF
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc CREDITS examples
+%config(noreplace) %{_sysconfdir}/php.d/zip.ini
+%{php_extdir}/zip.so
+
+
+%changelog
+* Wed Apr 15 2009 Christoph Maser <cmr at financial.com> - 1.8.10
+- Initial RPM package.
+




More information about the commits mailing list