/[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 1780033 - (hide annotations) (download)
Fri Feb 18 02:16:49 2022 UTC (3 years, 4 months ago) by danf
File size: 1735 byte(s)
SILENT: Switch to https URLs, fix project URL
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 shlomif 135754 Release: %mkrel 5
9 spuhler 5082 Summary: Horde Notification System
10     License: LGPL
11     Group: Networking/Mail
12 danf 1780033 Url: https://pear.horde.org/#horde_notification
13 spuhler 5082 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 pterjan 1583331 mv ../package.xml .
32 spuhler 5082
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 pterjan 1583331 cp package.xml %{buildroot}%{xmldir}/%{prj}.xml
40 spuhler 5082
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