9fd87d1861
php-pecl-zip-1.4.1-1.fc5.src.rpm
74 lines
1.9 KiB
RPMSpec
74 lines
1.9 KiB
RPMSpec
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php/modules)
|
|
|
|
Summary: PECL A zip management extension
|
|
Summary(fr): PECL Une extension de gestion des ZIP
|
|
Name: php-pecl-zip
|
|
Version: 1.4.1
|
|
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)
|
|
Provides: php-pecl(zip), php-zip = %{version}-%{release}
|
|
Requires: php
|
|
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
|
|
* 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
|