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 --- autoload.php | 4 +++ php-echonest-api.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 autoload.php create mode 100644 php-echonest-api.spec diff --git a/autoload.php b/autoload.php new file mode 100644 index 0000000..b830958 --- /dev/null +++ b/autoload.php @@ -0,0 +1,4 @@ += 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