/[smeserver]/rpms/timeobjects/sme10/timeobjects.spec
ViewVC logotype

Contents of /rpms/timeobjects/sme10/timeobjects.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Jun 16 16:06:12 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
Changes since 1.1: +5 -3 lines
Prep for php-horde-Horde-ActiveSync import

1 %define peardir /usr/share/pear
2 %define xmldir /var/lib/pear
3
4 Summary: PEAR: Horde timeobjects application
5 Name: timeobjects
6 Version: 2.1.2
7 Release: 1%{?dist}
8 License: BSD-2-Clause
9 Group: Development/Libraries
10 Source0: http://pear.horde.org/get/timeobjects-%{version}.tgz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
12 URL: http://pear.horde.org/package/timeobjects
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_Core >= 2.0.0
17 Requires: Horde_Core < 3.0.0alpha1
18 Requires: Horde_Date >= 2.0.0
19 Requires: Horde_Date < 3.0.0alpha1
20 Requires: Horde_Exception >= 2.0.0
21 Requires: Horde_Exception < 3.0.0alpha1
22 Requires: Horde_Url >= 2.0.0
23 Requires: Horde_Url < 3.0.0alpha1
24 Requires: Horde_Util >= 2.0.0
25 Requires: Horde_Util < 3.0.0alpha1
26 Requires: php-pear(PEAR) >= 1.7.0
27 #Requires: php-channel(pear.horde.org)
28 BuildArch: noarch
29 BuildRequires: php-horde-Horde-Role
30 BuildRequires: php-channel-horde
31 Requires: php-channel-horde
32 Provides: %{name} = %{version}
33
34 %description
35 The timeobjects application doesn't have an interface but provides streams
36 of events to any applications that can consume them, notably the Horde
37 calendar application. It contains drivers for facebook events and weather
38 forecasts and can easily be extended by custom drivers.
39
40 %prep
41 %setup -c -T
42 pear -v -c pearrc \
43 -d php_dir=%{peardir} \
44 -d doc_dir=%{pear_docdir} \
45 -d bin_dir=%{_bindir} \
46 -d data_dir=%{peardir}/data \
47 -d test_dir=%{peardir}/tests \
48 -d ext_dir=%{_libdir} \
49 -d horde_dir=%{pear_hordedir} \
50 -s
51
52 %build
53
54 %install
55 rm -rf %{buildroot}
56 pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
57
58 # Clean up unnecessary files
59 rm pearrc
60 rm %{buildroot}/%{peardir}/.filemap
61 rm %{buildroot}/%{peardir}/.lock
62 rm -rf %{buildroot}/%{peardir}/.registry
63 rm -rf %{buildroot}%{peardir}/.channels
64 rm %{buildroot}%{peardir}/.depdb
65 rm %{buildroot}%{peardir}/.depdblock
66
67 #mv %{buildroot}/docs .
68
69
70 # Install XML package description
71 mkdir -p %{buildroot}%{xmldir}
72 tar -xzf %{SOURCE0} package.xml
73 cp -p package.xml %{buildroot}%{xmldir}/timeobjects.xml
74
75 %clean
76 rm -rf %{buildroot}
77
78 %post
79 pear install --nodeps --soft --force --register-only %{xmldir}/timeobjects.xml >/dev/null || :
80
81 %postun
82 if [ "$1" -eq "0" ]; then
83 pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/timeobjects >/dev/null || :
84 fi
85
86 %files
87 %defattr(-,root,root)
88 #%doc docs/timeobjects/*
89 %doc %{pear_hordedir}
90 %{peardir}/*
91 %{xmldir}/timeobjects.xml
92
93 %changelog
94 * Tue Apr 5 2016 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.2-1
95 - Update to 2.1.2
96
97 * Sun Feb 7 2016 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.1-1
98 - Update to 2.1.1
99
100 * Tue May 13 2014 John H. Bennett III <bennettj@johnbennettservices.com> - 2.1.0-1
101 - Update to 2.1.0
102
103 * Fri Jun 21 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 2.0.4-1
104 - Update to 2.0.4
105
106 * Tue Jun 4 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 2.0.3-1
107 - Initial release for SME Server
108 - Original build from pear make-rpm-spec
109

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed