2006-07-03 20:55:16 +00:00
|
|
|
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php/modules)
|
2006-08-20 12:40:41 +00:00
|
|
|
%define apiver %((phpize --version 2>/dev/null || echo 'PHP Api Version: 20041225' ) | sed -n '/PHP Api Version/ s/.*: *//p')
|
2006-07-03 20:55:16 +00:00
|
|
|
|
|
|
|
Summary: PECL A zip management extension
|
|
|
|
Summary(fr): PECL Une extension de gestion des ZIP
|
|
|
|
Name: php-pecl-zip
|
2006-08-20 12:40:41 +00:00
|
|
|
Version: 1.7.0
|
2006-07-03 20:55:16 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
License: PHP License
|
|
|
|
Group: Development/Languages
|
|
|
|
URL: http://pecl.php.net/package/zip
|
|
|
|
Source: http://pecl.php.net/get/zip-%{version}.tgz
|
|
|
|
Source1: PHP-LICENSE-3.01
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-08-20 12:40:41 +00:00
|
|
|
Provides: php-pecl(zip) = %{version}-%{release}, php-zip = %{version}-%{release}
|
|
|
|
Requires: php-api >= %{apiver}
|
2006-07-03 20:55:16 +00:00
|
|
|
BuildRequires: php-devel, zlib-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Zip is an extension to create and read zip files.
|
|
|
|
|
|
|
|
%description -l fr
|
|
|
|
Zip est une extension pour créer et lire les archives au format ZIP.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n zip-%{version}
|
|
|
|
|
|
|
|
%{__install} -m 644 -c %{SOURCE1} LICENSE
|
|
|
|
|
|
|
|
%build
|
|
|
|
phpize
|
|
|
|
%configure
|
|
|
|
%{__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, -)
|
|
|
|
%doc LICENSE CREDITS examples
|
|
|
|
%config(noreplace) %{_sysconfdir}/php.d/zip.ini
|
|
|
|
%{php_extdir}/zip.so
|
|
|
|
|
|
|
|
%changelog
|
2006-08-20 12:40:41 +00:00
|
|
|
* Sun Aug 20 2006 Remi Collet <Fedora@FamilleCollet.com> 1.7.0-1
|
|
|
|
- update to 1.7.0
|
|
|
|
|
|
|
|
* Sun Jul 30 2006 Remi Collet <Fedora@FamilleCollet.com> 1.6.0-1
|
|
|
|
- update to 1.6.0 (Big change : Rename Class Zip to ZipArchive)
|
|
|
|
|
|
|
|
* Sun Jul 16 2006 Remi Collet <Fedora@FamilleCollet.com> 1.5.0-1
|
|
|
|
- update to 1.5.0
|
|
|
|
- Requires: php-api
|
|
|
|
|
2006-07-03 20:55:16 +00:00
|
|
|
* Thu Jun 29 2006 Remi Collet <Fedora@FamilleCollet.com> 1.4.1-1
|
|
|
|
- update to 1.4.1
|
|
|
|
- bundle the v3.01 PHP LICENSE file
|
|
|
|
- Suppr. Requires zip, Add Provides php-pecl(zip) and php-zip
|
|
|
|
- change defattr
|
|
|
|
|
|
|
|
* Fri Apr 28 2006 Remi Collet <Fedora@FamilleCollet.com> 1.3.1-2
|
|
|
|
- Add zlib(devel) to Requires
|
|
|
|
|
|
|
|
* Thu Apr 27 2006 Remi Collet <Fedora@FamilleCollet.com> 1.3.1-1
|
|
|
|
- update to 1.3.1
|
|
|
|
|
|
|
|
* Wed Apr 26 2006 Remi Collet <Fedora@FamilleCollet.com> 1.2.3-1
|
|
|
|
- initial RPM for extras
|
|
|
|
- add french summary & description
|
|
|
|
- add examples to doc.
|
|
|
|
|
|
|
|
* Tue Apr 11 2006 Remi Collet <RPMS@FamilleCollet.com> 1.2.3-1
|
|
|
|
- initial RPM
|