From 528a6c61f14136b5415cf71cae6d089897a553ef Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 29 Aug 2014 14:28:29 +0200 Subject: php-pecl-yaml: don't install tests --- php-pecl-yaml.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index eba51dd..900462b 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -25,7 +25,7 @@ Summary: PHP Bindings for yaml Name: %{?scl_prefix}php-pecl-yaml Version: 1.1.1 -Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/yaml @@ -81,6 +81,9 @@ Documentation: http://php.net/yaml %setup -c -q mv %{pecl_name}-%{version} NTS +# Remove test file to avoid regsitration +sed -e '/role="test"/d' -i package.xml + cd NTS # honour --with-libdir option # http://git.php.net/?p=pecl/file_formats/yaml.git;a=commitdiff;h=e1b40c36a8f0ba42a90c655ab3fc21bf4fb7d163 @@ -154,11 +157,8 @@ make -C ZTS install INSTALL_ROOT=%{buildroot} install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Test & Documentation +# Documentation cd NTS -for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i -done for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -212,7 +212,6 @@ fi %files %defattr(-, root, root, -) %doc %{pecl_docdir}/%{pecl_name} -%doc %{pecl_testdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} @@ -225,6 +224,9 @@ fi %changelog +* Fri Aug 29 2014 Remi Collet - 1.1.1-5 +- don't install tests + * Mon Aug 25 2014 Remi Collet - 1.1.1-4 - improve SCL build -- cgit