- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Benchmark.git] / php-pear-Benchmark.spec
1 %define         status          stable
2 %define         pearname        Benchmark
3 Summary:        %{pearname} - benchmark PHP scripts or function calls
4 Summary(pl.UTF-8):      %{pearname} - testowanie szybkości skryptów i funkcji PHP
5 Name:           php-pear-%{pearname}
6 Version:        1.2.9
7 Release:        1
8 License:        BSD
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  ba08061a854b1c7cd7a18d0928c44b8b
12 URL:            http://pear.php.net/package/Benchmark/
13 BuildRequires:  php-pear-PEAR
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.580
16 Requires:       php-pear
17 Suggests:       php-bcmath
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Framework to benchmark PHP scripts or function calls.
23
24 In PEAR status of this package is: %{status}.
25
26 %description -l pl.UTF-8
27 Środowisko do testowania szybkości skryptów PHP i wywołań funkcji.
28
29 Ta klasa ma w PEAR status: %{status}.
30
31 %prep
32 %pear_package_setup
33
34 mv .%{php_pear_dir}/data/Benchmark/README .
35 install -d examples
36 mv docs/%{pearname}/doc/*.php examples
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{php_pear_dir}
41 %pear_package_install
42
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc README
52 %doc install.log
53 %{php_pear_dir}/.registry/*.reg
54 %dir %{php_pear_dir}/Benchmark
55 %{php_pear_dir}/Benchmark/*.php
56 %{_examplesdir}/%{name}-%{version}
This page took 0.093196 seconds and 4 git commands to generate.