php-fkooman-oauth-client.spec (2027B)
1 %global composer_vendor fkooman 2 %global composer_project oauth-client 3 4 %global github_owner fkooman 5 %global github_name php-oauth-client 6 7 Name: php-%{composer_vendor}-%{composer_project} 8 Version: 0.5.2 9 Release: 2%{?dist} 10 Summary: OAuth 2.0 "Authorization Code Grant" client written in PHP 11 12 Group: System Environment/Libraries 13 License: AGPLv3+ 14 URL: https://github.com/%{github_owner}/%{github_name} 15 Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{version}.tar.gz 16 BuildArch: noarch 17 18 Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} 19 20 Requires: php >= 5.3.3 21 22 Requires: php-openssl 23 Requires: php-pdo 24 25 Requires: php-composer(fkooman/oauth-common) >= 0.5.0 26 Requires: php-composer(fkooman/oauth-common) < 0.6.0 27 Requires: php-composer(guzzle/guzzle) >= 3.9 28 Requires: php-composer(guzzle/guzzle) < 4.0 29 30 %description 31 This project provides an OAuth 2.0 "Authorization Code Grant" client as 32 described in RFC 6749, section 4.1. 33 34 The client can be controlled through a PHP API that is used from the 35 application trying to access an OAuth 2.0 protected resource server. 36 37 %prep 38 %setup -qn %{github_name}-%{version} 39 40 %build 41 42 %install 43 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/php 44 cp -pr src/* ${RPM_BUILD_ROOT}%{_datadir}/php 45 46 %files 47 %defattr(-,root,root,-) 48 %dir %{_datadir}/php/%{composer_vendor}/OAuth/Client 49 %{_datadir}/php/%{composer_vendor}/OAuth/Client/* 50 %doc README.md CHANGES.md lgpl-3.0.txt composer.json docs/ example/ 51 52 %changelog 53 * Thu Sep 25 2014 François Kooman <fkooman@tuxed.net> - 0.5.2-2 54 - remove installation of schema 55 56 * Thu Sep 25 2014 François Kooman <fkooman@tuxed.net> - 0.5.2-1 57 - update to 0.5.2 58 59 * Thu Sep 11 2014 François Kooman <fkooman@tuxed.net> - 0.5.1-1 60 - update to 0.5.1 61 62 * Sat Aug 30 2014 François Kooman <fkooman@tuxed.net> - 0.5.0-2 63 - use github tagged release sources 64 - update group to System Environment/Libraries 65 66 * Tue Aug 19 2014 François Kooman <fkooman@tuxed.net> - 0.5.0-1 67 - initial package