summaryrefslogtreecommitdiffstats
path: root/php-Smarty.spec
blob: a554760dee3315ebf9f5f2cab8e64dd4ba391cca (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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# remirepo spec file for php-Smarty from:
#
# Fedora spec file for php-Smarty
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#

%global gh_commit    c7d42e4a327c402897dd587871434888fde1e7a9
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     smarty-php
%global gh_project   smarty

Name:           php-Smarty
Summary:        Template/Presentation Framework for PHP
Version:        3.1.31
Release:        1%{?dist}

URL:            http://www.smarty.net
License:        LGPLv2+
Group:          Development/Libraries
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
# For tests
BuildRequires:  php-cli

# From composer.json
Requires:       php(language) >= 5.2.0
# From phpcompatinfo report for 3.1.31
Requires:       php-ctype
Requires:       php-date
Requires:       php-mbstring
Requires:       php-pcre
Requires:       php-spl

Provides:       php-composer(smarty/smarty) = %{version}


%description
Although Smarty is known as a "Template Engine", it would be more accurately
described as a "Template/Presentation Framework." That is, it provides the
programmer and template designer with a wealth of tools to automate tasks
commonly dealt with at the presentation layer of an application. I stress the
word Framework because Smarty is not a simple tag-replacing template engine.
Although it can be used for such a simple purpose, its focus is on quick and
painless development and deployment of your application, while maintaining
high-performance, scalability, security and future growth.

Autoloader: %{_datadir}/php/Smarty/autoload.php


%prep
%setup -qn %{gh_project}-%{gh_commit}

ln -s bootstrap.php libs/autoload.php


%build
# empty build section, nothing required


%install
rm -rf %{buildroot}

# install smarty libs
install -d %{buildroot}%{_datadir}/php/Smarty
cp -a libs/* %{buildroot}%{_datadir}/php/Smarty/


%clean
rm -rf %{buildroot}


%check
: Test autoloader and version
php -r '
require "%{buildroot}%{_datadir}/php/Smarty/autoload.php";
printf("Smarty version \"%s\"\n", Smarty::SMARTY_VERSION);
version_compare(Smarty::SMARTY_VERSION, "%{version}", "=") or exit(1);
'


%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README *.txt
%{_datadir}/php/Smarty


%changelog
* Thu Dec 15 2016 Remi Collet <remi@remirepo.net> - 3.1.31-1
- update to 3.1.31

* Mon Aug  8 2016 Remi Collet <remi@remirepo.net> - 3.1.30-1
- update to 3.1.30

* Sat Dec 26 2015 Remi Collet <remi@fedoraproject.org> - 3.1.29-1
- update to 3.1.29

* Thu Dec 17 2015 Remi Collet <remi@fedoraproject.org> - 3.1.28-2
- add upstream patch, fix regression in 3.1.28, unable to load
  template file, https://github.com/smarty-php/smarty/issues/121

* Sun Dec 13 2015 Remi Collet <remi@fedoraproject.org> - 3.1.28-1
- update to 3.1.28
- add an autoloader
- add a test for autoloader and version

* Thu Jun 18 2015 Remi Collet <remi@fedoraproject.org> - 3.1.27-1
- update to 3.1.27

* Tue Jun 16 2015 Remi Collet <remi@fedoraproject.org> - 3.1.25-1
- update to 3.1.25

* Sun May 24 2015 Remi Collet <remi@fedoraproject.org> - 3.1.24-2
- upstream patch for 'neq' regression
  https://github.com/smarty-php/smarty/issues/42

* Sun May 24 2015 Remi Collet <remi@fedoraproject.org> - 3.1.24-1
- update to 3.1.24

* Wed May 13 2015 Remi Collet <remi@fedoraproject.org> - 3.1.23-1
- update to 3.1.23

* Mon May 11 2015 Remi Collet <remi@fedoraproject.org> - 3.1.22-1
- update to 3.1.22

* Sat Oct 18 2014 Remi Collet <remi@fedoraproject.org> - 3.1.21-1
- update to 3.1.21
- sources from github

* Fri Oct 10 2014 Remi Collet <remi@fedoraproject.org> - 3.1.20-1
- update to 3.1.20

* Thu Jul 31 2014 Remi Collet <remi@fedoraproject.org> - 3.1.19-1
- backport 3.1.19 for remi repo
- fix license handling

* Wed Jul 30 2014 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.19-1
- Last upstream release

* Sat May 10 2014 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.18-1
- Last upstream release

* Sun Dec 22 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.16-1
- Last uypstream release

* Sun Dec 08 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.15-1
- Last upstream release

* Thu Aug 08 2013 Remi Collet <RPMS@FamilleCollet.com> - 3.1.14-1
- backport 3.1.14 for remi repo

* Thu Aug 08 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.14-1
- Last upstream release

* Tue Feb 12 2013 Remi Collet <RPMS@FamilleCollet.com> - 3.1.12-1
- backport 3.1.13 for remi repo

* Tue Feb 12 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.13-1
- Last upstream release
- Missing mbstring require

* Sun Nov 25 2012 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.12-2
- Really fix requires (see bz #700179 comment #30)

* Sun Nov 25 2012 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.12-1
- Update to 3.1.12
- Remove CVE-2012-4437 patch that has been included in that release
- Requires php-common instead of php

* Sat Sep 29 2012 Remi Collet <RPMS@FamilleCollet.com> - 3.1.12-1
- update to 3.1.12 for remi repo

* Thu Sep 20 2012 Jon Ciesla <limburgher@gmail.com> - 3.1.11-1
- Update to 3.1.11, patch for CVE-2012-4437, BZ 858989.

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jun 22 2012 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.1.10-1
- Update to 3.1.10

* Mon May 07 2012 Jon Ciesla <limburgher@gmail.com> - 3.1.8-1
- Update to 3.1.8, BZ 819162.

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.26-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sun Oct 11 2009 Christopher Stone <chris.stone@gmail.com> 2.6.26-1
- Upstream sync
- Update %%source0 and %%URL

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon May 25 2009 Christopher Stone <chris.stone@gmail.com> 2.6.25-1
- Upstream sync

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.20-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sun Nov 02 2008 Christopher Stone <chris.stone@gmail.com> 2.6.20-2
- Add security patch (bz #469648)
- Add RHL dist tag conditional for Requires

* Mon Oct 13 2008 Christopher Stone <chris.stone@gmail.com> 2.6.20-1
- Upstream sync

* Wed Feb 20 2008 Christopher Stone <chris.stone@gmail.com> 2.6.19-1
- Upstream sync
- Update %%license
- Fix file encoding

* Sun Apr 29 2007 Christopher Stone <chris.stone@gmail.com> 2.6.18-1
- Upstream sync

* Wed Feb 21 2007 Christopher Stone <chris.stone@gmail.com> 2.6.16-2
- Minor spec file changes/cleanups

* Fri Feb 09 2007 Orion Poplawski <orion@cora.nwra.com> 2.6.16-1
- Update to 2.6.16
- Install in /usr/share/php/Smarty
- Update php version requirement

* Tue May 16 2006 Orion Poplawski <orion@cora.nwra.com> 2.6.13-1
- Update to 2.6.13

* Tue Nov  1 2005 Orion Poplawski <orion@cora.nwra.com> 2.6.10-2
- Fix Source0 URL.

* Thu Oct 13 2005 Orion Poplawski <orion@cora.nwra.com> 2.6.10-1
- Initial Fedora Extras version