2 %define php_min_version 5.3.3
3 Summary: Diff implementation for PHP
4 Name: php-sebastian-%{pkgname}
8 Group: Development/Libraries
9 Source0: https://github.com/sebastianbergmann/diff/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 61b8db69978590e046d31586dff73997
11 URL: https://github.com/sebastianbergmann/diff
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.553
14 Requires: php(core) >= %{php_min_version}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Diff implementation for PHP, factored out of PHPUnit into a
22 stand-alone component.
25 %setup -q -n %{pkgname}-%{version}
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{php_data_dir}/SebastianBergmann/Diff
30 cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/SebastianBergmann/Diff
33 rm -rf $RPM_BUILD_ROOT
36 %defattr(644,root,root,755)
37 %doc README.md LICENSE composer.json
38 %dir %{php_data_dir}/SebastianBergmann
39 %{php_data_dir}/SebastianBergmann/Diff