1 |
Name: perl-Mojolicious |
2 |
version: 5.05 |
3 |
Release: 2%{?dist} |
4 |
Summary: A next generation web framework for Perl |
5 |
License: Artistic 2.0 |
6 |
Group: Development/Libraries |
7 |
URL: http://mojolicious.org/ |
8 |
Source0: http://www.cpan.org/authors/id/K/KR/KRAIH/Mojolicious-%{version}.tar.gz |
9 |
Patch0: Mojolicious-4.91.untaint.patch |
10 |
Patch1: Mojolicious-4.91.SSL_version.patch |
11 |
%define CSRFProtect_version 0.13 |
12 |
Source1: Mojolicious-Plugin-CSRFProtect-%{CSRFProtect_version}.tar.gz |
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
14 |
BuildArch: noarch |
15 |
BuildRequires: perl >= 0:5.008007 |
16 |
BuildRequires: perl(ExtUtils::MakeMaker) |
17 |
BuildRequires: perl(Test::Builder) |
18 |
BuildRequires: perl(Test::Harness) |
19 |
BuildRequires: perl(Test::More) |
20 |
BuildRequires: perl(Taint::Util) |
21 |
BuildRequires: perl(Digest::MD5) |
22 |
BuildRequires: perl(Digest::SHA) |
23 |
BuildRequires: perl(Time::HiRes) |
24 |
BuildRequires: perl(IO::Compress::Gzip) |
25 |
BuildRequires: perl(Compress::Raw::Zlib) |
26 |
BuildRequires: perl(Data::Dumper) |
27 |
Requires: perl(Taint::Util) |
28 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
29 |
%define filelist %{pkgname}-%{version}-filelist |
30 |
%define NVR %{pkgname}-%{version}-%{release} |
31 |
%define maketest 1 |
32 |
%define custom_find_req %{_tmppath}/%{NVR}-find-requires |
33 |
%define _use_internal_dependency_generator 0 |
34 |
%define __find_requires %{custom_find_req} |
35 |
%define __perl_requires %{custom_find_req} |
36 |
%define perl_vendorlib /usr/share/perl5/vendor_perl |
37 |
|
38 |
%description |
39 |
Back in the early days of the web there was this wonderful Perl library |
40 |
called CGI, many people only learned Perl because of it. It was simple |
41 |
enough to get started without knowing much about the language and powerful |
42 |
enough to keep you going, learning by doing was much fun. While most of the |
43 |
techniques used are outdated now, the idea behind it is not. Mojolicious is |
44 |
a new attempt at implementing this idea using state of the art technology. |
45 |
|
46 |
%prep |
47 |
%setup -q -n Mojolicious-%{version} -b 0 -a 1 |
48 |
%patch0 -p1 |
49 |
%patch1 -p1 |
50 |
mv Mojolicious-Plugin-CSRFProtect-%{CSRFProtect_version}/lib/Mojolicious/Plugin/* lib/Mojolicious/Plugin/ |
51 |
rm -rf Mojolicious-Plugin-CSRFProtect-%{CSRFProtect_version} |
52 |
|
53 |
%build |
54 |
%{__perl} Makefile.PL INSTALLDIRS=vendor INSTALLVENDORLIB=/usr/share/perl5/vendor_perl |
55 |
make %{?_smp_mflags} |
56 |
|
57 |
%install |
58 |
rm -rf $RPM_BUILD_ROOT |
59 |
cat <<EOF > %{custom_find_req} |
60 |
#!/bin/sh |
61 |
/usr/lib/rpm/find-requires |grep -v -e 'feature' -e 'IO::Epoll' -e 'IO::KQueue' -e 'EV' |
62 |
EOF |
63 |
chmod 755 %{custom_find_req} |
64 |
|
65 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
66 |
|
67 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
68 |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
69 |
|
70 |
%{_fixperms} $RPM_BUILD_ROOT/* |
71 |
|
72 |
%check |
73 |
make test |
74 |
|
75 |
%clean |
76 |
rm -rf $RPM_BUILD_ROOT |
77 |
rm -f %{custom_find_req} |
78 |
|
79 |
%files |
80 |
%defattr(-,root,root,-) |
81 |
%doc Changes LICENSE examples |
82 |
%{_bindir}/mojo |
83 |
%{_bindir}/morbo |
84 |
%{_bindir}/hypnotoad |
85 |
%{perl_vendorlib}/* |
86 |
%{_mandir}/man1/* |
87 |
%{_mandir}/man3/* |
88 |
|
89 |
%changelog |
90 |
* Thu Feb 5 2015 Daniel Berteaud <daniel@firewall-services.com> - 5.05-1 |
91 |
- Add some missing buildreq so it can build in mock [SME: 7819] |
92 |
|
93 |
* Mon Jun 09 2014 Charlie Brady <charlie_brady@mitel.com> - 5.05-1 |
94 |
- Upgrade Mojolicious to 5.05. [MN00522946] |
95 |
|
96 |
* Fri Apr 25 2014 Charlie Brady <charlie_brady@mitel.com> - 4.94-1 |
97 |
- Upgrade Mojolicious to 4.94. [MN00522946] |
98 |
|
99 |
* Mon Mar 31 2014 Charlie Brady <charlie_brady@mitel.com> - 4.91-1 |
100 |
- Upgrade Mojolicious to 4.91. [MN00522946] |
101 |
|
102 |
* Fri Oct 25 2013 Charlie Brady <charlie_brady@mitel.com> - 4.50-2 |
103 |
- Drop IO::Socket::SSL dependency from 1.75 to 1.44. [MN00504964] |
104 |
|
105 |
* Fri Oct 25 2013 Charlie Brady <charlie_brady@mitel.com> - 4.50-1 |
106 |
- Upgrade Mojolicious to 4.50. [MN00500199] |
107 |
|
108 |
* Tue Jul 09 2013 Charlie Brady <charlie_brady@mitel.com> - 4.18-2 |
109 |
- Add untaint for eval in Mojo::Template. [MN00480041] |
110 |
|
111 |
* Tue Jul 09 2013 Charlie Brady <charlie_brady@mitel.com> - 4.18-1 |
112 |
- Upgrade Mojolicious to 4.18. Not yet taint or SSL friendly. [MN00480041] |
113 |
|
114 |
* Wed May 01 2013 Charlie Brady <charlie_brady@mitel.com> - 3.97-3 |
115 |
- Add untaint for eval in Mojo::Template. [MN00480041] |
116 |
|
117 |
* Wed May 01 2013 Charlie Brady <charlie_brady@mitel.com> - 3.97-2 |
118 |
- Upgrade Mojolicious-Plugin-CSRFProtect to version 0.13. [MN00480041] |
119 |
|
120 |
* Wed May 01 2013 Charlie Brady <charlie_brady@mitel.com> - 3.97-1 |
121 |
- Upgrade Mojolicious to 3.97. Not yet taint or SSL friendly. [MN00480041] |
122 |
|
123 |
* Wed Sep 26 2012 Martin Gillen <martin_gillen@mitel.com> - 3.05-6 |
124 |
- Upgrade Mojolicious-Plugin-CSRFProtect to version 0.12. [MN00390742] |
125 |
|
126 |
* Thu Aug 23 2012 Charlie Brady <charlie_brady@mitel.com> - 3.05-5 |
127 |
- Fix typo in IO::Socket::SSL dependency patch. [MN00443005] |
128 |
|
129 |
* Mon Aug 20 2012 Charlie Brady <charlie_brady@mitel.com> - 3.05-4 |
130 |
- Update CSRF plugin. [MN00441747] |
131 |
|
132 |
* Tue Aug 14 2012 Charlie Brady <charlie_brady@mitel.com> - 3.05-3 |
133 |
- Drop IO::Socket::SSL dependency from 1.75 to 1.44. [MN00443005] |
134 |
|
135 |
* Tue Aug 14 2012 Charlie Brady <charlie_brady@mitel.com> - 3.05-2 |
136 |
- Apply untaint patch. |
137 |
|
138 |
* Wed Jul 11 2012 Charlie Brady <charlie_brady@mitel.com> - 3.05-1 |
139 |
- Upgrade to latest upstream. |
140 |
|
141 |
* Mon Apr 30 2012 Charlie Brady <charlie_brady@mitel.com> - 2.91-1 |
142 |
- Upgrade to latest upstream. |
143 |
|
144 |
* Mon Apr 30 2012 Charlie Brady <charlie_brady@mitel.com> - 2.49-2 |
145 |
- Add CSRFProtect plugin. [MN00396402] |
146 |
- Build into /usr/share/perl5/vendor_perl. |
147 |
|
148 |
* Tue Feb 14 2012 Charlie Brady <charlie_brady@mitel.com> - 2.49-1 |
149 |
- Upgrade to latest upstream. |
150 |
|
151 |
* Wed Feb 08 2012 Charlie Brady <charlie_brady@mitel.com> - 2.47-1 |
152 |
- Upgrade to latest upstream. |
153 |
|
154 |
* Wed Feb 01 2012 Charlie Brady <charlie_brady@mitel.com> - 2.46-5 |
155 |
- Update untaint patch to include untaint of template code when |
156 |
running under -T. |
157 |
|
158 |
* Wed Feb 01 2012 Charlie Brady <charlie_brady@mitel.com> - 2.46-4 |
159 |
- Restore use of pre-exising perl-Mojolicious spec file. Re-remove |
160 |
dependency on EV module. |
161 |
|
162 |
* Mon Jan 30 2012 Charlie Brady <charlie_brady@mitel.com> - 2.46-3 |
163 |
- Build into /usr/lib/perl5/vendor_perl. |
164 |
|
165 |
* Mon Jan 30 2012 Charlie Brady <charlie_brady@mitel.com> - 2.46-2 |
166 |
- Apply untaint patch. |
167 |
|
168 |
* Mon Jan 30 2012 Charlie Brady <charlie_brady@mitel.com> - 2.46 |
169 |
- Upgrade to latest upstream. |
170 |
|
171 |
* Wed Aug 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.69-3 |
172 |
- Remove dependency on EV module. |
173 |
|
174 |
* Wed Aug 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.69-2 |
175 |
- Apply patch to permit setuid scripts to run - untaint data. |
176 |
|
177 |
* Wed Aug 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.69-1 |
178 |
- Update to upstream 1.64 - no patches, but do not require |
179 |
IO::Epoll and IO::KQueue modules. |
180 |
|
181 |
* Wed Aug 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.64-2 |
182 |
- Apply patch to permit setuid scripts to run - untaint data. |
183 |
|
184 |
* Wed Aug 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.64-1 |
185 |
- Update to upstream 1.64 - no patches, but do not require |
186 |
IO::Epoll and IO::KQueue modules. |
187 |
|
188 |
* Fri Jul 15 2011 Charlie Brady <charlie_brady@mitel.com> 1.48-2 |
189 |
- Ensure that 'perl(feature)' does not appear in dependency list. |
190 |
|
191 |
* Mon Jun 27 2011 Charlie Brady <charlie_brady@mitel.com> 1.48-1 |
192 |
- Update to upstream 1.48 - no patches |
193 |
|
194 |
* Thu Apr 21 2011 Charlie Brady <charlie_brady@mitel.com> 1.21-2 |
195 |
- Apply patches (taint checking and test fixes. |
196 |
|
197 |
* Thu Apr 21 2011 Charlie Brady <charlie_brady@mitel.com> 1.21-1 |
198 |
- Update to upstream 1.21 - no patches |
199 |
|
200 |
* Mon Jan 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.0-2 |
201 |
- Backport to perl 5.8.5 (mostly test fixes). |
202 |
|
203 |
* Mon Jan 03 2011 Charlie Brady <charlie_brady@mitel.com> 1.0-1 |
204 |
- Latest upstream release. |
205 |
|
206 |
* Sun Dec 12 2010 Charlie Brady <charlie_brady@mitel.com> 0.999950-2 |
207 |
- Latest upstream snapshot, includes exception template |
208 |
- https://github.com/kraih/mojo/tree/fba7a4b549d8e247e03f1e3fc6284cd92fafb4a4 |
209 |
|
210 |
* Sun Dec 05 2010 Charlie Brady <charlie_brady@mitel.com> 0.999950-1 |
211 |
- Latest upstream release. |
212 |
http://search.cpan.org/src/KRAIH/Mojolicious-0.999950/Changes |
213 |
|
214 |
* Sun Nov 21 2010 Charlie Brady <charlieb@budge.apana.org.au> 0.999941-2 |
215 |
- Patch around exceptions in taint mode. |
216 |
|
217 |
* Sun Nov 21 2010 Charlie Brady <charlieb@budge.apana.org.au> 0.999941-1 |
218 |
- Latest upstream release. |
219 |
http://search.cpan.org/src/KRAIH/Mojolicious-0.999941/Changes |
220 |
|
221 |
* Mon Aug 16 2010 Yanko Kaneti <yaneti@declera.com> 0.999927-1 |
222 |
- Latest upstream release. |
223 |
http://search.cpan.org/src/KRAIH/Mojolicious-0.999927/Changes |
224 |
|
225 |
* Tue Jun 22 2010 Petr Pisar <ppisar@redhat.com> 0.999926-2 |
226 |
- Rebuild against perl-5.12 |
227 |
|
228 |
* Fri Jun 16 2010 Yanko Kaneti <yaneti@declera.com> 0.999926-1 |
229 |
- Latest upstream release. |
230 |
http://search.cpan.org/src/KRAIH/Mojolicious-0.999926/Changes |
231 |
|
232 |
* Fri Jun 11 2010 Yanko Kaneti <yaneti@declera.com> 0.999925-3 |
233 |
- Actually include the examples. |
234 |
|
235 |
* Fri Jun 11 2010 Yanko Kaneti <yaneti@declera.com> 0.999925-2 |
236 |
- Initial import. Include examples as doc. |
237 |
|
238 |
* Tue Jun 08 2010 Yanko Kaneti <yaneti@declera.com> 0.999925-1 |
239 |
- Specfile mostly autogenerated by cpanspec 1.78. |