blob: 95af777483bf6a6b0f75f2d8c76ea82c5c9a9744 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# remirepo spec file for php-wikimedia-utfnormal, from Fedora
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
%global git_tag_rev c8c12cb47e4ad9a534926d2ace5d8f64b319fa26
Name: php-wikimedia-avro
Version: 1.7.7
Release: 1%{?dist}
Summary: A library for using Avro with PHP
Group: Development/Libraries
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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{_datadir}/php/avro
cp -rp lib/* %{buildroot}%{_datadir}/php/avro
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE.txt
%doc composer.json README.md NOTICE.txt
%{_datadir}/php/avro
%changelog
* Wed Oct 7 2015 Remi Collet <remi@remirepo.net> - 1.7.7-1
- add backport stuff for remirepo
* Thu Sep 17 2015 Michael Cronenworth <mike@cchtml.com> - 1.7.7-1
- Initial package
|