-%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
%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
%{__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
%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