Logoj0ke.net Open Build Service > Projects > internetx:php5:EL6 > php-pecl-jsonc > Changes
Sign Up | Log In

Changes of Revision 5

[-] Changed php-pecl-jsonc.spec
x
 
1
@@ -188,67 +188,6 @@
2
 %endif
3
 
4
 
5
-# Test & Documentation
6
-set +x
7
-for i in `grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//'` ; do
8
- install -Dpm 644 %{proj_name}-%{version}%{?prever}/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
9
-done
10
-for i in `grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//'` ; do
11
- install -Dpm 644 %{proj_name}-%{version}%{?prever}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
12
-done
13
-
14
-
15
-%check
16
-cd %{proj_name}-%{version}%{?prever}
17
-
18
-: Minimal load test for NTS extension
19
-%{__php} --no-php-ini \
20
-    --define extension=%{buildroot}%{php_extdir}/%{ext_name}.so \
21
-    -m | grep %{pecl_name}
22
-
23
-%if %{with_zts}
24
-: Minimal load test for ZTS extension
25
-%{__ztsphp} --no-php-ini \
26
-    --define extension=%{buildroot}%{php_ztsextdir}/%{ext_name}.so \
27
-    -m | grep %{pecl_name}
28
-%endif
29
-
30
-TEST_PHP_EXECUTABLE=%{_bindir}/php \
31
-TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{ext_name}.so" \
32
-NO_INTERACTION=1 \
33
-REPORT_EXIT_STATUS=1 \
34
-%{_bindir}/php -n run-tests.php --show-diff
35
-
36
-%if %{with_zts}
37
-cd ../%{proj_name}-zts
38
-
39
-TEST_PHP_EXECUTABLE=%{__ztsphp} \
40
-TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{ext_name}.so" \
41
-NO_INTERACTION=1 \
42
-REPORT_EXIT_STATUS=1 \
43
-%{__ztsphp} -n run-tests.php --show-diff
44
-%endif
45
-
46
-
47
-%if 0%{?fedora} < 24
48
-# when pear installed alone, after us
49
-%triggerin -- %{?scl_prefix}php-pear
50
-if [ -x %{__pecl} ] ; then
51
-    %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
52
-fi
53
-
54
-# posttrans as pear can be installed after us
55
-%posttrans
56
-if [ -x %{__pecl} ] ; then
57
-    %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
58
-fi
59
-
60
-%postun
61
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
62
-    %{pecl_uninstall} %{proj_name} >/dev/null || :
63
-fi
64
-%endif
65
-
66
 
67
 %clean
68
 rm -rf %{buildroot}
69