1 |
%define peardir /usr/share/pear |
2 |
%define xmldir /var/lib/pear |
3 |
|
4 |
Summary: PEAR: Horde Twitter client |
5 |
Name: php-horde-Horde-Service-Twitter |
6 |
Version: 2.1.5 |
7 |
Release: 1%{?dist} |
8 |
License: BSD-2-Clause |
9 |
Group: Development/Libraries |
10 |
Source0: http://pear.horde.org/get/Horde_Service_Twitter-%{version}.tgz |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) |
12 |
URL: http://pear.horde.org/package/Horde_Service_Twitter |
13 |
BuildRequires: php-pear(PEAR) >= 1.4.7 |
14 |
BuildRequires: php-channel(pear.horde.org) |
15 |
Requires: Horde_Role >= 1.0.0 |
16 |
Requires: Horde_Controller >= 2.0.0 |
17 |
Requires: Horde_Controller < 3.0.0alpha1 |
18 |
Requires: Horde_Exception >= 2.0.0 |
19 |
Requires: Horde_Exception < 3.0.0alpha1 |
20 |
Requires: Horde_Http >= 2.0.0 |
21 |
Requires: Horde_Http < 3.0.0alpha1 |
22 |
Requires: Horde_Oauth >= 2.0.0 |
23 |
Requires: Horde_Oauth < 3.0.0alpha1 |
24 |
Requires: Horde_Url >= 2.0.0 |
25 |
Requires: Horde_Url < 3.0.0alpha1 |
26 |
Requires: php-pear(PEAR) >= 1.7.0 |
27 |
Requires: php-channel(pear.horde.org) |
28 |
BuildArch: noarch |
29 |
|
30 |
Provides: %{name} = %{version} |
31 |
|
32 |
%description |
33 |
Client libraries for the Twitter REST API. |
34 |
|
35 |
%prep |
36 |
%setup -c -T |
37 |
pear -v -c pearrc \ |
38 |
-d php_dir=%{peardir} \ |
39 |
-d doc_dir=%{pear_docdir} \ |
40 |
-d bin_dir=%{_bindir} \ |
41 |
-d data_dir=%{peardir}/data \ |
42 |
-d test_dir=%{peardir}/tests \ |
43 |
-d ext_dir=%{_libdir} \ |
44 |
-d horde_dir=%{pear_hordedir} \ |
45 |
-s |
46 |
|
47 |
%build |
48 |
|
49 |
%install |
50 |
rm -rf %{buildroot} |
51 |
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} |
52 |
|
53 |
# Clean up unnecessary files |
54 |
rm pearrc |
55 |
rm %{buildroot}/%{peardir}/.filemap |
56 |
rm %{buildroot}/%{peardir}/.lock |
57 |
rm -rf %{buildroot}/%{peardir}/.registry |
58 |
rm -rf %{buildroot}%{peardir}/.channels |
59 |
rm %{buildroot}%{peardir}/.depdb |
60 |
rm %{buildroot}%{peardir}/.depdblock |
61 |
|
62 |
#mv %{buildroot}/docs . |
63 |
|
64 |
|
65 |
# Install XML package description |
66 |
mkdir -p %{buildroot}%{xmldir} |
67 |
tar -xzf %{SOURCE0} package.xml |
68 |
cp -p package.xml %{buildroot}%{xmldir}/Horde_Service_Twitter.xml |
69 |
|
70 |
%clean |
71 |
rm -rf %{buildroot} |
72 |
|
73 |
%post |
74 |
pear install --nodeps --soft --force --register-only %{xmldir}/Horde_Service_Twitter.xml >/dev/null || : |
75 |
|
76 |
%postun |
77 |
if [ "$1" -eq "0" ]; then |
78 |
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/Horde_Service_Twitter >/dev/null || : |
79 |
fi |
80 |
|
81 |
%files |
82 |
%defattr(-,root,root) |
83 |
#%doc docs/Horde_Service_Twitter/* |
84 |
%{peardir}/* |
85 |
%{xmldir}/Horde_Service_Twitter.xml |
86 |
|
87 |
|
88 |
%changelog |
89 |
* Wed Jun 10 2015 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.5-1 |
90 |
- Updated to 2.1.5 |
91 |
|
92 |
* Sat May 2 2015 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.4-1 |
93 |
- Updated to 2.1.4 |
94 |
|
95 |
* Sat Mar 7 2015 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.3-1 |
96 |
- Updated to 2.1.3 |
97 |
|
98 |
* Sat Jan 10 2015 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.2-1 |
99 |
- Updated to 2.1.2 |
100 |
|
101 |
* Sun Jul 7 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.1-1 |
102 |
- Updated to 2.1.1 |
103 |
|
104 |
* Tue Jun 18 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.0-1 |
105 |
- Updated to 2.1.0 |
106 |
|
107 |
* Tue Jun 4 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 2.0.3-1 |
108 |
- Initial release for SME Server |
109 |
- Original build from pear make-rpm-spec |