/[packages]/cauldron/horde-notification/current/SPECS/horde-notification.spec
ViewVC logotype

Annotation of /cauldron/horde-notification/current/SPECS/horde-notification.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5082 - (hide annotations) (download)
Sun Jan 9 23:57:57 2011 UTC (14 years, 6 months ago) by spuhler
File size: 1745 byte(s)
imported package horde-notification
1 spuhler 5082 %define prj Horde_Notification
2    
3     %define xmldir %{_var}/lib/pear
4     %define peardir %(pear config-get php_dir 2> /dev/null)
5    
6     Name: horde-notification
7     Version: 0.0.2
8     Release: %mkrel 4
9     Summary: Horde Notification System
10     License: LGPL
11     Group: Networking/Mail
12     Url: http://pear.horde.org/index.php?package=%{prj}
13     Source0: %{prj}-%{version}.tgz
14     BuildArch: noarch
15     Requires(pre): php-pear
16     Requires: php-pear
17     Requires: php-pear-channel-horde
18     Requires: php-gettext
19     BuildRequires: php-pear
20     BuildRequires: php-pear-channel-horde
21    
22    
23     %description
24     The Notification:: class provides a subject-observer pattern for raising and
25     showing messages of different types and to different listeners.
26    
27     %prep
28     %setup -q -n %{prj}-%{version}
29    
30     %build
31     %__mv ../package.xml .
32    
33     %install
34     pear install --packagingroot %{buildroot} --nodeps package.xml
35    
36     %__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}
37    
38     %__mkdir_p %{buildroot}%{xmldir}
39     %__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml
40    
41     %clean
42     %__rm -rf %{buildroot}
43    
44     %post
45     pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml
46    
47     %postun
48     if [ "$1" -eq "0" ]; then
49     pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj}
50     fi
51    
52     %files
53     %defattr(-, root, root)
54     %{xmldir}/%{prj}.xml
55     %dir %{peardir}/Horde/Notification
56     %dir %{peardir}/Horde/Notification/Listener
57     %{peardir}/Horde/Notification.php
58     %{peardir}/Horde/Notification/Event.php
59     %{peardir}/Horde/Notification/Listener.php
60     %{peardir}/Horde/Notification/Listener/audio.php
61     %{peardir}/Horde/Notification/Listener/javascript.php
62     %{peardir}/Horde/Notification/Listener/mobile.php
63     %{peardir}/Horde/Notification/Listener/status.php
64    
65    
66    

  ViewVC Help
Powered by ViewVC 1.1.30