From 02d4f72891290a5b2e8a3bec97232f811590168f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 Jan 2017 13:09:13 +0100 Subject: php-echonest-api: import from Fedora --- php-echonest-api.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 php-echonest-api.spec (limited to 'php-echonest-api.spec') diff --git a/php-echonest-api.spec b/php-echonest-api.spec new file mode 100644 index 0000000..a2cc85b --- /dev/null +++ b/php-echonest-api.spec @@ -0,0 +1,74 @@ +%global commit 662d62a7df1247515572bf517e14b795714e0824 +%global short_commit %(echo %{commit} | cut -c 1-8) + +Name: php-echonest-api +Version: 0 +Release: 0.3.20131228git.%{short_commit}%{?dist} +BuildArch: noarch + +License: MIT +Summary: PHP classes for the Echo Nest API +URL: https://github.com/Afterster/php-echonest-api +Source0: %{url}/archive/%{commit}.tar.gz +Source1: autoload.php + +BuildRequires: php-phpunit-PHPUnit + +Requires: php(language) >= 5.2.0 +Requires: php-curl +Requires: php-date +Requires: php-json +Requires: php-spl +Requires: php-xml + + +%description +A simple, Object Oriented API wrapper for the EchoNest Api written with PHP5. +This library is modeled after the php-github-api library built by ornicar. + + +%prep +%setup -q -n %{name}-%{commit} + +echo $(ls ..) + +chmod a-x LICENSE +chmod a-x README.md + +# https://github.com/Afterster/php-echonest-api/pull/1 +find . -name "*.php" | xargs chmod 0644 + + +%install +install -d -p -m 0755 %{buildroot}/%{_datadir}/php + +cp -a -r lib/EchoNest %{buildroot}/%{_datadir}/php/ + +install -p -m 0644 %{S:1} %{buildroot}/%{_datadir}/php/EchoNest + + +%check +phpunit --bootstrap=%{buildroot}/%{_datadir}/php/EchoNest/autoload.php + + +%files +%license LICENSE +%doc README.md +%{_datadir}/php/EchoNest + + +%changelog +* Sat Jan 21 2017 Randy Barlow - 0-0.3.20131228git.662d62a7 +- Add the commit date into the release. +- Remove the execute bit on php files. +- Do not require php virtual provides by version. + +* Sat Jan 14 2017 Randy Barlow - 0-0.2.git.662d62a7 +- Depend on php(language) instead of php. +- Use the full commit reference. +- Require needed php components explicitly. +- Included a simple autoload.php file. +- Run the tests against the installed library. + +* Sun Jan 08 2017 Randy Barlow - 0-0.1.git.662d62a7 +- Initial release. -- cgit