]>
Commit | Line | Data |
---|---|---|
44c12601 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
885cec50 | 4 | |
8a5e9e6f | 5 | %define pdir Text |
6 | %define pnam MetaText | |
885cec50 | 7 | %include /usr/lib/rpm/macros.perl |
09c05ff8 | 8 | Summary: Text::MetaText - meta-language for processing "template" text files |
ab99193e | 9 | Summary(pl.UTF-8): Text::MetaText - metajęzyk do przetwarzania szablonów tekstowych |
8245b1e4 | 10 | Name: perl-Text-MetaText |
11 | Version: 0.22 | |
74a8c978 | 12 | Release: 14 |
44c12601 | 13 | License: Artistic |
8245b1e4 | 14 | Group: Development/Languages/Perl |
9dca8732 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
75cd7e5b | 16 | # Source0-md5: 4a2b5d120459dcb678cac876c99fa805 |
885cec50 | 17 | URL: http://search.cpan.org/dist/Text-MetaText/ |
307cf502 | 18 | BuildRequires: perl-File-Recurse |
8245b1e4 | 19 | BuildRequires: perl-TimeDate |
885cec50 ER |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
3ec813ba | 22 | BuildArch: noarch |
3cab0d04 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8245b1e4 | 24 | |
25 | %description | |
885cec50 ER |
26 | MetaText is a text processing and markup meta-language which can be |
27 | used for processing "template" files. This module is a Perl 5 | |
28 | extension implementing a MetaText object class which processes text | |
29 | files, interpreting and acting on the embedded MetaText directives | |
30 | within. | |
09c05ff8 | 31 | |
885cec50 ER |
32 | Like a glorified pre-processor, MetaText can: include files, define |
33 | and substitute variable values, execute conditional actions based on | |
34 | variables, call other Perl functions or object methods and capture the | |
35 | resulting output back into the document, and more. It can format the | |
36 | resulting output of any of these operations in a number of ways. The | |
37 | objects, and inherently, the format and symantics of the MetaText | |
38 | langauge itself, are highly configurable. | |
09c05ff8 | 39 | |
7c506ee1 JR |
40 | %description -l pl.UTF-8 |
41 | MetaText to metajęzyk do przetwarzania tekstu i oznaczeń, który można | |
42 | używać do przetwarzania plików "szablonów". Ten moduł jest | |
43 | rozszerzeniem Perla 5 implementującym klasę obiektu MetaText | |
44 | przetwarzającego pliki tekstowe, interpretującego i działającego na | |
8419b260 JB |
45 | osadzonych w nich dyrektywach MetaTextu. |
46 | ||
7c506ee1 JR |
47 | Podobnie jak każdy zachwalany preprocesor MetaText może: dołączać |
48 | pliki, definiować i podstawiać wartości zmiennych, wykonywać akcje | |
885cec50 ER |
49 | warunkowe w oparciu o zmienne, wywoływać inne funkcje Perla lub metody |
50 | obiektów i przechwytywać ich wyniki z powrotem do dokumentu i wiele | |
51 | innych. Wyjście dowolnej z operacji może być formatowane na wiele | |
52 | sposobów. Obiekty i związany z nimi format oraz semantyka samego | |
53 | języka MetaText są wysoce konfigurowalne. | |
8245b1e4 | 54 | |
55 | %prep | |
3333a738 | 56 | %setup -q -n %{pdir}-%{pnam}-%{version} |
09c05ff8 | 57 | mv t/exec.t{,.whythiscrapfails} |
8245b1e4 | 58 | |
59 | %build | |
51aba958 | 60 | %{__perl} Makefile.PL \ |
6a51726f | 61 | INSTALLDIRS=vendor |
d945d0c4 | 62 | %{__make} |
8245b1e4 | 63 | |
44c12601 | 64 | %{?with_tests:%{__make} test} |
65 | ||
8245b1e4 | 66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
8245b1e4 | 68 | |
44c12601 | 69 | %{__make} install \ |
70 | DESTDIR=$RPM_BUILD_ROOT | |
8245b1e4 | 71 | |
8245b1e4 | 72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
307cf502 | 77 | %doc Changes README Todo Features |
8245b1e4 | 78 | %attr(755,root,root) %{_bindir}/metapage |
51aba958 | 79 | %{perl_vendorlib}/Text/MetaText.pm |
80 | %{perl_vendorlib}/Text/MetaText | |
8245b1e4 | 81 | %{_mandir}/man[13]/* |