blob: f57fa6ca0755c85474338bf52348fb430225774f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
%global git_tag_rev c8c12cb47e4ad9a534926d2ace5d8f64b319fa26
Name: php-wikimedia-avro
Version: 1.7.7
Release: 1%{?dist}
Summary: A library for using Avro with PHP
License: ASL 2.0
URL: https://avro.apache.org/
Source0: http://git.wikimedia.org/zip/?r=avro-php.git&format=xz&h=%{git_tag_rev}#/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: php-theseer-autoload
Requires: php(language) >= 5.3.0
Requires: php-date
Requires: php-gmp
Requires: php-json
Requires: php-pcre
Requires: php-spl
Provides: php-composer(wikimedia/avro) = %{version}
%description
A library for using Apache Avro with PHP. Avro is a data serialization system.
%prep
%setup -qc %{name}-%{version}
%build
phpab --output lib/autoload.php lib
%install
mkdir -pm 0755 %{buildroot}%{_datadir}/php/avro
cp -rp lib/* %{buildroot}%{_datadir}/php/avro
%files
%license LICENSE.txt
%doc composer.json README.md NOTICE.txt
%{_datadir}/php/avro
%changelog
* Thu Sep 17 2015 Michael Cronenworth <mike@cchtml.com> - 1.7.7-1
- Initial package
|