/[smeserver]/rpms/perl-CGI-FormMagick/sme7/perl-CGI-FormMagick.spec
ViewVC logotype

Contents of /rpms/perl-CGI-FormMagick/sme7/perl-CGI-FormMagick.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Wed Apr 9 13:51:52 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
Changes since 1.4: +2 -0 lines
Add Id to top of spec

1 # $Id$
2
3 Summary: CGI-FormMagick module for perl
4 %define name perl-CGI-FormMagick
5 %define version 0.92
6 %define release 16
7 Name: %{name}
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: distributable
11 Group: Applications/CPAN
12 Source0: perl-CGI-FormMagick-%{version}.tar.gz
13 Patch0: perl-CGI-FormMagick-0.92-password_validation.patch
14 Patch1: perl-CGI-FormMagick-0.92-password_validation2.patch
15 Patch2: perl-CGI-FormMagick-0.92-quotemeta.patch
16 Patch3: perl-CGI-FormMagick-0.92-textarea.patch
17 Patch4: perl-CGI-FormMagick-0.92-validateliteral.patch
18 Patch5: perl-CGI-FormMagick-0.92-nodata.patch
19 Patch6: perl-CGI-FormMagick-0.92-persistent10.patch
20 Patch7: perl-CGI-FormMagick-0.92-persistent10.patch2
21 Patch8: perl-CGI-FormMagick-0.92-persistent10.patch3
22 Patch9: perl-CGI-FormMagick-0.92-UTF8.patch
23 Url: http://www.cpan.org
24 BuildRoot: /var/tmp/perl-CGI-FormMagick-buildroot/
25 BuildArchitectures: noarch
26 BuildRequires: perl
27 Requires: perl perl(XML::Parser) expat
28 Requires: perl(CGI::Persistent) >= 1.00
29 Requires: perl(Class::ParamParser) perl(I18N::LangTags)
30 Requires: perl(Text::Iconv)
31 Requires: perl(Text::Template)
32 Requires: perl(Mail::RFC822::Address)
33 Provides: perl(ArbitraryPackage)
34 Provides: perl(CGI::FormMagick) = %{version}-%{release}
35 Provides: perl(CGI::FormMagick::Sub)
36 Provides: perl(CGI::FormMagick::TagMaker) = 1.01
37 Provides: perl(CGI::FormMagick::Validator)
38 Autoreq: no
39
40 %description
41 FormMagick is a Perl module which enables XML descriptions to be used
42 to generate HTML wizard-like forms. It has support for I18N/L10N.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49 %patch3 -p1
50 %patch4 -p1
51 %patch5 -p1
52 %patch6 -p1
53 %patch7 -p1
54 %patch8 -p1
55 %patch9 -p1
56
57 %build
58 grep -rsl '^#!.*perl' . |
59 grep -v '.bak$' |xargs --no-run-if-empty \
60 %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
61 CFLAGS="$RPM_OPT_FLAGS"
62 %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLSITELIB=%{_prefix}/lib/perl5/site_perl
63 %{__make}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %install
69 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
70
71 %{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
72
73 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
74
75 # remove special files
76 find %{buildroot} -name "perllocal.pod" \
77 -o -name ".packlist" \
78 -o -name "*.bs" \
79 |xargs -i rm -f {}
80
81 # no empty directories
82 find %{buildroot}%{_prefix} \
83 -type d -depth \
84 -exec rmdir {} \; 2>/dev/null
85
86 find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod > CGI-FormMagick-%{version}-filelist
87
88 %files -f CGI-FormMagick-%{version}-filelist
89 %defattr(-,root,root)
90
91 %changelog
92 * Mon Mar 24 2008 Shad L. Lords <slords@mail.com> 0.92-16
93 - Fix patch so .orig files aren't created. [SME: 4100]
94
95 * Mon Mar 10 2008 Shad L. Lords <slords@mail.com> 0.92-15
96 - Output charset header defining correct charset. [SME: 3858]
97
98 * Sat Nov 24 2007 Shad L. Lords <slords@mail.com> 0.92-14
99 - Add path to sanitized .id parameter so tokens get created
100 in right place [SME: 3584]
101
102 * Sat Nov 24 2007 Charlie Brady <charlieb@e-smith.com> 0.92-13
103 - Sanitise .id parameter before use. [SME: 3584]
104
105 * Sat Nov 24 2007 Shad L. Lords <slords@mail.com> 0.92-12
106 - Make modules compatible with CGI::Persistent v1.00 [SME: 3581]
107
108 * Tue Jun 12 2007 Shad L. Lords <slords@mail.com> 0.92-11
109 - Don't attempt to trim empty/undefined fields [SME: 2395]
110
111 * Mon Jun 11 2007 Shad L. Lords <slords@mail.com> 0.92-10
112 - Don't validate literal fields [SME: 2395]
113
114 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
115 - Clean up spec so package can be built by koji/plague
116
117 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
118 - Update to new release naming. No functional changes.
119 - Make Packager generic
120
121 * Tue Aug 22 2006 Charlie Brady <charlie_brady@mitel.com> 0.92-08
122 - Allow initializer of textarea form widgets. [SME: 1088]
123
124 * Mon May 01 2006 Charlie Brady <charlie_brady@mitel.com> 0.92-07
125 - Fix quoting of metachars in subst during inputbox output. [SME: 1352]
126
127 * Wed Jan 25 2006 Mark Knox <mark_knox@mitel.com> 0.92-06
128 - Added a missing brace in previous fix [SME: 463]
129
130 * Fri Jan 13 2006 Charlie Brady <charlieb@e-smith.com> 0.92-05
131 - Fix password validation check to include _ as non-alpha. [SME: 463]
132
133 * Thu Dec 15 2005 Charlie Brady <charlieb@e-smith.com> 0.92-04
134 - Build into /usr/lib/perl5/site_perl so that RPM can be installed
135 on either 6.x or 7.x.
136
137 * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.92-03
138 - Bump release number only
139
140 * Tue Nov 29 2005 Charlie Brady <charlieb@e-smith.com>
141 - [0.92-02]
142 - Test rebuild after CVS synchronisation.
143
144 * Mon Oct 31 2005 Mark Knox <mark_knox@mitel.com>
145 - [0.92-01]
146 - Imported to ClearCase, bumped version [markk MN00103900]
147 - Remove generated files Makefile and t/embedded*
148 - Add BuildRequires: perl => 5.8
149
150 * Thu Oct 27 2005 Charlie Brady <charlieb@e-smith.com>
151 - [0.91-30]
152 - Avoid warning messages if we try to trim whitespace around $field->{id} when
153 it isn't defined. [SF: 1227604]
154
155 * Mon Oct 3 2005 Charlie Brady <charlieb@e-smith.com>
156 - [0.91-29]
157 - Fix colspan attributes in display_fields(). [SF: 1309359]
158
159 * Mon Sep 5 2005 Tony Clayton <apc@e-smith.com>
160 - [0.91-28]
161 - s/Copyright/License/ in rpm headers
162 - Fix subroutine element handling in Validator.pm to fix barrage of logfile
163 warnings
164 - Move sessiondir,cgi object initialization from display() to new()
165 - Remove deprecated sessiondir(),munge_fm_obj() methods
166
167 * Tue Jul 19 2005 Charlie Brady <charlieb@e-smith.com>
168 - [0.91-27]
169 - Validation fixes from Shad Lords:
170 - Change static strings to TAGS (for L10N)
171 - Fix ip_check to actually check value
172 - Update Provides header to specify version and release
173
174 * Tue May 24 2005 Charlie Brady <charlieb@e-smith.com>
175 - [0.91-26]
176 - Don't allow rpm to auto calculate perl module dependencies -
177 it gets them wrong sometimes [SF: 1205965]
178
179 * Fri May 20 2005 Charlie Brady <charlieb@e-smith.com>
180 - [0.91-25]
181 - Apply options parsing fix (from Gordon, SF:1205448)
182
183 * Tue May 17 2005 Charlie Brady <charlieb@e-smith.com>
184 - [0.91-24]
185 - Remove POD references to unimplemented validation-error-message.
186
187 * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
188 - [0.91-23]
189 - Add patch contributed by Shad Lords to allow multi-select.
190
191 * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
192 - [0.91-22]
193 - Add patch contributed by Shad Lords to be more flexible about
194 whitespace in validator lists.
195
196 * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
197 - [0.91-21]
198 - Make sure we don't leave unpackaged files in our buildroot.
199
200 * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
201 - [0.91-20]
202 - Update build and install sections, to allow correct building under CentOS.
203
204 * Wed Oct 20 2004 Sean Bradbury <bradbury@e-smith.com>
205 - [0.91-19]
206 - Updated requires to remove wrong requires. [bradbury MN00053465]
207
208 * Tue Sep 28 2004 Michael Soulier <msoulier@e-smith.com>
209 - [0.91-18]
210 - Updated requires with new perl dependencies. [msoulier MN00040240]
211 - Added additional headers to ensure no caching. [msoulier MN00044704]
212
213 * Fri Sep 3 2004 Michael Soulier <msoulier@e-smith.com>
214 - [0.91-17]
215 - Updated requires with new perl dependencies. [msoulier MN00040240]
216 - Fixed http header to include expiry to prevent browser caching.
217 [msoulier MN00044704]
218
219 * Sat Aug 21 2004 Michael Soulier <msoulier@e-smith.com>
220 - [0.91-16]
221 - Fixed poor subroutine detection in get_sub(). [msoulier MN00037832]
222
223 * Tue Aug 3 2004 Michael Soulier <msoulier@e-smith.com>
224 - [0.91-15]
225 - Added an automatic trim of leading and trailing whitespace for all field
226 params during validation, unless a new field attribute of "notrim" evals to
227 true. [msoulier MN00042751]
228
229 * Thu Jul 15 2004 Michael Soulier <msoulier@e-smith.com>
230 - [0.91-14]
231 - Added conditional widgets to FormMagick. fields now support a "display"
232 callback, which, if false, prevents the field from being displayed or
233 validated. [msoulier MN00037809]
234
235 * Thu Jul 15 2004 Michael Soulier <msoulier@e-smith.com>
236 - [0.91-13]
237 - Updated use of CGI::FormMagick::Sub, such that a calling package is no
238 longer required. The object will be searched for methods by default.
239 [msoulier MN00037832]
240
241 * Wed Jul 14 2004 Michael Soulier <msoulier@e-smith.com>
242 - [0.91-12]
243 - Catch cases where non-existant subroutines are called, and throw a fatal
244 exception with a backtrace. [msoulier MN00042272]
245
246 * Tue Jul 13 2004 Michael Soulier <msoulier@e-smith.com>
247 - [0.91-11]
248 - s/novalidate/nopost, and also prevented the post-event from running if
249 nopost is set. [msoulier MN00040161]
250
251 * Tue Jul 13 2004 Michael Soulier <msoulier@e-smith.com>
252 - [0.91-10]
253 - Added novalidate method, and a hook to it in prepare_for_next_page, so
254 setting a novalidate param will prevent the current page from being
255 validated. Useful for navigational links. [msoulier MN00040161]
256
257 * Mon May 10 2004 Michael Soulier <msoulier@e-smith.com>
258 - [0.91-09]
259 - Forward-port of dcr-30134, adding the menu attribute to the page tag.
260 [msoulier MN00030134]
261
262 * Wed Jan 28 2004 Michael Soulier <msoulier@e-smith.com>
263 - [0.91-08]
264 - Fixed weak pattern matching in CGI::FormMagick::Validator::Basic::number.
265 [msoulier 9039]
266
267 * Mon Jan 5 2004 Michael Soulier <msoulier@e-smith.com>
268 - [0.91-07]
269 - Fixed bad enctype in forms definition. [msoulier 10699]
270
271 * Wed Nov 19 2003 Michael Soulier <msoulier@e-smith.com>
272 - [0.91-06]
273 - Rolled back change in 0.91-03, as it broke the ibays panel. [msoulier 9404]
274
275 * Wed Oct 22 2003 Michael Soulier <msoulier@e-smith.com>
276 - [0.91-05]
277 - Updated get_lexicon to merge available language lexicon in reverse order to
278 the preferred languages, so the fallback languages work when the primary is
279 not available. [msoulier 10397]
280
281 * Fri Sep 5 2003 Tony Clayton <apc@e-smith.com>
282 - [0.91-04]
283 - Added munge_fm_obj() hook to FormMagick.pm [tonyc 9924]
284
285 * Wed Sep 3 2003 Michael Soulier <msoulier@e-smith.com>
286 - [0.91-03]
287 - Moved the parse_xml() call, and the CGI::Persistent object creation, to the
288 constructor where they belong. [msoulier 9404]
289
290 * Wed Sep 3 2003 Michael Soulier <msoulier@e-smith.com>
291 - [0.91-02]
292 - Fixed bug in handling of literal widgets. [msoulier 8671]
293
294 * Wed Sep 3 2003 Michael Soulier <msoulier@e-smith.com>
295 - [0.91-01]
296 - rolling to dev stream - 0.91
297
298 * Wed Sep 3 2003 Michael Soulier <msoulier@e-smith.com>
299 - [0.90-01]
300 - rolling to stable stream - 0.90
301
302 * Tue Jun 24 2003 Tony Clayton <apc@e-smith.com>
303 - [0.89-06]
304 - Fix TagMaker to allow input fields with value="0" [tonyc 9134]
305
306 * Tue May 6 2003 Michael Soulier <msoulier@e-smith.com>
307 - [0.89-05]
308 - Fixed bad handling of literal widgets. [msoulier 8671]
309
310 * Tue May 6 2003 Michael Soulier <msoulier@e-smith.com>
311 - [0.89-04]
312 - Fixed position of the skip_header check so that it's after the establishment
313 of the page number. Otherwise, the page number defaults and the wrong
314 post-event is executed. [msoulier 8637]
315
316 * Fri May 2 2003 Michael Soulier <msoulier@e-smith.com>
317 - [0.89-03]
318 - Added support for a skip_header parameter, to force the display method to
319 give complete control over the HTTP response to the post-event.
320 [msoulier 8637]
321
322 * Thu Feb 20 2003 Mark Knox <markk@e-smith.com>
323 - [0.89-02]
324 - Allow for dynamic field types using a subroutine call [markk 6735]
325
326 * Wed Feb 05 2003 Mark Knox <m_knox@mitel.com>
327 - [0.89-01]
328 - Changed author details in Makefile.PL.
329 - Rolled to v0.89
330
331 * Wed Feb 05 2003 Mark Knox <m_knox@mitel.com>
332 - [0.88-01]
333 - Rolled up changes from 0.87-01 to 0.87-14es into 0.88 and released to
334 SourceForge & CPAN
335
336 * Sat Jan 25 2003 Mike Dickson <miked@e-smith.com>
337 - [0.87-15es]
338 - removed debugging statements from HTML.pm [miked 6617]
339
340 * Tue Jan 14 2003 Mark Knox <markk@e-smith.com>
341 - [0.87-14es]
342 - Changed DTD and input field sub to allow "rows" and "cols" args on
343 textarea fields, removed size arg on same. [markk 3620]
344
345 * Fri Dec 27 2002 Mike Dickson <miked@e-smith.com>
346 - [0.87-13es]
347 - removed debugging comments [miked 5494]
348
349 * Mon Dec 16 2002 Mike Dickson <miked@e-smith.com>
350 - [0.87-12es]
351 - ui updates [miked 5494]
352
353 * Tue Dec 10 2002 Michael Soulier <msoulier@e-smith.com>
354 - [0.87-11es]
355 - Forgot the dependency on the new module. [msoulier 3388]
356
357 * Tue Dec 10 2002 Michael Soulier <msoulier@e-smith.com>
358 - [0.87-10es]
359 - Tightened the check in email_simple() by adding use of the
360 Mail::RFC822::Address module. [msoulier 3388]
361
362 * Mon Dec 2 2002 Mike Dickson <miked@e-smith.com>
363 - [0.87-09es]
364 - ui update [miked 5494]
365
366 * Fri Nov 22 2002 Mike Dickson <miked@e-smith.com>
367 - [0.87-08es]
368 - update to use new UI elements [miked 5806]
369
370 * Fri Nov 22 2002 Gordon Rowell <gordonr@e-smith.com>
371 - [0.87-07es]
372 - Re-import from latest SRPM so it looks like a cvs2rpm package [gordonr 5806]
373
374 * Thu Oct 03 2002 Mark Knox <markk@e-smith.com>
375 - [0.87-06es]
376 - Removed a stray line from a previous patch that was causing breakage
377 [markk 4423]
378
379 * Mon Sep 30 2002 Mark Knox <markk@e-smith.com>
380 - [0.87-05es]
381 - Improved blank-trimming regexes [markk 4423]
382
383 * Wed Aug 28 2002 Mark Knox <markk@e-smith.com>
384 - [0.87-04es]
385 - Move blank trimming code inside conditional to eliminate warnings [markk
386 4607]
387
388 * Fri Aug 16 2002 Mark Knox <markk@e-smith.com>
389 - [0.87-03es]
390 - Security fix: do not pass full path on session token filename [markk 4652]
391
392 * Mon Jul 22 2002 Mark Knox <markk@e-smith.com>
393 - [0.87-02es]
394 - Patch to trim blank space from start/end of translations [markk 4423]
395
396 * Mon Jul 22 2002 Mark Knox <markk@e-smith.com>
397 - [0.87-01es]
398 - Added "es" suffix. First local build (same as 0.87-01) [markk 4422]
399
400 * Mon Jun 24 2002 Kirrily Robert <skud@e-smith.com>
401 - [0.87-01]
402 - Fixed a minor HTML bug (missing > symbol) which was causing problems
403 with the output of validation error messages. [skud 3807]
404
405 * Mon Jun 24 2002 Kirrily Robert <skud@e-smith.com>
406 - [0.86]
407 - Added get_validation_attribute() routine to make it possible to do the
408 nopipes validation forcing in esmith::FormMagick [skud 3807]
409
410 * Sun Jun 02 2002 Gordon Rowell <gordonr@e-smith.com>
411 - Place the "nopipes" validator before all others. We never want to
412 allow pipes in fields for e-smith databases. This may be able to
413 be done at the esmith::FormMagick level, but this works for now.
414 [gordonr 3752]
415
416 * Wed May 29 2002 Kirrily Robert <skud@e-smith.com>
417 - [0.85-01]
418 - Fixed charset bug for text fields that come from subroutines [skud
419 3677]
420
421 * Thu May 16 2002 Kirrily Robert <skud@e-smith.com>
422 - [0.84-02]
423 - Messed it up, had to repackage. [skud #3390]
424
425 * Thu May 16 2002 Kirrily Robert <skud@e-smith.com>
426 - [0.84-01]
427 - Fixed select box charset problem [skud #3390]
428
429 * Mon May 13 2002 Kirrily Robert <skud@e-smith.com>
430 - [0.83-01]
431 - Various minor bugfixes etc [skud #3339, #3371, #3390, #3405]
432
433 * Tue May 07 2002 Kirrily Robert <skud@e-smith.com>
434 - [0.82-02]
435 - Added dependency on Text::Template 1.40 or higher [skud #3371]
436
437 * Tue May 07 2002 Kirrily Robert <skud@e-smith.com>
438 - [0.82-01]
439 - Fixed up various warnings that were thrown to the httpd error log.
440 [skud #3278, #3358]
441 - Templated form headers/footers are now untainted automatically.
442 [skud #3371]
443
444 * Fri May 03 2002 Kirrily Robert <skud@e-smith.com>
445 - [0.81-02]
446 - Added dependency for Text::Iconv
447
448 * Wed May 01 2002 Kirrily Robert <skud@e-smith.com>
449 - [0.81-01]
450 - Now fails more gracefully on XML errors, dumping the XML to a file in
451 /tmp as a side effect
452 - You can now specify the default XML character set encoding as an
453 argument to new() (defaults to undef). In future versions this should
454 be changed to work on a per-lexicon basis, but for now we will use this
455 stopgap measure.
456 - Fixed a bug which was causing fallback_language not to work.
457
458 * Fri Apr 12 2002 Kirrily Robert <skud@e-smith.com>
459 - [0.80-01]
460 - langtags are now all smashed to lower case
461
462 * Thu Apr 04 2002 Kirrily Robert <skud@e-smith.com>
463 - [0.79-01]
464 - Updating to release 0.79.
465
466 * Thu Apr 04 2002 Kirrily Robert <skud@e-smith.com>
467 - [0.78-01]
468 - Updating to release 0.78.
469
470 * Wed Apr 03 2002 Kirrily Robert <skud@e-smith.com>
471 - [0.77-01]
472 - Updating to release 0.77.
473
474 * Wed Mar 20 2002 Kirrily Robert <skud@e-smith.com>
475 - [0.75-01]
476 - Updating to release 0.75.
477
478 * Wed Mar 14 2002 Gordon Rowell <gordonr@e-smith.com>
479 - [0.70-02]
480 - Removed use for Locale::Maketext, pending new cvs tarball from
481 SourceForge (which is down ATM)
482
483 * Wed Feb 20 2002 Adrian Chung <adrianc@e-smith.com>
484 - [0.70-01]
485 - Updating to release 0.70.
486
487 * Thu Feb 07 2002 Adrian Chung <adrianc@e-smith.com>
488 - [0.60-01]
489 - Updated to 0.60.
490
491 * Wed Jan 23 2002 Adrian Chung <adrianc@e-smith.com>
492 - [0.50-01]
493 - Updated to 0.50.
494
495 * Wed Dec 19 2001 Gordon Rowell <gordonr@e-smith.com>
496 - [0.49-03]
497 - Updated with skud's tarball of the day
498
499 * Mon Dec 17 2001 Gordon Rowell <gordonr@e-smith.com>
500 - [0.49-02]
501 - Added dependencies for the swag of modules required. These should
502 probably be listed in the CPAN module instead
503
504 * Mon Oct 01 2001 charlieb <charlieb@lamington>
505 - Spec file automatically generated by cpan2rpm

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed