]> git.pld-linux.org Git - packages/php-pear-Benchmark.git/blobdiff - php-pear-Benchmark.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Benchmark.git] / php-pear-Benchmark.spec
index 46b12dec18f8a34a03efd5d7e8ade0005b9665c8..dd4e9a5e04f0754c24f346028dda0861a871cfd1 100644 (file)
@@ -1,20 +1,18 @@
-%include       /usr/lib/rpm/macros.php
-%define                _class          Benchmark
-%define                _status         stable
-%define                _pearname       %{_class}
-Summary:       %{_pearname} - benchmark PHP scripts or function calls
-Summary(pl.UTF-8):     %{_pearname} - testowanie szybkości skryptów i funkcji PHP
-Name:          php-pear-%{_pearname}
-Version:       1.2.7
-Release:       3
+%define                status          stable
+%define                pearname        Benchmark
+Summary:       %{pearname} - benchmark PHP scripts or function calls
+Summary(pl.UTF-8):     %{pearname} - testowanie szybkości skryptów i funkcji PHP
+Name:          php-pear-%{pearname}
+Version:       1.2.9
+Release:       1
 License:       BSD
 Group:         Development/Languages/PHP
-Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: 75d325175c67a42f645fd669b98ff7a8
+Source0:       http://pear.php.net/get/%{pearname}-%{version}.tgz
+# Source0-md5: ba08061a854b1c7cd7a18d0928c44b8b
 URL:           http://pear.php.net/package/Benchmark/
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: rpmbuild(macros) >= 1.580
 Requires:      php-pear
 Suggests:      php-bcmath
 BuildArch:     noarch
@@ -23,28 +21,36 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Framework to benchmark PHP scripts or function calls.
 
-In PEAR status of this package is: %{_status}.
+In PEAR status of this package is: %{status}.
 
 %description -l pl.UTF-8
 Środowisko do testowania szybkości skryptów PHP i wywołań funkcji.
 
-Ta klasa ma w PEAR status: %{_status}.
+Ta klasa ma w PEAR status: %{status}.
 
 %prep
 %pear_package_setup
 
+mv .%{php_pear_dir}/data/Benchmark/README .
+install -d examples
+mv docs/%{pearname}/doc/*.php examples
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README
 %doc install.log
-%doc docs/%{_pearname}/doc/*
 %{php_pear_dir}/.registry/*.reg
-%dir %{php_pear_dir}/%{_class}
-%{php_pear_dir}/%{_class}/*.php
+%dir %{php_pear_dir}/Benchmark
+%{php_pear_dir}/Benchmark/*.php
+%{_examplesdir}/%{name}-%{version}
This page took 0.336145 seconds and 4 git commands to generate.