From: Elan Ruusamäe Date: Thu, 25 Jun 2009 23:28:11 +0000 (+0000) Subject: - update X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=fc1df23fb8c0ed0d38cbdec3dfa8ed233937611a;hp=6aa2628002359f89f8dd10ad1b02aeae2d39270a;p=projects%2Ftemplate-specs.git - update Changed files: php-pecl.spec -> 1.30 --- diff --git a/php-pecl.spec b/php-pecl.spec index 985b505..76cd892 100644 --- a/php-pecl.spec +++ b/php-pecl.spec @@ -1,13 +1,16 @@ -%define _modname - -%define _status - -Summary: %{_modname} - -Summary(pl.UTF-8): %{_modname} - -Name: php-pecl-%{_modname} +# +# Conditional build: +%bcond_without tests # build without tests + +%define modname - +Summary: %{modname} - +Summary(pl.UTF-8): %{modname} - +Name: php-pecl-%{modname} Version: 1.0 Release: 1 License: PHP 3.01 Group: Development/Languages/PHP -Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz +Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz URL: http://pecl.php.net/package/Modname/ BuildRequires: php-devel >= 3:5.0.0 BuildRequires: rpmbuild(macros) >= 1.344 @@ -17,15 +20,11 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -In PECL status of this extension is: %{_status}. - %description -l pl.UTF-8 -To rozszerzenie ma w PECL status: %{_status}. - %prep %setup -q -c -mv %{_modname}-%{version}/* . +mv %{modname}-%{version}/* . %build phpize @@ -39,9 +38,9 @@ install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d %{__make} install \ INSTALL_ROOT=$RPM_BUILD_ROOT \ EXTENSION_DIR=%{php_extensiondir} -cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini -; Enable %{_modname} extension module -extension=%{_modname}.so +cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini +; Enable %{modname} extension module +extension=%{modname}.so EOF %clean @@ -58,5 +57,5 @@ fi %files %defattr(644,root,root,755) %doc CREDITS EXPERIMENTAL -%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini -%attr(755,root,root) %{php_extensiondir}/%{_modname}.so +%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini +%attr(755,root,root) %{php_extensiondir}/%{modname}.so