]> git.pld-linux.org Git - SPECS.git/blob - perl-Petal.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Petal.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pnam    Petal
6 Summary:        Petal - Perl Template Attribute Language - TAL for Perl!
7 Summary(pl.UTF-8):      Petal - Perl Template Attribute Language - TAL dla Perla!
8 Name:           perl-Petal
9 Version:        2.19
10 Release:        2
11 # same as perl
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
19 %if %{with tests}
20 BuildRequires:  perl-Lingua-31337
21 BuildRequires:  perl-MKDoc-XML
22 BuildRequires:  perl-Locale-Maketext-Gettext
23 %endif
24 Requires:       perl-Lingua-31337
25 Requires:       perl-MKDoc-XML
26 Requires:       perl-Locale-Maketext-Gettext
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Petal is a XML based templating engine that is able to process any
32 kind of XML, XHTML and HTML.
33
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.
37
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.
42
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.
46
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.
50
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ą.
55
56 %prep
57 %setup -q -n %{pnam}-%{version}
58
59 %build
60 %{__perl} Makefile.PL \
61         INSTALLDIRS=vendor
62
63 %{__make}
64
65 %{?with_tests:%{__make} test}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} pure_install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc Changes README
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
90 %{_mandir}/man3/*
This page took 0.098572 seconds and 3 git commands to generate.