blob: 74de1534437926f1f8adb0c9235557a7fc0dc1a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# spec file for php-channel-horde
#
# Copyright (c) 2012-2018 Nick Bebout, Remi Collet
#
# License: MIT
# https://fedoraproject.org/wiki/Licensing:MIT#Modern_Style_with_sublicense
#
# Please, preserve the changelog entries
#
%{?scl: %scl_package php-channel-horde}
%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_channel pear.horde.org
Name: %{?scl_prefix}php-channel-horde
Version: 1.0
Release: 12%{?dist}
Summary: Adds %{pear_channel} channel to PEAR
Group: Development/Languages
License: Public Domain
URL: http://www.horde.org/
Source0: http://%{pear_channel}/channel.xml
BuildArch: noarch
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php-pear(PEAR)
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides: %{?scl_prefix}php-channel(%{pear_channel})
%description
This package adds the %{pear_channel} channel which allows PEAR packages
from this channel to be installed.
%prep
%setup -q -c -T
%build
# Empty build section, nothing to build
%install
install -Dpm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/%{name}.xml
%post
if [ $1 -eq 1 ] ; then
%{__pear} channel-add %{pear_xmldir}/%{name}.xml > /dev/null || :
else
%{__pear} channel-update %{pear_xmldir}/%{name}.xml > /dev/null ||:
fi
%postun
if [ $1 -eq 0 ] ; then
%{__pear} channel-delete %{pear_channel} > /dev/null || :
fi
%files
%{pear_xmldir}/%{name}.xml
%changelog
* Sat Dec 1 2018 Remi Collet <remi@fedoraproject.org> - 1.0-12
- cleanup
* Mon Sep 15 2014 Remi Collet <remi@fedoraproject.org> - 1.0-2
- allow SCL build
* Mon Feb 20 2012 Remi Collet <remi@fedoraproject.org> - 1.0-1
- backport for remi repo
* Sat Jan 28 2012 Nick Bebout <nb@fedoraproject.org> - 1.0-1
- Initial package
|