blob: 91c7ca8b7b71b993965b3eaa50a6ec7643a5a706 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# remirepo spec file for php-pear-HTML_Template_PHPLIB, from:
#
# Fedora spec file for php-pear-HTML_Template_PHPLIB
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_name HTML_Template_PHPLIB
Name: php-pear-HTML_Template_PHPLIB
Version: 1.6.0
Release: 1%{?dist}
Summary: PHP template system based on preg_*
Group: Development/Libraries
License: LGPLv2
URL: http://pear.php.net/package/%{pear_name}
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear(PEAR)
# For tests
BuildRequires: %{_bindir}/phpunit
Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires: php-pear(PEAR)
Requires: php(language) >= 5.4.0
# From phpcompatinfo report for version 1.6.0
Requires: php-pcre
Provides: php-pear(%{pear_name}) = %{version}
Provides: php-composer(pear/html_template_phplib) = %{version}
%description
This is the PEAR port of the popular PHPLIB template system. It
contains some features not currently found in the original version.
%prep
%setup -q -c
cd %{pear_name}-%{version}
mv ../package.xml %{pear_name}.xml
%build
# Empty build section nothing to do here
%install
rm -rf %{buildroot}
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{pear_name}.xml
# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*
# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
%check
cd %{pear_name}-%{version}
%{_bindir}/phpunit -v .
if which php70; then
php70 %{_bindir}/phpunit -v .
fi
%clean
rm -rf %{buildroot}
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{pear_name}.xml >/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
%{__pear} uninstall --nodeps --ignore-errors --register-only \
%{pear_name} >/dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{pear_name}.xml
%{pear_testdir}/%{pear_name}
%{pear_phpdir}/HTML/Template
%{_bindir}/*
%changelog
* Sat Jan 23 2016 Remi Collet <remi@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0
- raise PHP minimal version to 5.4
- provide php-composer(pear/html_template_phplib)
- run test suite during build
- run test suite with both PHP 5 and 7 when available
* Tue Aug 21 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.5.2-1
- update to 1.5.2
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.4.0-6
- rebuilt for new pear_testdir
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jul 27 2009 Andrew Colin Kissa <andrew@topdog.za.net> 1.4.0-2
- Fix naming
* Mon Jul 27 2009 Andrew Colin Kissa <andrew@topdog.za.net> 1.4.0-1
- Initial packaging
|