packages: php-pecl-fileinfo/php-pecl-fileinfo.spec - release 7
glen
glen at pld-linux.org
Sun Jun 6 22:34:12 CEST 2010
Author: glen Date: Sun Jun 6 20:34:12 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- release 7
---- Files affected:
packages/php-pecl-fileinfo:
php-pecl-fileinfo.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: packages/php-pecl-fileinfo/php-pecl-fileinfo.spec
diff -u packages/php-pecl-fileinfo/php-pecl-fileinfo.spec:1.21 packages/php-pecl-fileinfo/php-pecl-fileinfo.spec:1.22
--- packages/php-pecl-fileinfo/php-pecl-fileinfo.spec:1.21 Wed Jun 2 17:52:49 2010
+++ packages/php-pecl-fileinfo/php-pecl-fileinfo.spec Sun Jun 6 22:34:07 2010
@@ -1,25 +1,23 @@
# $Revision$, $Date$
-%define _modname fileinfo
-%define _smodname Fileinfo
-%define _status beta
-Summary: %{_modname} - libmagic bindings
-Summary(pl.UTF-8): %{_modname} - dowiązania biblioteki libmagic
-Name: php-pecl-%{_modname}
+%define modname fileinfo
+%define smodname Fileinfo
+%define status beta
+Summary: %{modname} - libmagic bindings
+Summary(pl.UTF-8): %{modname} - dowiązania biblioteki libmagic
+Name: php-pecl-%{modname}
Version: 1.0.4
-Release: 6
+Release: 7
License: PHP
Group: Development/Languages/PHP
-Source0: http://pecl.php.net/get/%{_smodname}-%{version}.tgz
+Source0: http://pecl.php.net/get/%{smodname}-%{version}.tgz
# Source0-md5: 2854e749db157365c769cb9496f5586f
Patch0: pecl-fileinfo-defaultdb.patch
URL: http://pecl.php.net/package/Fileinfo/
BuildRequires: libmagic-devel
-BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: php-devel >= 4:5.0.4
BuildRequires: rpmbuild(macros) >= 1.344
Provides: php(fileinfo)
%{?requires_php_extension}
-Requires: php-common >= 4:5.0.4
-Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -30,7 +28,7 @@
Additionally it can also be used to retrieve the MIME type for a
particular file and for text files proper language encoding.
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
%description -l pl.UTF-8
To rozszerzenie pozwala na uzyskanie wielu informacji na temat plików.
@@ -39,14 +37,14 @@
Dodatkowo może być użyte do uzyskania typu MIME danego pliku, a dla
plików tekstowych - użytego kodowania.
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
%prep
-%setup -q -c
-%patch0 -p1
+%setup -qc
+mv %{smodname}-%{version}/* .
+%patch0 -p2
%build
-cd %{_smodname}-%{version}
phpize
%configure
%{__make}
@@ -55,10 +53,10 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-install %{_smodname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
EOF
%clean
@@ -74,9 +72,9 @@
%files
%defattr(644,root,root,755)
-%doc %{_smodname}-%{version}/{CREDITS,EXPERIMENTAL,fileinfo.php}
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%doc CREDITS EXPERIMENTAL fileinfo.php
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -84,6 +82,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2010/06/06 20:34:07 glen
+- release 7
+
Revision 1.21 2010/06/02 15:52:49 glen
- release 6
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-fileinfo/php-pecl-fileinfo.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list