]>
Commit | Line | Data |
---|---|---|
008fe4fa ER |
1 | %define pkgname twitter-api |
2 | %define php_min_version 5.1.2 | |
008fe4fa ER |
3 | Summary: Simple PHP Wrapper for Twitter API v1.1 calls |
4 | Name: php-%{pkgname} | |
e99f86f8 | 5 | Version: 1.0.5 |
008fe4fa ER |
6 | Release: 1 |
7 | License: MIT | |
8 | Group: Development/Languages/PHP | |
9 | Source0: https://github.com/J7mbo/twitter-api-php/archive/%{version}/%{name}-%{version}.tar.gz | |
e99f86f8 | 10 | # Source0-md5: 2233db5ea90b598840f9f0f969893f77 |
008fe4fa ER |
11 | URL: https://github.com/J7mbo/twitter-api-php |
12 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
13 | BuildRequires: rpmbuild(macros) >= 1.461 | |
14 | Requires: php(core) >= %{php_min_version} | |
15 | Requires: php(curl) | |
16 | Requires: php(date) | |
17 | Requires: php(hash) | |
18 | Requires: php(pcre) | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Simple PHP Wrapper for Twitter API v1.1 calls. | |
24 | ||
25 | %prep | |
26 | %setup -q -n twitter-api-php-%{version} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{php_data_dir} | |
31 | cp -p TwitterAPIExchange.php $RPM_BUILD_ROOT%{php_data_dir} | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %files | |
37 | %defattr(644,root,root,755) | |
38 | %doc README.md LICENSE.md | |
39 | %{php_data_dir}/TwitterAPIExchange.php |