3 %bcond_without tests # do not perform "make test"
6 Summary: Petal - Perl Template Attribute Language - TAL for Perl!
7 Summary(pl.UTF-8): Petal - Perl Template Attribute Language - TAL dla Perla!
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://search.cpan.org/CPAN/authors/id/B/BP/BPOSTLE/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 5be2cd6bba2be5d61aa82be5849e4a09
16 URL: http://search.cpan.org/~bpostle/Petal-2.18/lib/Petal.pm
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Lingua-31337
21 BuildRequires: perl-MKDoc-XML
22 BuildRequires: perl-Locale-Maketext-Gettext
24 Requires: perl-Lingua-31337
25 Requires: perl-MKDoc-XML
26 Requires: perl-Locale-Maketext-Gettext
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Petal is a XML based templating engine that is able to process any
32 kind of XML, XHTML and HTML.
34 Petal borrows a lot of good ideas from the Zope Page Templates TAL
35 specification, it is very well suited for the creation of WYSIWYG
36 XHTML editable templates.
38 The idea is to further enforce the separation of logic from
39 presentation. With Petal, graphic designers can use their favorite
40 WYSIWYG editor to easily edit templates without having to worry about
41 the loops and ifs which happen behind the scene.
43 %description -l pl.UTF-8
44 Petal to silnik szablonów oparty na XML-u, potrafiący przetwarzać
45 dowolny rodzaj XML-a, XHTML-a i HTML-a.
47 Petal zapożycza wiele dobrych pomysłów ze specyfikacji TAL Zope Page
48 Templates i jest bardzo dobrze dopasowany do tworzenia modyfikowalnych
49 szablonów WYSIWYG XHTML.
51 Ideą jest dalsze wymuszenie oddzielenia logiki od prezentacji. Przy
52 użyciu Petala projektanci grafiki mogą używać swojego ulubionego
53 edytora WYSIWYG do łatwego modyfikowania szablonów bez potrzeby
54 martwienia się o pętle i warunki ukryte za sceną.
57 %setup -q -n %{pnam}-%{version}
60 %{__perl} Makefile.PL \
65 %{?with_tests:%{__make} test}
68 rm -rf $RPM_BUILD_ROOT
70 %{__make} pure_install \
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
79 %{perl_vendorlib}/Petal.pm
80 %dir %{perl_vendorlib}/Petal
81 %{perl_vendorlib}/Petal/*.pm
82 %dir %{perl_vendorlib}/Petal/Cache
83 %{perl_vendorlib}/Petal/Cache/*.pm
84 %dir %{perl_vendorlib}/Petal/Canonicalizer
85 %{perl_vendorlib}/Petal/Canonicalizer/*.pm
86 %dir %{perl_vendorlib}/Petal/Hash
87 %{perl_vendorlib}/Petal/Hash/*.pm
88 %dir %{perl_vendorlib}/Petal/TranslationService
89 %{perl_vendorlib}/Petal/TranslationService/*.pm