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

Contents of /cauldron/horde-framework/current/SPECS/horde-framework.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1780011 - (show annotations) (download)
Fri Feb 18 02:14:32 2022 UTC (3 years, 4 months ago) by danf
File size: 1599 byte(s)
SILENT: Switch to https URLs, fix project URL
1 %define prj Horde_Framework
2
3 %define xmldir %{_var}/lib/pear
4 %define peardir %(pear config-get php_dir 2> /dev/null)
5
6 Name: horde-framework
7 Version: 0.0.2
8 Release: %mkrel 7
9 Summary: Horde core Framework libraries
10 License: LGPL
11 Group: Networking/Mail
12 Url: https://pear.horde.org/#horde_framework
13 Source0: %{prj}-%{version}.tgz
14 BuildArch: noarch
15 Requires(pre): php-pear
16 Requires: horde-dom
17 Requires: horde-form
18 Requires: horde-browser
19 Requires: horde-cli
20 Requires: php-pear-Services_Weather
21 Requires: php-pear-Log
22 BuildRequires: php-pear
23 BuildRequires: php-pear-channel-horde
24
25 %description
26 These classes provide the core functionality of the Horde Application Framework.
27
28
29 %prep
30 %setup -q -n %{prj}-%{version}
31
32 %build
33 mv ../package.xml .
34
35 %install
36 pear install --packagingroot %{buildroot} --nodeps package.xml
37
38 %__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}
39
40 %__mkdir_p %{buildroot}%{_docdir}/horde
41
42 %__mkdir_p %{buildroot}%{xmldir}
43 cp package.xml %{buildroot}%{xmldir}/%{prj}.xml
44
45 %clean
46 %__rm -rf %{buildroot}
47
48 %post
49 pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml
50
51 %postun
52 if [ "$1" -eq "0" ]; then
53 pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj}
54 fi
55
56 %files
57 %defattr(-, root, root)
58 %{xmldir}/%{prj}.xml
59 %{peardir}/Horde.php
60 %dir %{peardir}/Horde
61 %{peardir}/Horde/Config.php
62 %{peardir}/Horde/Help.php
63 %{peardir}/Horde/Menu.php
64 %{peardir}/Horde/Registry.php
65 %{peardir}/Horde/Text.php
66 %dir %{_docdir}/horde
67
68

  ViewVC Help
Powered by ViewVC 1.1.30