diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-07 18:18:42 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-07 18:18:42 +0200 |
commit | d4bcc046993e1aae6107296823e4f1544f54a70f (patch) | |
tree | b186dbdb6151fd9c3b904d50c3a93b0c07813478 |
php-wikimedia-avro: import from Fedora
-rw-r--r-- | php-wikimedia-avro.spec | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/php-wikimedia-avro.spec b/php-wikimedia-avro.spec new file mode 100644 index 0000000..f57fa6c --- /dev/null +++ b/php-wikimedia-avro.spec @@ -0,0 +1,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 + |