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