]> git.pld-linux.org Git - SPECS.git/blob - php-sebastian-diff.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / php-sebastian-diff.spec
1 %define         pkgname diff
2 %define         php_min_version 5.3.3
3 Summary:        Diff implementation for PHP
4 Name:           php-sebastian-%{pkgname}
5 Version:        1.1.0
6 Release:        1
7 License:        BSD
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}
15 Requires:       php(pcre)
16 Requires:       php(spl)
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Diff implementation for PHP, factored out of PHPUnit into a
22 stand-alone component.
23
24 %prep
25 %setup -q -n %{pkgname}-%{version}
26
27 %install
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
31
32 %clean
33 rm -rf $RPM_BUILD_ROOT
34
35 %files
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
This page took 0.247355 seconds and 3 git commands to generate.