]> git.pld-linux.org Git - packages/php-justinrainbow-json-schema.git/blob - php-justinrainbow-json-schema.spec
49f33374720b4b183e16f2e06f312e134838f9c1
[packages/php-justinrainbow-json-schema.git] / php-justinrainbow-json-schema.spec
1 %define         pkgname json-schema
2 %define         php_min_version 5.3.3
3 %include        /usr/lib/rpm/macros.php
4 Summary:        PHP implementation of JSON schema
5 Name:           php-justinrainbow-%{pkgname}
6 Version:        5.2.7
7 Release:        1
8 License:        MIT
9 Group:          Development/Languages/PHP
10 Source0:        https://github.com/justinrainbow/json-schema/archive/%{version}/%{pkgname}-%{version}.tar.gz
11 # Source0-md5:  60ed0092e52ad4a0cd0108caf112021b
12 URL:            https://github.com/justinrainbow/json-schema
13 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
14 BuildRequires:  rpmbuild(macros) >= 1.461
15 Requires:       php(core) >= %{php_min_version}
16 Requires:       php(filter)
17 Requires:       php(json)
18 Requires:       php(mbstring)
19 Requires:       php(pcre)
20 Requires:       php(spl)
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 JSON Schema for PHP.
26
27 A PHP Implementation for validating JSON Structures against a given
28 Schema.
29
30 Fork of the <http://jsonschemaphpv.sourceforge.net> project.
31
32 %prep
33 %setup -q -n %{pkgname}-%{version}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{php_data_dir}
38 cp -a src/JsonSchema $RPM_BUILD_ROOT%{php_data_dir}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc README.md LICENSE
46 %{php_data_dir}/JsonSchema
This page took 0.045716 seconds and 2 git commands to generate.