From d4bcc046993e1aae6107296823e4f1544f54a70f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Oct 2015 18:18:42 +0200 Subject: php-wikimedia-avro: import from Fedora --- php-wikimedia-avro.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 php-wikimedia-avro.spec (limited to 'php-wikimedia-avro.spec') 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 - 1.7.7-1 +- Initial package + -- cgit